[][src]Trait orbtk_api::macros::System

pub trait System<E, C, Ctx>: Any where
    C: ComponentStore,
    E: EntityStore
{ 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

impl System<Tree, StringComponentStore, RenderContext2D> for CleanupSystem[src]

impl System<Tree, StringComponentStore, RenderContext2D> for EventStateSystem[src]

impl System<Tree, StringComponentStore, RenderContext2D> for InitSystem[src]

impl System<Tree, StringComponentStore, RenderContext2D> for LayoutSystem[src]

impl System<Tree, StringComponentStore, RenderContext2D> for PostLayoutStateSystem[src]

impl System<Tree, StringComponentStore, RenderContext2D> for RenderSystem[src]

Loading content...