[][src]Struct bevy_app::AppBuilder

pub struct AppBuilder {
    pub app: App,
}

Configure Apps using the builder pattern

Fields

app: App

Implementations

impl AppBuilder[src]

pub fn empty() -> AppBuilder[src]

pub fn resources(&self) -> &Resources[src]

pub fn resources_mut(&mut self) -> &mut Resources[src]

pub fn run(&mut self)[src]

pub fn set_world(&mut self, world: World) -> &mut Self[src]

pub fn add_stage(&mut self, stage_name: &'static str) -> &mut Self[src]

pub fn add_stage_after(
    &mut self,
    target: &'static str,
    stage_name: &'static str
) -> &mut Self
[src]

pub fn add_stage_before(
    &mut self,
    target: &'static str,
    stage_name: &'static str
) -> &mut Self
[src]

pub fn add_startup_stage(&mut self, stage_name: &'static str) -> &mut Self[src]

pub fn add_system(&mut self, system: Box<dyn System>) -> &mut Self[src]

pub fn add_systems(&mut self, systems: Vec<Box<dyn System>>) -> &mut Self[src]

pub fn init_system(
    &mut self,
    build: impl FnMut(&mut Resources) -> Box<dyn System>
) -> &mut Self
[src]

pub fn init_system_to_stage(
    &mut self,
    stage: &'static str,
    build: impl FnMut(&mut Resources) -> Box<dyn System>
) -> &mut Self
[src]

pub fn add_startup_system_to_stage(
    &mut self,
    stage_name: &'static str,
    system: Box<dyn System>
) -> &mut Self
[src]

pub fn add_startup_systems_to_stage(
    &mut self,
    stage_name: &'static str,
    systems: Vec<Box<dyn System>>
) -> &mut Self
[src]

pub fn add_startup_system(&mut self, system: Box<dyn System>) -> &mut Self[src]

pub fn add_startup_systems(
    &mut self,
    systems: Vec<Box<dyn System>>
) -> &mut Self
[src]

pub fn init_startup_system(
    &mut self,
    build: impl FnMut(&mut Resources) -> Box<dyn System>
) -> &mut Self
[src]

pub fn init_startup_system_to_stage(
    &mut self,
    stage: &'static str,
    build: impl FnMut(&mut Resources) -> Box<dyn System>
) -> &mut Self
[src]

pub fn add_default_stages(&mut self) -> &mut Self[src]

pub fn add_system_to_stage(
    &mut self,
    stage_name: &'static str,
    system: Box<dyn System>
) -> &mut Self
[src]

pub fn add_system_to_stage_front(
    &mut self,
    stage_name: &'static str,
    system: Box<dyn System>
) -> &mut Self
[src]

pub fn add_systems_to_stage(
    &mut self,
    stage_name: &'static str,
    systems: Vec<Box<dyn System>>
) -> &mut Self
[src]

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

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

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

pub fn set_runner(&mut self, run_fn: impl Fn(App) + 'static) -> &mut Self[src]

pub fn load_plugin(&mut self, path: &str) -> &mut Self[src]

pub fn add_plugin<T>(&mut self, plugin: T) -> &mut Self where
    T: Plugin
[src]

Trait Implementations

impl Default for AppBuilder[src]

Auto Trait Implementations

Blanket Implementations

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

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

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

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

impl<T> FromResources for T where
    T: Default
[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>,