Arche Serde provides JSON serialization and deserialization for the Arche Entity Component System (ECS).
- Serialize/deserialize an entire Arche world in one line.
- Proper serialization of entity relations, as well as of entities stored in components.
- Skip arbitrary components and resources when serializing or deserializing.
go get github.com/mlange-42/arche-serde
See the API docs for more details and examples.
Serialize a world:
jsonData, err := archeserde.Serialize(&world)
if err != nil {
// handle the error
}
Deserialize a world:
err = archeserde.Deserialize(jsonData, &world)
if err != nil {
// handle the error
}
This project is distributed under the MIT licence.