Expand description
World snapshot for save/load. World snapshot for save/load functionality.
Provides WorldSnapshot which captures the full simulation state
(all entities, components, groups, metrics, tick counter) in a
serializable form. Games choose the serialization format via serde.
Extension component data is included in the snapshot. After restoring,
call Simulation::load_extensions_with
to register types and materialize the data.
Structs§
- Entity
Snapshot - Serializable snapshot of a single entity’s components.
- Group
Snapshot - Serializable representation of an elevator group.
- Line
Snapshot Info - Per-line snapshot info within a group.
- World
Snapshot - Serializable snapshot of the entire simulation state.