[][src]Trait dces::system::System

pub trait System<E, C, Ctx>: Any where
    E: EntityStore,
    C: ComponentStore
{ fn run(&self, _ecm: &mut EntityComponentManager<E, C>) { ... }
fn run_with_context(
        &self,
        _ecm: &mut EntityComponentManager<E, C>,
        _ctx: &mut Ctx
    ) { ... } }

This trait is used to interact with the components of entities. It could read and write to the components.

Provided methods

fn run(&self, _ecm: &mut EntityComponentManager<E, C>)

Runs the system and give access to the entity component manager.

fn run_with_context(
    &self,
    _ecm: &mut EntityComponentManager<E, C>,
    _ctx: &mut Ctx
)

Runs the system and give access to the entity component manager and context.

Loading content...

Implementors

Loading content...