Trait trex::System [] [src]

pub trait System {
    fn update(
        &mut self,
        world: &mut World,
        queue: &EventQueue,
        emitter: &mut EventEmitter,
        dt: f32
    ); }

Trait that must be implemented by all systems in the Simulation.

Required Methods

This method is called each frame, giving the System access to the World, EventQueue, and EventEmitter. dt is the time in milliseconds since the last update.

Implementors