Expand description
Archetype storage.
An archetype owns all entities that have exactly the same set of component
types, and stores one column per type. Rows of the different columns line up
with Archetype::entities, so an entityโs archetype and row are enough
to find every component it has.
Archetypes are created on demand and never removed; an empty archetype costs one allocation.
Re-exportsยง
use core::any::Any;๐use core::any::TypeId;๐use hashbrown::HashMap;๐use crate::column::AnyColumn;๐use crate::column::Column;๐use crate::entity::Entity;๐use crate::error::ArchetypeAccessError;๐use crate::world::World;๐
Structsยง
- Archetype
- One archetype: the entities that share a component set.
- Archetypes
- Every archetype of a world.
Enumsยง
- Scope
Summary ๐ - Which scopes an archetypeโs rows live in, as far as a whole-archetype gate can tell.