Skip to main content

Module serializer

Module serializer 

Source
Expand description

Custom serialization layer for the save system.

SerializedValue is a JSON-compatible value enum. The Serialize and Deserialize traits let any game type opt into save/load support without pulling in serde.

A simple hand-written JSON encoder/decoder is included so save files are human-readable without any extra dependencies.

Structs§

ComponentSerializer
Registry mapping component type names to their serialize/deserialize functions.

Enums§

DeserializeError
Errors that can occur during deserialization.
SerializedValue
A generic serialized value, analogous to serde_json::Value.

Traits§

Deserialize
Reconstruct a value from a SerializedValue.
Serialize
Convert a value to a SerializedValue.