Skip to main content

Module level_data

Module level_data 

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

GameTime
Shared game time. World workers only read this counter.
LevelData
Persistent level data that gets saved to disk.
LevelDataManager
Manages level data persistence for a world.
RespawnData
Vanilla default respawn data.
SavedLevelSeed πŸ”’
SerializedRespawnData πŸ”’
SpawnPoint
Spawn point data.
WeatherState
Weather state.
WorldBorderData
Persistent world border data stored with Steel level data.
WorldGenerationSettings
Persisted generator metadata used to reject incompatible config changes.

EnumsΒ§

GameTimeSource
Explicit construction authority, independent of serialized field presence.

FunctionsΒ§

describe_generation_settings πŸ”’
generation_config_string πŸ”’