pub trait System<E, Ctx>: Any where
E: EntityStore, {
fn run(&self, _ecm: &mut EntityComponentManager<E>) { ... }
fn run_with_context(
&self,
_ecm: &mut EntityComponentManager<E>,
_ctx: &mut Ctx
) { ... }
}
Expand description
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>)
fn run(&self, _ecm: &mut EntityComponentManager<E>)
Runs the system and give access to the entity component manager.
fn run_with_context(&self, _ecm: &mut EntityComponentManager<E>, _ctx: &mut Ctx)
fn run_with_context(&self, _ecm: &mut EntityComponentManager<E>, _ctx: &mut Ctx)
Runs the system and give access to the entity component manager and context.