[−][src]Struct dragon::ecs::world::WorldState
Fields
entity_store: RefCell<HashMap<u32, Entity>>
entity_manager: RefCell<EntityManager>
component_store: ComponentStore
component_manager: RefCell<ComponentManager>
system_store: RefCell<BTreeMap<String, Box<dyn System>>>
active_camera: Cell<u32>
Methods
impl WorldState
[src]
pub fn new() -> Rc<Self>
[src]
pub fn register_component<C: 'static + Component>(&self) -> u32
[src]
pub fn register_system<S: 'static + System>(&self, name: &str, system: S)
[src]
pub fn tick(&self)
[src]
pub fn create_entity(&self) -> u32
[src]
pub fn bind_component<C: 'static + Component>(
&self,
entity_id: u32,
component: C
) -> bool
[src]
&self,
entity_id: u32,
component: C
) -> bool
pub fn get_component_id<C: 'static + Component>(&self) -> Option<u32>
[src]
pub fn switch_camera(&self, camera: u32)
[src]
Auto Trait Implementations
impl !Sync for WorldState
impl !Send for WorldState
impl Unpin for WorldState
impl !UnwindSafe for WorldState
impl !RefUnwindSafe for WorldState
Blanket Implementations
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
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, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
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<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<SS, SP> SupersetOf<SS> for SP where
SS: SubsetOf<SP>,
SS: SubsetOf<SP>,