Module components

Source
Expand description

ECS component storage.

Structs§

ComponentStore
A typed wrapper around UntypedComponentStore.
ComponentStores
A collection of ComponentStore<T>.
UntypedComponentBitsetIterator
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.
UntypedComponentBitsetIteratorMut
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.
UntypedComponentOptionalBitsetIterator
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.
UntypedComponentOptionalBitsetIteratorMut
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.
UntypedComponentStore
Holds components of a given type indexed by Entity.
UntypedComponentStoreIter
Mutable iterator over pointers in an untyped component store.
UntypedComponentStoreIterMut
Mutable iterator over pointers in an untyped component store.

Traits§

ComponentIterBitset
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 create ComponentBitsetIterator and related types.

Type Aliases§

AtomicComponentStore
An atomic component store.
ComponentBitsetIterator
Read-only iterator over components matching a given bitset
ComponentBitsetIteratorMut
Mutable iterator over components matching a given bitset
ComponentBitsetOptionalIterator
Read-only iterator over components matching a given bitset. Returns None for entities matching bitset but not in this ComponentStore.
ComponentBitsetOptionalIteratorMut
Mutable iterator over components matching a given bitset. Returns None for entities matching bitset but not in this ComponentStore.
UntypedAtomicComponentStore
An untyped atomic component store.