Module hecs::serialize::row

source ·
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

Functions