Table of Contents

Class WorldMetadata

Namespace
TileWorld.Engine.World
Assembly
TileWorld.Engine.dll

Stores persistent metadata for a world.

public sealed class WorldMetadata
Inheritance
WorldMetadata
Inherited Members

Properties

BoundsMode

Gets the world bounds interpretation mode used by higher-level systems.

public WorldBoundsMode BoundsMode { get; init; }

Property Value

WorldBoundsMode

ChunkFormatVersion

Gets the version number of the chunk payload format expected by this world.

public int ChunkFormatVersion { get; init; }

Property Value

int

ChunkHeight

Gets the chunk height that persisted content was authored against.

public int ChunkHeight { get; init; }

Property Value

int

ChunkWidth

Gets the chunk width that persisted content was authored against.

public int ChunkWidth { get; init; }

Property Value

int

GeneratorId

Gets the generator identifier associated with this world's terrain layout.

public string GeneratorId { get; init; }

Property Value

string

GeneratorVersion

Gets the version number of the generator implementation associated with this world.

public int GeneratorVersion { get; init; }

Property Value

int

MaxTileY

Gets the optional inclusive maximum tile Y coordinate allowed by the world.

public int? MaxTileY { get; init; }

Property Value

int?

Remarks

When null, the world has no enforced lower vertical boundary.

MinTileY

Gets the optional inclusive minimum tile Y coordinate allowed by the world.

public int? MinTileY { get; init; }

Property Value

int?

Remarks

When null, the world has no enforced upper vertical boundary.

Name

Gets the display name of the world.

public string Name { get; init; }

Property Value

string

Seed

Gets the seed value associated with world generation.

public int Seed { get; init; }

Property Value

int

SpawnTile

Gets the default spawn tile coordinate for new players or tools.

public Int2 SpawnTile { get; init; }

Property Value

Int2

WorldFormatVersion

Gets the version number of the world metadata format.

public int WorldFormatVersion { get; init; }

Property Value

int

WorldId

Gets the stable identifier used to associate persisted data with this world.

public string WorldId { get; init; }

Property Value

string

WorldTime

Gets the persisted world time counter.

public long WorldTime { get; init; }

Property Value

long