[−][src]Struct bevy::prelude::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 AppBuilder
[src]
pub fn add_stage(&mut self, stage_name: &'static str) -> &mut AppBuilder
[src]
pub fn add_stage_after(
&mut self,
target: &'static str,
stage_name: &'static str
) -> &mut AppBuilder
[src]
&mut self,
target: &'static str,
stage_name: &'static str
) -> &mut AppBuilder
pub fn add_stage_before(
&mut self,
target: &'static str,
stage_name: &'static str
) -> &mut AppBuilder
[src]
&mut self,
target: &'static str,
stage_name: &'static str
) -> &mut AppBuilder
pub fn add_startup_stage(&mut self, stage_name: &'static str) -> &mut AppBuilder
[src]
pub fn add_system(
&mut self,
system: Box<dyn System + 'static>
) -> &mut AppBuilder
[src]
&mut self,
system: Box<dyn System + 'static>
) -> &mut AppBuilder
pub fn add_systems(
&mut self,
systems: Vec<Box<dyn System + 'static>>
) -> &mut AppBuilder
[src]
&mut self,
systems: Vec<Box<dyn System + 'static>>
) -> &mut AppBuilder
pub fn init_system(
&mut self,
build: impl FnMut(&mut Resources) -> Box<dyn System + 'static>
) -> &mut AppBuilder
[src]
&mut self,
build: impl FnMut(&mut Resources) -> Box<dyn System + 'static>
) -> &mut AppBuilder
pub fn init_system_to_stage(
&mut self,
stage: &'static str,
build: impl FnMut(&mut Resources) -> Box<dyn System + 'static>
) -> &mut AppBuilder
[src]
&mut self,
stage: &'static str,
build: impl FnMut(&mut Resources) -> Box<dyn System + 'static>
) -> &mut AppBuilder
pub fn add_startup_system_to_stage(
&mut self,
stage_name: &'static str,
system: Box<dyn System + 'static>
) -> &mut AppBuilder
[src]
&mut self,
stage_name: &'static str,
system: Box<dyn System + 'static>
) -> &mut AppBuilder
pub fn add_startup_systems_to_stage(
&mut self,
stage_name: &'static str,
systems: Vec<Box<dyn System + 'static>>
) -> &mut AppBuilder
[src]
&mut self,
stage_name: &'static str,
systems: Vec<Box<dyn System + 'static>>
) -> &mut AppBuilder
pub fn add_startup_system(
&mut self,
system: Box<dyn System + 'static>
) -> &mut AppBuilder
[src]
&mut self,
system: Box<dyn System + 'static>
) -> &mut AppBuilder
pub fn add_startup_systems(
&mut self,
systems: Vec<Box<dyn System + 'static>>
) -> &mut AppBuilder
[src]
&mut self,
systems: Vec<Box<dyn System + 'static>>
) -> &mut AppBuilder
pub fn init_startup_system(
&mut self,
build: impl FnMut(&mut Resources) -> Box<dyn System + 'static>
) -> &mut AppBuilder
[src]
&mut self,
build: impl FnMut(&mut Resources) -> Box<dyn System + 'static>
) -> &mut AppBuilder
pub fn init_startup_system_to_stage(
&mut self,
stage: &'static str,
build: impl FnMut(&mut Resources) -> Box<dyn System + 'static>
) -> &mut AppBuilder
[src]
&mut self,
stage: &'static str,
build: impl FnMut(&mut Resources) -> Box<dyn System + 'static>
) -> &mut AppBuilder
pub fn add_default_stages(&mut self) -> &mut AppBuilder
[src]
pub fn add_system_to_stage(
&mut self,
stage_name: &'static str,
system: Box<dyn System + 'static>
) -> &mut AppBuilder
[src]
&mut self,
stage_name: &'static str,
system: Box<dyn System + 'static>
) -> &mut AppBuilder
pub fn add_system_to_stage_front(
&mut self,
stage_name: &'static str,
system: Box<dyn System + 'static>
) -> &mut AppBuilder
[src]
&mut self,
stage_name: &'static str,
system: Box<dyn System + 'static>
) -> &mut AppBuilder
pub fn add_systems_to_stage(
&mut self,
stage_name: &'static str,
systems: Vec<Box<dyn System + 'static>>
) -> &mut AppBuilder
[src]
&mut self,
stage_name: &'static str,
systems: Vec<Box<dyn System + 'static>>
) -> &mut AppBuilder
pub fn add_event<T>(&mut self) -> &mut AppBuilder where
T: Send + Sync + 'static,
[src]
T: Send + Sync + 'static,
pub fn add_resource<T>(&mut self, resource: T) -> &mut AppBuilder where
T: Send + Sync + 'static,
[src]
T: Send + Sync + 'static,
pub fn init_resource<R>(&mut self) -> &mut AppBuilder where
R: FromResources + Send + Sync + 'static,
[src]
R: FromResources + Send + Sync + 'static,
pub fn set_runner(&mut self, run_fn: impl Fn(App) + 'static) -> &mut AppBuilder
[src]
pub fn load_plugin(&mut self, path: &str) -> &mut AppBuilder
[src]
pub fn add_plugin<T>(&mut self, plugin: T) -> &mut AppBuilder where
T: Plugin,
[src]
T: Plugin,
Trait Implementations
impl AddAsset for AppBuilder
[src]
fn add_asset<T>(&mut self) -> &mut AppBuilder where
T: Resource,
[src]
T: Resource,
fn add_asset_loader<TAsset, TLoader>(&mut self) -> &mut AppBuilder where
TAsset: Send + Sync + 'static,
TLoader: AssetLoader<TAsset> + FromResources,
[src]
TAsset: Send + Sync + 'static,
TLoader: AssetLoader<TAsset> + FromResources,
impl AddDefaultPlugins for AppBuilder
[src]
fn add_default_plugins(&mut self) -> &mut Self
[src]
impl Default for AppBuilder
[src]
fn default() -> AppBuilder
[src]
impl RegisterType for AppBuilder
[src]
fn register_component<T>(&mut self) -> &mut AppBuilder where
T: Properties + DeserializeProperty + Component + FromResources,
[src]
T: Properties + DeserializeProperty + Component + FromResources,
fn register_properties<T>(&mut self) -> &mut AppBuilder where
T: Properties + DeserializeProperty + Component + FromResources,
[src]
T: Properties + DeserializeProperty + Component + FromResources,
fn register_property<T>(&mut self) -> &mut AppBuilder where
T: Property + DeserializeProperty,
[src]
T: Property + DeserializeProperty,
Auto Trait Implementations
impl !RefUnwindSafe for AppBuilder
impl !Send for AppBuilder
impl !Sync for AppBuilder
impl Unpin for AppBuilder
impl !UnwindSafe for AppBuilder
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Any for T where
T: Any,
T: Any,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Downcast for T where
T: Any,
T: Any,
fn into_any(self: Box<T>) -> Box<dyn Any + 'static>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any + 'static>
fn as_any(&self) -> &(dyn Any + 'static)
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,
fn from_resources(_resources: &Resources) -> T
[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.
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.
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>,