Skip to main content

Module save

Module save 

Source
Expand description

Banished save files (.sav): container, game-state stream, and the fields needed to check world generation. Layout notes are in docs/SAVE-FORMAT-AND-RESTORE.md.

Structs§

LoopHeader
Fields the game loop writes right after the reference table and settings block.
MapCell
One cell of the gameplay map, as a save stores it (the cell is 48 bytes in memory).
MapCells
The gameplay map (serializer version 4): size × size cells covering the centre of the terrain (the terrain grid is twice as wide).
MapHeights
The map component’s terrain grid.
Save
A save file: its two payloads, expanded. See the module documentation.
SaveMetadata
The first payload (SaveLoad::SaveMetaData): what the load dialog shows. One block at version 3.
SavedEvent
One saved event-log entry (Game, 0x28 bytes in memory).
SavedEventLog
The event log block: six notify flags, then the entries.
SavedMod
A mod active when the game was saved: its name, its .pkm file and three values.