[−][src]Struct bevy_app::AppBuilder
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<S: Stage>(&mut self, name: &'static str, stage: S) -> &mut Self
[src]
pub fn add_stage_after<S: Stage>(
&mut self,
target: &'static str,
name: &'static str,
stage: S
) -> &mut Self
[src]
&mut self,
target: &'static str,
name: &'static str,
stage: S
) -> &mut Self
pub fn add_stage_before<S: Stage>(
&mut self,
target: &'static str,
name: &'static str,
stage: S
) -> &mut Self
[src]
&mut self,
target: &'static str,
name: &'static str,
stage: S
) -> &mut Self
pub fn add_startup_stage<S: Stage>(
&mut self,
name: &'static str,
stage: S
) -> &mut Self
[src]
&mut self,
name: &'static str,
stage: S
) -> &mut Self
pub fn add_startup_stage_after<S: Stage>(
&mut self,
target: &'static str,
name: &'static str,
stage: S
) -> &mut Self
[src]
&mut self,
target: &'static str,
name: &'static str,
stage: S
) -> &mut Self
pub fn add_startup_stage_before<S: Stage>(
&mut self,
target: &'static str,
name: &'static str,
stage: S
) -> &mut Self
[src]
&mut self,
target: &'static str,
name: &'static str,
stage: S
) -> &mut Self
pub fn stage<T: Stage, F: FnOnce(&mut T) -> &mut T>(
&mut self,
name: &str,
func: F
) -> &mut Self
[src]
&mut self,
name: &str,
func: F
) -> &mut Self
pub fn add_system<S: System<In = (), Out = ()>>(
&mut self,
system: S
) -> &mut Self
[src]
&mut self,
system: S
) -> &mut Self
pub fn on_state_enter<T: Clone + Resource, S: System<In = (), Out = ()>>(
&mut self,
stage: &str,
state: T,
system: S
) -> &mut Self
[src]
&mut self,
stage: &str,
state: T,
system: S
) -> &mut Self
pub fn on_state_update<T: Clone + Resource, S: System<In = (), Out = ()>>(
&mut self,
stage: &str,
state: T,
system: S
) -> &mut Self
[src]
&mut self,
stage: &str,
state: T,
system: S
) -> &mut Self
pub fn on_state_exit<T: Clone + Resource, S: System<In = (), Out = ()>>(
&mut self,
stage: &str,
state: T,
system: S
) -> &mut Self
[src]
&mut self,
stage: &str,
state: T,
system: S
) -> &mut Self
pub fn add_startup_system_to_stage<S: System<In = (), Out = ()>>(
&mut self,
stage_name: &'static str,
system: S
) -> &mut Self
[src]
&mut self,
stage_name: &'static str,
system: S
) -> &mut Self
pub fn add_startup_system<S: System<In = (), Out = ()>>(
&mut self,
system: S
) -> &mut Self
[src]
&mut self,
system: S
) -> &mut Self
pub fn add_default_stages(&mut self) -> &mut Self
[src]
pub fn add_system_to_stage<S: System<In = (), Out = ()>>(
&mut self,
stage_name: &'static str,
system: S
) -> &mut Self
[src]
&mut self,
stage_name: &'static str,
system: S
) -> &mut Self
pub fn add_event<T>(&mut self) -> &mut Self where
T: Send + Sync + 'static,
[src]
T: Send + Sync + 'static,
pub fn add_resource<T>(&mut self, resource: T) -> &mut Self where
T: Send + Sync + 'static,
[src]
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 Self where
T: 'static,
[src]
T: 'static,
pub fn init_resource<R>(&mut self) -> &mut Self where
R: FromResources + Send + Sync + 'static,
[src]
R: FromResources + Send + Sync + 'static,
pub fn init_thread_local_resource<R>(&mut self) -> &mut Self where
R: FromResources + 'static,
[src]
R: FromResources + 'static,
pub fn set_runner(&mut self, run_fn: impl Fn(App) + 'static) -> &mut Self
[src]
pub fn add_plugin<T>(&mut self, plugin: T) -> &mut Self where
T: Plugin,
[src]
T: Plugin,
pub fn add_plugins<T: PluginGroup>(&mut self, group: T) -> &mut Self
[src]
pub fn add_plugins_with<T, F>(&mut self, group: T, func: F) -> &mut Self where
T: PluginGroup,
F: FnOnce(&mut PluginGroupBuilder) -> &mut PluginGroupBuilder,
[src]
T: PluginGroup,
F: FnOnce(&mut PluginGroupBuilder) -> &mut PluginGroupBuilder,
Trait Implementations
impl Default for AppBuilder
[src]
Auto Trait Implementations
impl !RefUnwindSafe for AppBuilder
[src]
impl !Send for AppBuilder
[src]
impl !Sync for AppBuilder
[src]
impl Unpin for AppBuilder
[src]
impl !UnwindSafe for AppBuilder
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Downcast for T where
T: Any,
T: Any,
pub fn into_any(self: Box<T, Global>) -> Box<dyn Any + 'static, Global>
pub fn into_any_rc(self: Rc<T>) -> Rc<dyn Any + 'static>
pub fn as_any(&self) -> &(dyn Any + 'static)
pub fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
impl<T> From<T> for T
[src]
impl<T> FromResources for T where
T: Default,
[src]
T: Default,
pub fn from_resources(_resources: &Resources) -> T
[src]
impl<T> Instrument for T
[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,