more chunk pool and savegame migration codes

This commit is contained in:
minjaesong
2024-10-08 12:55:30 +09:00
parent b4523b8492
commit e0fcd00d82
10 changed files with 261 additions and 172 deletions

View File

@@ -161,13 +161,13 @@ class VirtualDisk(
var extraInfoBytes = ByteArray(16)
val entries = HashMap<EntryID, DiskEntry>()
val isReadOnly = false
var saveMode: Int
var saveMode: Int // auto? quick?
set(value) { extraInfoBytes[1] = value.toByte() }
get() = extraInfoBytes[1].toUint()
var saveKind: Int
var saveKind: Int // player? world?
set(value) { extraInfoBytes[2] = value.toByte() }
get() = extraInfoBytes[2].toUint()
var saveOrigin: Int
var saveOrigin: Int // imported? native?
set(value) { extraInfoBytes[3] = value.toByte() }
get() = extraInfoBytes[3].toUint()
var snapshot: Snapshot?