gradle docker config tidy up
This commit is contained in:
parent
e56ecb7d36
commit
e0f689c538
7 changed files with 31 additions and 44 deletions
|
|
@ -9,8 +9,7 @@
|
|||
"engines": {
|
||||
"node": "~14.19.1"
|
||||
},
|
||||
"devDependencies": {
|
||||
},
|
||||
"devDependencies": {},
|
||||
"dependencies": {
|
||||
"lua-types": "^2.11.0",
|
||||
"typescript-to-lua": "1.6.0",
|
||||
|
|
@ -18,10 +17,7 @@
|
|||
"typescript": "4.7.4"
|
||||
},
|
||||
"license": "UNLICENSED",
|
||||
"peerDependencies": {
|
||||
},
|
||||
"optionalDependencies": {
|
||||
},
|
||||
"bundledDependencies": [
|
||||
]
|
||||
"peerDependencies": {},
|
||||
"optionalDependencies": {},
|
||||
"bundledDependencies": []
|
||||
}
|
||||
|
|
|
|||
|
|
@ -57,17 +57,3 @@ idea {
|
|||
excludeDirs.add(file("src/factorio-server"))
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
tasks.hardReset {
|
||||
|
||||
dependsOn(tasks.dockerRemove)
|
||||
|
||||
delete(
|
||||
factorioServerDataDir.dir("saves"),
|
||||
factorioServerDataDir.dir("temp"),
|
||||
factorioServerDataDir.file("factorio-current.log"),
|
||||
factorioServerDataDir.file("factorio-previous.log"),
|
||||
factorioServerDataDir.file(".lock"),
|
||||
)
|
||||
}
|
||||
|
|
|
|||
|
|
@ -18,16 +18,27 @@ typealias TileOnLoadFn = (done: DoneCallback, tile: HTMLElement) -> Unit
|
|||
|
||||
|
||||
sealed interface PolylinePathPoints {
|
||||
value class D1(val points: Array<LatLng>) : PolylinePathPoints
|
||||
value class D2(val points: Array<Array<LatLng>>) : PolylinePathPoints
|
||||
value class D3(val points: Array<Array<Array<LatLng>>>) : PolylinePathPoints
|
||||
value class D1(val points: List<LatLng>) : PolylinePathPoints {
|
||||
constructor(points: Array<LatLng>)
|
||||
: this(points.toList())
|
||||
}
|
||||
|
||||
value class D2(val points: List<List<LatLng>>) : PolylinePathPoints {
|
||||
constructor(points: Array<Array<LatLng>>)
|
||||
: this(points.map { x -> x.toList() }.toList())
|
||||
}
|
||||
|
||||
value class D3(val points: List<List<List<LatLng>>>) : PolylinePathPoints {
|
||||
constructor(points: Array<Array<Array<LatLng>>>)
|
||||
: this(points.map { x -> x.map { y -> y.toList() } }.toList())
|
||||
}
|
||||
}
|
||||
|
||||
inline fun Polyline<*>.getLatLngs2(): PolylinePathPoints? {
|
||||
return when (val points = this.getLatLngs()) {
|
||||
is Array<LatLng> -> PolylinePathPoints.D1(points as Array<LatLng>)
|
||||
is Array<Array<LatLng>> -> PolylinePathPoints.D2(points as Array<Array<LatLng>>)
|
||||
is Array<Array<Array<LatLng>>> -> PolylinePathPoints.D3(points as Array<Array<Array<LatLng>>>)
|
||||
is Array<LatLng> -> PolylinePathPoints.D1(points.unsafeCast<Array<LatLng>>())
|
||||
is Array<Array<LatLng>> -> PolylinePathPoints.D2(points.unsafeCast<Array<Array<LatLng>>>())
|
||||
is Array<Array<Array<LatLng>>> -> PolylinePathPoints.D3(points.unsafeCast<Array<Array<Array<LatLng>>>>())
|
||||
else -> null
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue