[][src]Trait oxygengine_core::ecs::RunNow

pub trait RunNow<'a> {
    fn run_now(&mut self, res: &'a Resources);
fn setup(&mut self, res: &mut Resources); fn dispose(self: Box<Self>, res: &mut Resources) { ... } }

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.

Loading content...

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.

Loading content...

Implementors

impl<'a, 'b, 'c> RunNow<'a> for Dispatcher<'b, 'c>[src]

impl<'a, T> RunNow<'a> for T where
    T: System<'a>, 
[src]

Loading content...