[−][src]Trait oxygengine_core::ecs::RunNow
Trait for fetching data and running systems. Automatically implemented for systems.
Required methods
fn run_now(&mut self, world: &'a World)
Runs the system now.
Panics
Panics if the system tries to fetch resources which are borrowed in an incompatible way already (tries to read from a resource which is already written to or tries to write to a resource which is read from).
fn setup(&mut self, world: &mut World)
Sets up World for a later call to run_now.
Provided methods
fn dispose(self: Box<Self>, world: &mut World)
Performs clean up that requires resources from the World.
This commonly removes components from world which depend on external
resources.
Implementors
impl<'a, 'b, 'c> RunNow<'a> for Dispatcher<'b, 'c>[src]
fn run_now(&mut self, world: &World)[src]
fn setup(&mut self, world: &mut World)[src]
fn dispose(self: Box<Dispatcher<'b, 'c>>, world: &mut World)[src]
impl<'a, T> RunNow<'a> for T where
T: System<'a>, [src]
T: System<'a>,