new map data format and its read/writer

!! UNTESTED !! UNTESTED !! UNTESTED !!
This commit is contained in:
minjaesong
2018-10-03 19:20:11 +09:00
parent e9baecf93f
commit 2b6902b28f
10 changed files with 569 additions and 17 deletions

View File

@@ -15,6 +15,9 @@ object LandUtil {
fun resolveBlockAddr(world: GameWorld, t: BlockAddress): Pair<Int, Int> =
Pair((t % world.width).toInt(), (t / world.width).toInt())
fun resolveBlockAddr(width: Int, t: BlockAddress): Pair<Int, Int> =
Pair((t % width).toInt(), (t / width).toInt())
/**
* Get owner ID as an Actor/Faction
*/