mirror of
https://gitlab.com/2009scape/tools/2009scape-map-viewer.git
synced 2026-08-28 05:45:25 -06:00
YEEEEEEEEEEEEEEEEEEEEEEEEEEEEEET IT WORKIES BOIIII
This commit is contained in:
parent
1a14bd7dbc
commit
687899fd0c
9 changed files with 101 additions and 14 deletions
|
|
@ -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())
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue