[]Struct bevy::app::AppBuilder

pub struct AppBuilder {
    pub app: App,
}

Configure Apps using the builder pattern

Fields

app: App

Implementations

impl AppBuilder

pub fn empty() -> AppBuilder

pub fn resources(&self) -> &Resources

pub fn resources_mut(&mut self) -> &mut Resources

pub fn run(&mut self)

pub fn set_world(&mut self, world: World) -> &mut AppBuilder

pub fn add_stage<S>(&mut self, name: &'static str, stage: S) -> &mut AppBuilder where
    S: Stage

pub fn add_stage_after<S>(
    &mut self,
    target: &'static str,
    name: &'static str,
    stage: S
) -> &mut AppBuilder where
    S: Stage

pub fn add_stage_before<S>(
    &mut self,
    target: &'static str,
    name: &'static str,
    stage: S
) -> &mut AppBuilder where
    S: Stage

pub fn add_startup_stage<S>(
    &mut self,
    name: &'static str,
    stage: S
) -> &mut AppBuilder where
    S: Stage

pub fn add_startup_stage_after<S>(
    &mut self,
    target: &'static str,
    name: &'static str,
    stage: S
) -> &mut AppBuilder where
    S: Stage

pub fn add_startup_stage_before<S>(
    &mut self,
    target: &'static str,
    name: &'static str,
    stage: S
) -> &mut AppBuilder where
    S: Stage

pub fn stage<T, F>(&mut self, name: &str, func: F) -> &mut AppBuilder where
    T: Stage,
    F: FnOnce(&mut T) -> &mut T, 

pub fn add_system<S>(&mut self, system: S) -> &mut AppBuilder where
    S: System<In = (), Out = ()>, 

pub fn on_state_enter<T, S>(
    &mut self,
    stage: &str,
    state: T,
    system: S
) -> &mut AppBuilder where
    T: Clone + Resource,
    S: System<In = (), Out = ()>, 

pub fn on_state_update<T, S>(
    &mut self,
    stage: &str,
    state: T,
    system: S
) -> &mut AppBuilder where
    T: Clone + Resource,
    S: System<In = (), Out = ()>, 

pub fn on_state_exit<T, S>(
    &mut self,
    stage: &str,
    state: T,
    system: S
) -> &mut AppBuilder where
    T: Clone + Resource,
    S: System<In = (), Out = ()>, 

pub fn add_startup_system_to_stage<S>(
    &mut self,
    stage_name: &'static str,
    system: S
) -> &mut AppBuilder where
    S: System<In = (), Out = ()>, 

pub fn add_startup_system<S>(&mut self, system: S) -> &mut AppBuilder where
    S: System<In = (), Out = ()>, 

pub fn add_default_stages(&mut self) -> &mut AppBuilder

pub fn add_system_to_stage<S>(
    &mut self,
    stage_name: &'static str,
    system: S
) -> &mut AppBuilder where
    S: System<In = (), Out = ()>, 

pub fn add_event<T>(&mut self) -> &mut AppBuilder where
    T: Send + Sync + 'static, 

pub fn add_resource<T>(&mut self, resource: T) -> &mut AppBuilder where
    T: Send + Sync + 'static, 

Adds a resource to the current App and overwrites any resource previously added of the same type.

pub fn add_thread_local_resource<T>(&mut self, resource: T) -> &mut AppBuilder where
    T: 'static, 

pub fn init_resource<R>(&mut self) -> &mut AppBuilder where
    R: FromResources + Send + Sync + 'static, 

pub fn init_thread_local_resource<R>(&mut self) -> &mut AppBuilder where
    R: FromResources + 'static, 

pub fn set_runner(&mut self, run_fn: impl Fn(App) + 'static) -> &mut AppBuilder

pub fn add_plugin<T>(&mut self, plugin: T) -> &mut AppBuilder where
    T: Plugin

pub fn add_plugins<T>(&mut self, group: T) -> &mut AppBuilder where
    T: PluginGroup

pub fn add_plugins_with<T, F>(&mut self, group: T, func: F) -> &mut AppBuilder where
    T: PluginGroup,
    F: FnOnce(&mut PluginGroupBuilder) -> &mut PluginGroupBuilder

Trait Implementations

impl AddAsset for AppBuilder

impl Default for AppBuilder

impl DynamicPluginExt for AppBuilder

impl RegisterTypeBuilder for AppBuilder

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Any for T where
    T: Any

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Downcast for T where
    T: Any

impl<T> From<T> for T[src]

impl<T> FromResources for T where
    T: Default

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,