[−][src]Struct dces::system::EntitySystemManager
The EntitySystemManager represents the main system storage.
Fields
priorities: BTreeMap<i32, Vec<u32>>
Priorities of the systems.
Methods
impl<T> EntitySystemManager<T> where
T: EntityContainer,
[src]
impl<T> EntitySystemManager<T> where
T: EntityContainer,
pub fn new() -> Self | [src] |
Creates a new entity system manager with default values.
pub fn register_init_system( | [src] |
Registers the init system.
pub fn register_cleanup_system( | [src] |
Registers the cleanup system.
pub fn register_system( | [src] |
Registers a new system
.
pub fn remove_system(&mut self, system_id: u32) | [src] |
Removes a system from the storage.
pub fn register_priority(&mut self, priority: Priority, system_id: u32) | [src] |
Register a priority
for the system with the given system_id
.
pub fn borrow_entity_system( | [src] |
Returns a reference of a entity system. If the entity system does not exists NotFound
will be returned.
pub fn borrow_init_system(&self) -> &Option<EntitySystem<T>> | [src] |
Returns a reference of the init entity system. If the init entity system does not exists None
will be returned.
pub fn borrow_cleanup_system(&self) -> &Option<EntitySystem<T>> | [src] |
Returns a reference of the cleanup entity system. If the init entity system does not exists None
will be returned.
Trait Implementations
impl<T: Default> Default for EntitySystemManager<T> where
T: EntityContainer,
[src]
impl<T: Default> Default for EntitySystemManager<T> where
T: EntityContainer,
fn default() -> EntitySystemManager<T> | [src] |
Auto Trait Implementations
impl<T> !Send for EntitySystemManager<T>
impl<T> !Send for EntitySystemManager<T>
impl<T> !Sync for EntitySystemManager<T>
impl<T> !Sync for EntitySystemManager<T>
Blanket Implementations
impl<T> Component for T where
T: Any,
[src]
impl<T> Component for T where
T: Any,
impl<T, U> Into for T where
U: From<T>,
[src]
impl<T, U> Into for T where
U: From<T>,
impl<T> From for T
[src]
impl<T> From for T
impl<T, U> TryFrom for T where
T: From<U>,
[src]
impl<T, U> TryFrom for T where
T: From<U>,
type Error = !
🔬 This is a nightly-only experimental API. (
try_from
)The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error> | [src] |
impl<T> Borrow for T where
T: ?Sized,
[src]
impl<T> Borrow for T where
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
impl<T> Any for T where
T: 'static + ?Sized,
fn get_type_id(&self) -> TypeId | [src] |
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
🔬 This is a nightly-only experimental API. (
try_from
)The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error> | [src] |
impl<T> BorrowMut for T where
T: ?Sized,
[src]
impl<T> BorrowMut for T where
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T | [src] |