Expand description
Modules§
- component
- Storing and managing components.
- entity
- Entities and their allocation.
- intersect
- Intersections of entity sets.
- iter
- Iterating over entities and queries.
- prelude
- Commonly used traits.
- query
- Querying entities and their components.
- sparse
- A sparse set for storing entities.
- world
- Managing entities and their components.
Macros§
- derive_
storage - Prepares a struct for use as the type parameter of
World
. - spawn
- Creates a new entity with initial components.
Structs§
- Component
Vec - A densely packed growable array for associating entities with components.
- Entity
- A thing that can be associated with components.
- Intersection
- An iterator adapter that creates an
intersection with a
sparse::Set
. - Query
- An iterator to find entities that share components.
- Set
- A sparse set of entities, which assigns each
Entity
a unique index in a densely packed array. - World
- A container for managing entities and their components.
Traits§
- Insert
Many - A trait for adding multiple components to an
entity
. - Into
Query - A trait for converting a value into some kind of query.
- Lending
Iterator - A trait similar to
Iterator
, where the returnedItem
s only live untilnext
is called again. - Lifetime
- Provides the associated item for
LendingIterator
, similar toIterator::Item
.