Struct constellation::World
[−]
[src]
pub struct World { /* fields omitted */ }
Stores entities are resources, and provides mechanisms to update the world state via systems.
Methods
impl World
[src]
fn new() -> World
Constructs a new World
.
fn register<T: Resource>(&mut self, builder: ResourceBuilder<T>) -> u8
Registers a new resource with the World
, allowing systems to access the resource.
fn register_resource<T: Resource>(&mut self, resource: T) -> u8
Registers a new resource with the World
, allowing systems to access the resource.
impl World
[src]
fn run_with_state<S: Send + Sync + 'static>(
&mut self,
systems: &mut SystemCommandBuffer<S>,
state: &S
)
&mut self,
systems: &mut SystemCommandBuffer<S>,
state: &S
)
Executes a SystemCommandBuffer
, potentially scheduling systems for parallel execution, with the given state.
fn run<S: Send + Sync + Default + 'static>(
&mut self,
systems: &mut SystemCommandBuffer<S>
)
&mut self,
systems: &mut SystemCommandBuffer<S>
)
Executes a SystemCommandBuffer
, potentially scheduling systems for parallel execution, with a default state value.
fn run_with_state_sequential<S: Send + Sync + 'static>(
&mut self,
systems: &mut SystemCommandBuffer<S>,
mode: SequentialExecute,
state: &S
)
&mut self,
systems: &mut SystemCommandBuffer<S>,
mode: SequentialExecute,
state: &S
)
Executes a SystemCommandBuffer
sequentially, with the given state.
fn run_sequential<S: Send + Sync + Default + 'static>(
&mut self,
systems: &mut SystemCommandBuffer<S>,
mode: SequentialExecute
)
&mut self,
systems: &mut SystemCommandBuffer<S>,
mode: SequentialExecute
)
Executes a SystemCommandBuffer
sequentially, with a default state value.