Struct ecs::system::lazy::LazySystem
[−]
[src]
pub struct LazySystem<T: Process> { pub inner: Option<T>, }
System which operates every certain number of updates.
Fields
inner: Option<T>
Methods
impl<T: Process> LazySystem<T>
[src]
fn new() -> LazySystem<T>
Create a new lazy system
fn init(&mut self, sys: T) -> bool
Initialise the lazy system.
Returns whether the system was already initialised.
fn init_override(&mut self, sys: T) -> bool
Initialise the lazy system, overriding an already existing initialisation
Returns whether the system was already initialised.
fn is_initialised(&self) -> bool
Trait Implementations
impl<T: Process> Process for LazySystem<T>
[src]
fn process(&mut self, c: &mut DataHelper<T::Components, T::Services>)
Process the world.
impl<T: Process> System for LazySystem<T>
[src]
type Components = T::Components
type Services = T::Services
fn activated(
&mut self,
e: &EntityData<T::Components>,
c: &T::Components,
s: &mut T::Services
)
&mut self,
e: &EntityData<T::Components>,
c: &T::Components,
s: &mut T::Services
)
Optional method called when an entity is activated.
fn reactivated(
&mut self,
e: &EntityData<T::Components>,
c: &T::Components,
s: &mut T::Services
)
&mut self,
e: &EntityData<T::Components>,
c: &T::Components,
s: &mut T::Services
)
Optional method called when an entity is reactivated. Read more
fn deactivated(
&mut self,
e: &EntityData<T::Components>,
c: &T::Components,
s: &mut T::Services
)
&mut self,
e: &EntityData<T::Components>,
c: &T::Components,
s: &mut T::Services
)
Optional method called when an entity is deactivated.