Class WorldConfig
Configuration loaded for a gameplay world.
public sealed class WorldConfig
- Inheritance
-
WorldConfig
- Inherited Members
Constructors
WorldConfig(Guid, string, long, WorldBounds?, IReadOnlyCollection<string>?, WorldTimeConfig?)
Configuration loaded for a gameplay world.
public WorldConfig(Guid uuid, string displayName, long seed = 0, WorldBounds? bounds = null, IReadOnlyCollection<string>? disabledModules = null, WorldTimeConfig? time = null)
Parameters
uuidGuiddisplayNamestringseedlongboundsWorldBoundsdisabledModulesIReadOnlyCollection<string>timeWorldTimeConfig
Properties
Bounds
The world's chunk-space extent; unbounded (Infinite) by default.
public WorldBounds Bounds { get; }
Property Value
DisabledModules
Gets the canonical module IDs disabled when the world starts.
public IReadOnlyCollection<string> DisabledModules { get; }
Property Value
DisplayName
Gets the display name shown for the world.
public string DisplayName { get; }
Property Value
Seed
The world-generation seed (deterministic terrain).
public long Seed { get; }
Property Value
Time
Gets the immutable settings used when the Time Module composes this world's Store.
public WorldTimeConfig Time { get; }
Property Value
Uuid
Gets the stable UUID for the world.
public Guid Uuid { get; }
Property Value
Methods
CreateDefault(string)
Creates a temporary default config until disk-backed world config loading exists.
public static WorldConfig CreateDefault(string name)
Parameters
namestring