Class WorldMetadataSerializer
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
jsonstringThe 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
metadataWorldMetadataThe metadata to serialize.
Returns
- string
The JSON payload.