Trait oxygengine_core::ecs::RunNow [−][src]
pub trait RunNow<'a> { pub fn run_now(&mut self, world: &'a World); pub fn setup(&mut self, world: &mut World); pub fn dispose(self: Box<Self, Global>, world: &mut World) { ... } }
Trait for fetching data and running systems. Automatically implemented for systems.
Required methods
pub fn run_now(&mut self, world: &'a World)
[src]
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).
pub fn setup(&mut self, world: &mut World)
[src]
Sets up World
for a later call to run_now
.
Provided methods
pub fn dispose(self: Box<Self, Global>, world: &mut World)
[src]
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]
impl<'a, 'b, 'c> RunNow<'a> for Dispatcher<'b, 'c>
[src]