pub struct Universe {
pub simulation: World,
pub systems: Systems,
pub resources: Resources,
/* private fields */
}
Fields§
§simulation: World
§systems: Systems
§resources: Resources
Implementations§
Source§impl Universe
impl Universe
pub fn new(simulation: World) -> Self
pub fn with_basics( self, stack_capacity: usize, registers_capacity: usize, ) -> Self
pub fn clear_changes(&mut self)
pub fn execute_commands<const LOCKING: bool>(&mut self)
pub fn with_plugin<T: Plugin + 'static>(self, plugin: T) -> Self
pub fn add_plugin<T: Plugin + 'static>(&self, plugin: T)
pub fn remove_plugin<T: Plugin + 'static>(&self)
pub fn remove_plugin_raw(&self, type_hash: TypeHash)
pub fn clear_plugins(&mut self)
pub fn maintain_plugins(&mut self)
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for Universe
impl !RefUnwindSafe for Universe
impl Send for Universe
impl Sync for Universe
impl Unpin for Universe
impl !UnwindSafe for Universe
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