mirror of
https://github.com/curioustorvald/Terrarum.git
synced 2026-06-17 22:14:05 +09:00
savegame migrator wip
This commit is contained in:
@@ -306,17 +306,19 @@ open class TerrarumIngame(batch: FlippingSpriteBatch) : IngameInstance(batch) {
|
||||
}
|
||||
|
||||
data class Codices(
|
||||
val disk: VirtualDisk, // WORLD disk
|
||||
val world: GameWorld,
|
||||
// val meta: WriteMeta.WorldMeta,
|
||||
// val block: BlockCodex,
|
||||
// val item: ItemCodex,
|
||||
// val wire: WireCodex,
|
||||
// val material: MaterialCodex,
|
||||
// val faction: FactionCodex,
|
||||
// val apocryphas: Map<String, Any>,
|
||||
val actors: List<ActorID>,
|
||||
val player: IngamePlayer
|
||||
val disk: VirtualDisk, // WORLD disk
|
||||
val world: GameWorld,
|
||||
// val meta: WriteMeta.WorldMeta,
|
||||
// val block: BlockCodex,
|
||||
// val item: ItemCodex,
|
||||
// val wire: WireCodex,
|
||||
// val material: MaterialCodex,
|
||||
// val faction: FactionCodex,
|
||||
// val apocryphas: Map<String, Any>,
|
||||
val actors: List<ActorID>,
|
||||
val player: IngamePlayer,
|
||||
val worldGenver: Long,
|
||||
val playerGenver: Long
|
||||
)
|
||||
|
||||
|
||||
@@ -403,6 +405,8 @@ open class TerrarumIngame(batch: FlippingSpriteBatch) : IngameInstance(batch) {
|
||||
actorNowPlaying = codices.player
|
||||
actorGamer = codices.player
|
||||
|
||||
SavegameMigrator.invoke(codices.worldGenver, codices.playerGenver, actorContainerActive)
|
||||
|
||||
printdbg(this, "postInitForLoadFromSave exit")
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user