Struct ecs::system::interval::IntervalSystem
[−]
[src]
pub struct IntervalSystem<T: Process> { pub inner: T, // some fields omitted }
System which operates every certain number of updates.
Fields
inner: T
Methods
impl<T: Process> IntervalSystem<T>
[src]
fn new(system: T, interval: u8) -> IntervalSystem<T>
Create a new interval system with the specified number of updates between processes.
Trait Implementations
impl<T: Process> Deref for IntervalSystem<T>
[src]
type Target = T
The resulting type after dereferencing
fn deref(&self) -> &T
The method called to dereference a value
impl<T: Process> DerefMut for IntervalSystem<T>
[src]
fn deref_mut(&mut self) -> &mut T
The method called to mutably dereference a value
impl<T: Process> Process for IntervalSystem<T>
[src]
fn process(&mut self, c: &mut DataHelper<T::Components, T::Services>)
Process the world.
impl<T: Process> System for IntervalSystem<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.