Available on crate feature
row-serialize
only.Expand description
Human-friendly row-major serialization
Stores each entity’s components together. Preferred for data that will be read/written by humans. Less efficient than column-major serialization.
This module builds on the public World::iter()
and World::spawn_at()
APIs, and are
somewhat opinionated. For some applications, a custom approach may be preferable.
In terms of the serde data model, we treat a World
as a map of entity IDs to user-controlled
maps of component IDs to data.
Traits
- Implements deserialization of entities from a serde
MapAccess
into anEntityBuilder
- Implements serialization of individual entities
Functions
- Serialize all entities in a
World
that satisfy the givenQuery
through aSerializeContext
to aSerializer
- If
entity
has componentT
, serialize it underkey
inmap