Crate checs

Crate checs 

Source
Expand description

Checs is an Entity-Component-System library.

§Disclaimer

This is a work in progress.

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§

ComponentVec
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§

InsertMany
A trait for adding multiple components to an entity.
IntoQuery
A trait for converting a value into some kind of query.
LendingIterator
A trait similar to Iterator, where the returned Items only live until next is called again.
Lifetime
Provides the associated item for LendingIterator, similar to Iterator::Item.

Derive Macros§

Storage
Prepares a struct for use as the type parameter of a World.