Struct trex::Simulation
[−]
[src]
pub struct Simulation { /* fields omitted */ }
Responsible for updating and passing events between systems.
Methods
impl Simulation
[src]
fn new(world: World, queue: EventQueue, emitter: EventEmitter) -> Simulation
Create a new Simulation
.
fn register<T: 'static + System>(&mut self, system: T)
Register a System
.
fn halt(&self) -> bool
Returns true
if the Halt
event has been emitted, otherwise false
.
fn update(&mut self, dt: f32)
Perform a single simulation step.