Struct amethyst::ApplicationBuilder [] [src]

pub struct ApplicationBuilder<'a, 'b, T: State + 'a> {
    pub events: EventsLoop,
    // some fields omitted
}

Helper builder for Applications.

Fields

Allows to create RenderSystem

Methods

impl<'a, 'b, T: State + 'a> ApplicationBuilder<'a, 'b, T>
[src]

[src]

Creates a new ApplicationBuilder with the given initial game state and display configuration.

[src]

Registers a given component type.

[src]

Adds an ECS resource which can be accessed from systems.

[src]

Inserts a barrier which assures that all systems added before the barrier are executed before the ones after this barrier.

Does nothing if there were no systems added since the last call to add_barrier(). Thread-local systems are not affected by barriers; they're always executed at the end.

[src]

Adds a given system sys, assigns it the string identifier name, and marks it dependent on systems dep. Note: all dependencies should be added before you add depending system If you want to register systems which can not be specified as dependencies, you can use "" as their name, which will not panic (using another name twice will).

[src]

Adds a given thread-local system sys to the Application.

All thread-local systems are executed sequentially after all non-thread-local systems.

[src]

Automatically registers components, adds resources and the rendering system.

[src]

Add asset loader to resources

[src]

Register new context within the loader

[src]

Builds the Application and returns the result.