YEEEEEEEEEEEEEEEEEEEEEEEEEEEEEET IT WORKIES BOIIII

This commit is contained in:
woahscam 2021-10-28 22:23:01 -04:00
parent 1a14bd7dbc
commit 687899fd0c
9 changed files with 101 additions and 14 deletions

View file

@ -7,7 +7,7 @@ import java.nio.ByteBuffer
class MapTileDecoder {
fun readLoop(definition: MapDefinition, buffer: ByteBuffer) {
fun readLoop(definition: MapDefinition, buffer: ByteBuffer): ByteArray {
for (plane in 0 until 4) {
for (localX in 0 until 64) {
for (localY in 0 until 64) {
@ -42,5 +42,6 @@ class MapTileDecoder {
}
}
}
return buffer.array().copyOfRange(buffer.position(), buffer.capacity())
}
}