Trait ecs::system::System [] [src]

pub trait System {
    type Components: ComponentManager;
    type Services: ServiceManager;
    fn activated(
        &mut self,
        _: &EntityData<Self::Components>,
        _: &Self::Components,
        _: &mut Self::Services
    ) { ... } fn reactivated(
        &mut self,
        e: &EntityData<Self::Components>,
        c: &Self::Components,
        s: &mut Self::Services
    ) { ... } fn deactivated(
        &mut self,
        _: &EntityData<Self::Components>,
        _: &Self::Components,
        _: &mut Self::Services
    ) { ... } }

Generic base system type.

Associated Types

Provided Methods

Optional method called when an entity is activated.

Optional method called when an entity is reactivated.

By default it calls deactivated() followed by activated()

Optional method called when an entity is deactivated.

Implementors