Expand description
Level data persistence module.
This module handles saving and loading world-level data like game rules,
time, weather, spawn point, and seed. This data is stored in level.toml
in each worldβs directory. Only the configured domain default world persists
game time. Promoting a derived save requires explicit authority transfer because
its level.toml omits game_time.
ModulesΒ§
- game_
time π - One live simulation counter per domain; persistence belongs to its configured default world. Domains with persistent worlds require a primary that persists level data. Legacy absolute timestamps are not rebased when derived worlds adopt the primary clock.
StructsΒ§
- Game
Time - Shared game time. World workers only read this counter.
- Level
Data - Persistent level data that gets saved to disk.
- Level
Data Manager - Manages level data persistence for a world.
- Respawn
Data - Vanilla default respawn data.
- Saved
Level πSeed - Serialized
Respawn πData - Spawn
Point - Spawn point data.
- Weather
State - Weather state.
- World
Border Data - Persistent world border data stored with Steel level data.
- World
Generation Settings - Persisted generator metadata used to reject incompatible config changes.
EnumsΒ§
- Game
Time Source - Explicit construction authority, independent of serialized field presence.