Ark Serde provides JSON serialization and deserialization for the Ark Entity Component System (ECS).
- Serialize/deserialize an entire Ark 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.
- Optional in-memory GZIP compression for vast reduction of file sizes.
go get github.com/mlange-42/ark-serde
See the API docs for more details and examples.
Serialize a world:
jsonData, err := arkserde.Serialize(&world)
if err != nil {
// handle the error
}
Deserialize a world:
err = arkserde.Deserialize(jsonData, &world)
if err != nil {
// handle the error
}
This project is distributed under the MIT licence.