mirror of
https://gitlab.com/2009scape/tools/2009scape-map-viewer.git
synced 2026-08-01 14:39:25 -06:00
33 lines
No EOL
893 B
Kotlin
33 lines
No EOL
893 B
Kotlin
package decoders
|
|
|
|
import Rs2MapEditor
|
|
import const.Archives
|
|
import const.Indices
|
|
import definitions.UnderlayDefinition
|
|
import java.nio.ByteBuffer
|
|
|
|
object FloorUnderlayConfiguration {
|
|
|
|
val cache = Rs2MapEditor.library.index(Indices.CONFIGURATION).archive(Archives.FLOOR_UNDERLAYS)
|
|
|
|
var floorUnderlays = mutableMapOf<Int, UnderlayDefinition>()
|
|
|
|
@JvmStatic
|
|
fun main(args: Array<String>) {
|
|
cache!!.files().forEach {
|
|
val buffer = ByteBuffer.wrap(it.data)
|
|
val definition = FloorUnderlayDecoder().decode(buffer)
|
|
floorUnderlays[it.id] = definition
|
|
}
|
|
}
|
|
|
|
fun init() {
|
|
cache!!.files().forEach {
|
|
val buffer = ByteBuffer.wrap(it.data)
|
|
val definition = FloorUnderlayDecoder().decode(buffer)
|
|
floorUnderlays[it.id] = definition
|
|
println(definition.toString())
|
|
}
|
|
}
|
|
|
|
} |