Struct calx_ecs::Ecs [] [src]

pub struct Ecs<ST> { /* fields omitted */ }

Generic entity component system container

Needs to be specified with the parametrized Store type that has struct fields for the actual components. This can be done with the Ecs! macro.

Methods

impl<ST: Default + Store> Ecs<ST>
[src]

Construct a new entity component system.

Create a new empty entity.

Remove an entity from the system and clear its components.

Return whether the system contains an entity.

Iterate through all the active entities.

Trait Implementations

impl<ST> Deref for Ecs<ST>
[src]

The resulting type after dereferencing

The method called to dereference a value

impl<ST> DerefMut for Ecs<ST>
[src]

The method called to mutably dereference a value