Skip to main content

Module snapshot

Module snapshot 

Source
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§

EntitySnapshot
Serialized state of a single entity (all its components).
ResourceSnapshot
Serialized state of a named global resource (e.g. “PlayerStats”, “GameClock”).
SnapshotDiff
The delta between two WorldSnapshots. Used for incremental saves and for detecting what changed between frames.
SnapshotSerializer
Converts WorldSnapshot to/from raw bytes using JSON encoding.
WorldSnapshot
A complete serialized snapshot of the world state at a point in time.