Struct amethyst::ApplicationBuilder
[−]
[src]
pub struct ApplicationBuilder<T> where
T: State + 'static, { /* fields omitted */ }
Helper builder for Applications.
Methods
impl<T> ApplicationBuilder<T> where
T: State + 'static,
[src]
T: State + 'static,
fn new(initial_state: T, cfg: DisplayConfig) -> ApplicationBuilder<T>
Creates a new ApplicationBuilder with the given initial game state and display configuration.
fn register<C>(self) -> ApplicationBuilder<T> where
C: Component,
C: Component,
Registers a given component type.
fn with<S>(self, sys: S, name: &str, pri: Priority) -> ApplicationBuilder<T> where
S: System<()> + 'static,
S: System<()> + 'static,
Adds a given system pro
, assigns it the string identifier name
,
and marks it with the runtime priority pri
.
fn done(self) -> Application
Builds the Application and returns the result.