Awesome
Arche Serde
Arche Serde provides JSON serialization and deserialization for the Arche Entity Component System (ECS).
<div align="center"> <a href="https://github.com/mlange-42/arche"> <img src="https://user-images.githubusercontent.com/44003176/236701164-28178d13-7e52-4449-baa4-41b764183cbd.png" alt="Arche (logo)" width="500px" /> </a> </div>Features
- 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.
Installation
go get github.com/mlange-42/arche-serde
Usage
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
}
License
This project is distributed under the MIT licence.