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

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

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