Struct amethyst_ecs::Simulation
[−]
[src]
pub struct Simulation { // some fields omitted }
Methods
impl Simulation
[src]
fn new() -> Simulation
Creates an empty simulation.
fn build() -> SimBuilder
Creates an initialized simulation using the builder pattern.
fn add_processor<T: Processor + 'static>(&mut self, p: T) -> ProcessorResult
Adds a new processor to the simulation.
fn step(&mut self, world: World) -> World
Computes the next state of the world using the given processors.