Expand description
World snapshots — serializable representations of the entire game state.
A WorldSnapshot captures all entity components and named resources at a
single point in time. Snapshots are used by the save/load system, the
checkpoint system, and the network replication layer.
§Diff / incremental saves
WorldSnapshot::diff produces a SnapshotDiff describing what changed
between two snapshots. This is used for incremental save files and for
network state synchronisation.
Structs§
- Entity
Snapshot - Serialized state of a single entity (all its components).
- Resource
Snapshot - Serialized state of a named global resource (e.g. “PlayerStats”, “GameClock”).
- Snapshot
Diff - The delta between two
WorldSnapshots. Used for incremental saves and for detecting what changed between frames. - Snapshot
Serializer - Converts
WorldSnapshotto/from raw bytes using JSON encoding. - World
Snapshot - A complete serialized snapshot of the world state at a point in time.