Struct amethyst_assets::PrefabLoaderSystem
source · pub struct PrefabLoaderSystem<T> { /* private fields */ }
Expand description
Trait Implementations
sourceimpl<T> Default for PrefabLoaderSystem<T>
impl<T> Default for PrefabLoaderSystem<T>
sourceimpl<'a, T> System<'a> for PrefabLoaderSystem<T>where
T: PrefabData<'a> + Send + Sync + 'static,
impl<'a, T> System<'a> for PrefabLoaderSystem<T>where
T: PrefabData<'a> + Send + Sync + 'static,
type SystemData = (Read<'a, EntitiesRes, DefaultProvider>, Write<'a, AssetStorage<Prefab<T>>, DefaultProvider>, Storage<'a, Handle<Prefab<T>>, Fetch<'a, MaskedStorage<Handle<Prefab<T>>>>>, Read<'a, Time, DefaultProvider>, Read<'a, Arc<ThreadPool>, PanicHandler>, Option<Read<'a, HotReloadStrategy, DefaultProvider>>, Storage<'a, Parent, FetchMut<'a, MaskedStorage<Parent>>>, Storage<'a, PrefabTag<T>, FetchMut<'a, MaskedStorage<PrefabTag<T>>>>, <T as PrefabData<'a>>::SystemData)
type SystemData = (Read<'a, EntitiesRes, DefaultProvider>, Write<'a, AssetStorage<Prefab<T>>, DefaultProvider>, Storage<'a, Handle<Prefab<T>>, Fetch<'a, MaskedStorage<Handle<Prefab<T>>>>>, Read<'a, Time, DefaultProvider>, Read<'a, Arc<ThreadPool>, PanicHandler>, Option<Read<'a, HotReloadStrategy, DefaultProvider>>, Storage<'a, Parent, FetchMut<'a, MaskedStorage<Parent>>>, Storage<'a, PrefabTag<T>, FetchMut<'a, MaskedStorage<PrefabTag<T>>>>, <T as PrefabData<'a>>::SystemData)
The resource bundle required to execute this system. Read more
sourcefn run(&mut self, data: Self::SystemData)
fn run(&mut self, data: 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<T> !RefUnwindSafe for PrefabLoaderSystem<T>
impl<T> Send for PrefabLoaderSystem<T>where
T: Send,
impl<T> Sync for PrefabLoaderSystem<T>where
T: Sync,
impl<T> Unpin for PrefabLoaderSystem<T>where
T: Unpin,
impl<T> !UnwindSafe for PrefabLoaderSystem<T>
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<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.