Table of Contents

Class WorldMetadataSerializer

Namespace
TileWorld.Engine.Storage
Assembly
TileWorld.Engine.dll

Serializes and deserializes world metadata to the persistent JSON format.

public sealed class WorldMetadataSerializer
Inheritance
WorldMetadataSerializer
Inherited Members

Methods

Deserialize(string)

Deserializes world metadata from the engine's persistent JSON format.

public WorldMetadata Deserialize(string json)

Parameters

json string

The JSON payload to deserialize.

Returns

WorldMetadata

The deserialized world metadata.

Exceptions

InvalidDataException

Thrown when the payload is malformed or incompatible with runtime chunk dimensions.

Serialize(WorldMetadata)

Serializes world metadata into the engine's persistent JSON format.

public string Serialize(WorldMetadata metadata)

Parameters

metadata WorldMetadata

The metadata to serialize.

Returns

string

The JSON payload.