[][src]Struct conniecs::world::World

pub struct World<S> where
    S: SystemManager
{ pub systems: S, pub data: DataHelper<S::Components, S::Services>, }

Fields

systems: Sdata: DataHelper<S::Components, S::Services>

Methods

impl<S> World<S> where
    S: SystemManager
[src]

pub fn new() -> Self where
    S::Services: Default
[src]

pub fn with_services(services: S::Services) -> Self[src]

Important traits for EntityIter<'a, C>
pub fn entities(&self) -> EntityIter<S::Components>[src]

pub fn modify_entity<F>(&mut self, entity: Entity, modifier: F) where
    F: FnOnce(ModifyData<S::Components>, &mut S::Components, &mut S::Services), 
[src]

pub fn modify_entity_with_modifer<M>(&mut self, entity: Entity, modifier: M) where
    M: EntityModifier<S::Components, S::Services>, 
[src]

pub fn refresh(&mut self)[src]

pub fn flush_queue(&mut self)[src]

pub fn update(&mut self)[src]

pub fn wipe(&mut self)[src]

Mass delete all entities and their data

Auto Trait Implementations

impl<S> Send for World<S> where
    S: Send,
    <S as SystemManager>::Components: Send,
    <S as SystemManager>::Services: Send

impl<S> Sync for World<S> where
    S: Sync,
    <S as SystemManager>::Components: Sync,
    <S as SystemManager>::Services: Sync

Blanket Implementations

impl<T> Component for T where
    T: 'static, 
[src]

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T> From for T[src]

impl<T, U> TryFrom for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.