Struct ecs::system::entity::EntitySystem
[−]
[src]
pub struct EntitySystem<T: EntityProcess> { pub inner: T, // some fields omitted }
Fields
inner: T
Methods
impl<T: EntityProcess> EntitySystem<T>
[src]
fn new(inner: T, aspect: Aspect<T::Components>) -> EntitySystem<T>
Trait Implementations
impl<T: EntityProcess> Deref for EntitySystem<T>
[src]
type Target = T
The resulting type after dereferencing
fn deref(&self) -> &T
The method called to dereference a value
impl<T: EntityProcess> DerefMut for EntitySystem<T>
[src]
fn deref_mut(&mut self) -> &mut T
The method called to mutably dereference a value
impl<T: EntityProcess> System for EntitySystem<T>
[src]
type Components = T::Components
type Services = T::Services
fn activated(
&mut self,
entity: &EntityData<T::Components>,
components: &T::Components,
services: &mut T::Services
)
&mut self,
entity: &EntityData<T::Components>,
components: &T::Components,
services: &mut T::Services
)
Optional method called when an entity is activated.
fn reactivated(
&mut self,
entity: &EntityData<T::Components>,
components: &T::Components,
services: &mut T::Services
)
&mut self,
entity: &EntityData<T::Components>,
components: &T::Components,
services: &mut T::Services
)
Optional method called when an entity is reactivated. Read more
fn deactivated(
&mut self,
entity: &EntityData<T::Components>,
components: &T::Components,
services: &mut T::Services
)
&mut self,
entity: &EntityData<T::Components>,
components: &T::Components,
services: &mut T::Services
)
Optional method called when an entity is deactivated.
impl<T: EntityProcess> Process for EntitySystem<T>
[src]
fn process(&mut self, c: &mut DataHelper<T::Components, T::Services>)
Process the world.