token ring stuff wip

This commit is contained in:
minjaesong
2025-02-27 20:58:14 +09:00
parent 65f771e9de
commit e889b397d0
8 changed files with 303 additions and 20 deletions

View File

@@ -178,7 +178,7 @@ open class GameWorld(
it[Fluid.NULL] = 0
}*/
val extraFields = HashMap<String, Any?>()
val extraFields = HashMap<String, TerrarumSavegameExtrafieldSerialisable?>()
// NOTE: genver was here but removed: genver will be written by manually editing the serialising JSON. Reason: the 'genver' string must be found on a fixed offset on the file.
internal var comp = -1 // only gets used when the game saves and loads

View File

@@ -0,0 +1,8 @@
package net.torvald.terrarum.gameworld
/**
* Dummy interface, except every implementing class must have a no-arg constructor.
*
* Created by minjaesong on 2025-02-27.
*/
interface TerrarumSavegameExtrafieldSerialisable