Struct amethyst_ecs::SimBuilder [] [src]

pub struct SimBuilder {
    // some fields omitted
}

Consuming builder for easily constructing a new simulations.

Methods

impl SimBuilder
[src]

fn new() -> SimBuilder

Starts building a new simulation.

fn with<T: Processor + 'static>(self, p: T) -> SimBuilder

Add a given processor to the simulation.

fn done(self) -> Result<SimulationVec<String>>

Returns the newly-built simulation or a list of any errors the processors may have encountered.