-
Notifications
You must be signed in to change notification settings - Fork 2
Serialization and EngineState
Isthimius edited this page Jun 22, 2026
·
1 revision
EngineState is Gondwana’s snapshot-and-restore mechanism for runtime state. It is a structured capture of the engine’s live registries and content collections.
Depending on selected EngineStateParts, it can save/load:
- asset files
- tilesheets
- animation cycles
- scenes
- sprites
- audio resources
LoadFromFile clears current state first.
MergeFromFile does not clear the current state.
That distinction matters:
- use load for full restore
- use merge for patching or layering in content
State can optionally be written through GZip, which is useful when snapshots get large.
Most stateful engine systems are registry-backed, so EngineState works more like a snapshot facade over live engine collections than a totally isolated save object.
Gondwana/EngineState.csGondwana/EngineStateParts.cs