Struct amethyst_assets::HotReloadBundle
source · pub struct HotReloadBundle { /* private fields */ }
Expand description
This bundle activates hot reload for the Loader
,
adds a HotReloadStrategy
and the HotReloadSystem
.
Implementations
sourceimpl HotReloadBundle
impl HotReloadBundle
sourcepub fn new(strategy: HotReloadStrategy) -> Self
pub fn new(strategy: HotReloadStrategy) -> Self
Creates a new bundle.
Trait Implementations
sourceimpl Default for HotReloadBundle
impl Default for HotReloadBundle
sourcefn default() -> HotReloadBundle
fn default() -> HotReloadBundle
Returns the “default value” for a type. Read more
sourceimpl<'a, 'b> SystemBundle<'a, 'b> for HotReloadBundle
impl<'a, 'b> SystemBundle<'a, 'b> for HotReloadBundle
sourcefn build(self, dispatcher: &mut DispatcherBuilder<'a, 'b>) -> Result<()>
fn build(self, dispatcher: &mut DispatcherBuilder<'a, 'b>) -> Result<()>
Build and add ECS resources, register components, add systems etc to the Application.
Auto Trait Implementations
impl RefUnwindSafe for HotReloadBundle
impl Send for HotReloadBundle
impl Sync for HotReloadBundle
impl Unpin for HotReloadBundle
impl UnwindSafe for HotReloadBundle
Blanket Implementations
impl<T> Any for Twhere
T: Any,
impl<T> Any for Twhere
T: Any,
fn get_type_id(&self) -> TypeId
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<T> Pointable for T
impl<T> Pointable for T
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self
from the equivalent element of its
superset. Read morefn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self
is actually part of its subset T
(and can be converted to it).unsafe fn to_subset_unchecked(&self) -> SS
unsafe fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset
but without any property checks. Always succeeds.fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self
to the equivalent element of its superset.impl<T> TryDefault for Twhere
T: Default,
impl<T> TryDefault for Twhere
T: Default,
fn try_default() -> Result<T, String>
fn try_default() -> Result<T, String>
Tries to create the default.
fn unwrap_default() -> Self
fn unwrap_default() -> Self
Calls
try_default
and panics on an error case.