Skip to main content

Module save

Module save 

Source
Expand description

Saved games: the complete mutable game state serialized with bincode. Static data (tiles, animations, sounds) is reloaded from the original files.

Structsยง

SaveGame ๐Ÿ”’
SaveHeader ๐Ÿ”’
Minimal header used to list saves without loading them fully.
SaveRef ๐Ÿ”’
Borrowed mirror of SaveGame (same field order, so bincode output matches).

Constantsยง

MAGIC ๐Ÿ”’
VERSION ๐Ÿ”’

Functionsยง

invalid ๐Ÿ”’
slot_path
Save slot file: dir/SAVEn.OBS (slot 0 = quick save).
slot_title
Title stored in a save file, if it is a valid OpenBlood save.