Module bones_lib::ecs::components
Expand description
ECS component storage.
Structs§
- A typed wrapper around
UntypedComponentStore
. - A collection of
ComponentStore<T>
. - Iterates over components using a provided bitset. Each time the bitset has a 1 in index i, the iterator will fetch data from the storage at index i and return it.
- Iterates over components using a provided bitset. Each time the bitset has a 1 in index i, the iterator will fetch data from the storage at index i.
- Iterate over component store returning
Option<SchemaRef<'a>>
, filtered by bitset of iterator, but not bitset of own ComponentStore. Returns None on bitset entries that do not have this Component. - Iterate mutably over component store returning
Option<SchemaRef<'a>>
, filtered by bitset of iterator, but not bitset of own ComponentStore. Returns None on bitset entries that do not have this Component. - Holds components of a given type indexed by
Entity
. - Mutable iterator over pointers in an untyped component store.
- Mutable iterator over pointers in an untyped component store.
Traits§
- This trait factors out functions for iterating with bitset over component store. Separated from
impl ComponentStore
for usage in generic trait types that must be able to createComponentBitsetIterator
and related types.
Type Aliases§
- An atomic component store.
- Read-only iterator over components matching a given bitset
- Mutable iterator over components matching a given bitset
- Read-only iterator over components matching a given bitset. Returns None for entities matching bitset but not in this ComponentStore.
- Mutable iterator over components matching a given bitset. Returns None for entities matching bitset but not in this ComponentStore.
- An untyped atomic component store.