Trait System

Source
pub trait System {
    // Required method
    fn register_to(self, registry: HandlerRegistry<'_>);
}
Expand description

An ECS System (also known as controller) to be registered to an Agent.

Required Methods§

Source

fn register_to(self, registry: HandlerRegistry<'_>)

Register one or some handler functions to the ECS World.

Implementors§

Source§

impl<O, M> System for SystemHandler<O, M>
where O: Observer + 'static, M: Mediator + 'static,