Table of Contents

Class WorldRuntimeOptions

Namespace
TileWorld.Engine.Runtime
Assembly
TileWorld.Engine.dll

Configures persistence and automatic save behavior for a world runtime.

public sealed class WorldRuntimeOptions
Inheritance
WorldRuntimeOptions
Inherited Members

Properties

ActiveRadiusInChunks

Gets the chunk radius kept active around the current attention center.

public int ActiveRadiusInChunks { get; init; }

Property Value

int

AutoSaveIdleDelay

Gets the idle time required after the last observed mutation before an automatic save may trigger.

public TimeSpan AutoSaveIdleDelay { get; init; }

Property Value

TimeSpan

AutoSaveInterval

Gets the maximum time allowed between automatic save attempts while dirty save data exists.

public TimeSpan AutoSaveInterval { get; init; }

Property Value

TimeSpan

EnableAutoSave

Gets a value indicating whether runtime-managed automatic saving is enabled.

public bool EnableAutoSave { get; init; }

Property Value

bool

EnableLiquidSimulation

Gets a value indicating whether runtime-managed liquid simulation is enabled.

public bool EnableLiquidSimulation { get; init; }

Property Value

bool

FallbackGeneratorId

Gets the optional fallback generator identifier used when loading legacy worlds with no generator metadata.

public string FallbackGeneratorId { get; init; }

Property Value

string

MaxLiquidChunkSimulationsPerFrame

Gets the maximum number of liquid-dirty chunks simulated per frame.

public int MaxLiquidChunkSimulationsPerFrame { get; init; }

Property Value

int

MinimumAutoSaveSpacing

Gets the minimum spacing enforced between consecutive automatic saves.

public TimeSpan MinimumAutoSaveSpacing { get; init; }

Property Value

TimeSpan

SaveOnShutdown

Gets a value indicating whether Shutdown() should trigger a final save.

public bool SaveOnShutdown { get; init; }

Property Value

bool

WorldGeneratorRegistry

Gets the gameplay-provided world generator registry used to resolve metadata generator identifiers.

public WorldGeneratorRegistry WorldGeneratorRegistry { get; init; }

Property Value

WorldGeneratorRegistry

WorldPath

Gets the root directory path of the world on disk. Leave empty to disable persistence.

public string WorldPath { get; init; }

Property Value

string

WorldStorage

Gets the storage backend used for metadata and chunk payloads when persistence is enabled.

public WorldStorage WorldStorage { get; init; }

Property Value

WorldStorage