pub struct World<S>where
S: SystemManager,{
pub systems: S,
pub data: DataHelper<S::Components, S::Services>,
}Fields§
§systems: S§data: DataHelper<S::Components, S::Services>Implementations§
Source§impl<S: SystemManager> World<S>
impl<S: SystemManager> World<S>
pub fn new() -> World<S>
pub fn with_services(services: S::Services) -> World<S>
pub fn entities(&self) -> EntityIter<'_, S::Components> ⓘ
pub fn modify_entity<M>(&mut self, entity: Entity, modifier: M)where
M: EntityModifier<S::Components>,
pub fn refresh(&mut self)
pub fn flush_queue(&mut self)
pub fn update(&mut self)
Methods from Deref<Target = DataHelper<S::Components, S::Services>>§
pub fn with_entity_data<F, R>(&mut self, entity: &Entity, call: F) -> Option<R>
pub fn create_entity<B>(&mut self, builder: B) -> Entitywhere
B: EntityBuilder<C>,
pub fn remove_entity(&mut self, entity: Entity)
Trait Implementations§
Source§impl<S: SystemManager> Deref for World<S>
impl<S: SystemManager> Deref for World<S>
Source§type Target = DataHelper<<S as SystemManager>::Components, <S as SystemManager>::Services>
type Target = DataHelper<<S as SystemManager>::Components, <S as SystemManager>::Services>
The resulting type after dereferencing.
Source§fn deref(&self) -> &DataHelper<S::Components, S::Services>
fn deref(&self) -> &DataHelper<S::Components, S::Services>
Dereferences the value.
Source§impl<S: SystemManager> DerefMut for World<S>
impl<S: SystemManager> DerefMut for World<S>
Source§fn deref_mut(&mut self) -> &mut DataHelper<S::Components, S::Services>
fn deref_mut(&mut self) -> &mut DataHelper<S::Components, S::Services>
Mutably dereferences the value.
Auto Trait Implementations§
impl<S> Freeze for World<S>
impl<S> RefUnwindSafe for World<S>where
S: RefUnwindSafe,
<S as SystemManager>::Components: RefUnwindSafe,
<S as SystemManager>::Services: RefUnwindSafe,
impl<S> Send for World<S>
impl<S> Sync for World<S>
impl<S> Unpin for World<S>
impl<S> UnwindSafe for World<S>where
S: UnwindSafe,
<S as SystemManager>::Components: UnwindSafe,
<S as SystemManager>::Services: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more