[−][src]Trait oxygengine_core::ecs::RunNow
Trait for fetching data and running systems. Automatically implemented for systems.
Required methods
fn run_now(&mut self, res: &'a Resources)
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, res: &mut Resources)
Sets up Resources for a later call to run_now.
Provided methods
fn dispose(self: Box<Self>, res: &mut Resources)
Performs clean up that requires resources from the Resources.
This commonly removes components from Resources which depend on external
resources.
Implementors
impl<'a, 'b, 'c> RunNow<'a> for Dispatcher<'b, 'c>[src]
fn run_now(&mut self, res: &Resources)[src]
fn setup(&mut self, res: &mut Resources)[src]
fn dispose(self: Box<Dispatcher<'b, 'c>>, res: &mut Resources)[src]
impl<'a, T> RunNow<'a> for T where
T: System<'a>, [src]
T: System<'a>,