Struct amethyst_assets::HotReloadSystem
source · pub struct HotReloadSystem { /* private fields */ }
Expand description
System for updating HotReloadStrategy
.
Implementations
sourceimpl HotReloadSystem
impl HotReloadSystem
sourcepub fn new(strategy: HotReloadStrategy) -> Self
pub fn new(strategy: HotReloadStrategy) -> Self
Create a new reload system
Trait Implementations
sourceimpl<'a> System<'a> for HotReloadSystem
impl<'a> System<'a> for HotReloadSystem
type SystemData = (Read<'a, Time, DefaultProvider>, Write<'a, HotReloadStrategy, DefaultProvider>)
type SystemData = (Read<'a, Time, DefaultProvider>, Write<'a, HotReloadStrategy, DefaultProvider>)
The resource bundle required to execute this system. Read more
sourcefn run(&mut self, (time, strategy): Self::SystemData)
fn run(&mut self, (time, strategy): Self::SystemData)
Executes the system with the required system
data. Read more
sourcefn running_time(&self) -> RunningTime
fn running_time(&self) -> RunningTime
Returns a hint how long the system needs for running.
This is used to optimize the way they’re executed (might
allow more parallelization). Read more
sourcefn accessor<'b>(&'b self) -> AccessorCow<'a, 'b, Self>
fn accessor<'b>(&'b self) -> AccessorCow<'a, 'b, Self>
Return the accessor from the
SystemData
.Auto Trait Implementations
impl RefUnwindSafe for HotReloadSystem
impl Send for HotReloadSystem
impl Sync for HotReloadSystem
impl Unpin for HotReloadSystem
impl UnwindSafe for HotReloadSystem
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
sourceimpl<'a, T> RunWithPool<'a> for Twhere
T: System<'a>,
impl<'a, T> RunWithPool<'a> for Twhere
T: System<'a>,
sourcefn run(&mut self, res: &'a Resources, _: &ThreadPool)
fn run(&mut self, res: &'a Resources, _: &ThreadPool)
Runs the system/group of systems. Possibly in parallel depending
on how the structure is set up. Read more
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.