Enum amethyst_assets::AssetPrefab[][src]

pub enum AssetPrefab<A, F> where
    A: Asset,
    F: Format<A>, 
{ Handle(Handle<A>), File(String, F, F::Options), }

Convenience PrefabData for loading assets of type A using Format F.

Will add a Handle<A> to the Entity

Type parameters:

  • A: Asset,
  • F: Format for loading A

Variants

From existing handle

From file, (name, format, format options)

Trait Implementations

impl<A: Clone, F: Clone> Clone for AssetPrefab<A, F> where
    A: Asset,
    F: Format<A>,
    F::Options: Clone
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl<'a, A, F> PrefabData<'a> for AssetPrefab<A, F> where
    A: Asset,
    F: Format<A> + Clone,
    F::Options: Clone
[src]

SystemData needed to perform the load

The result type returned by the load operation

Load the data for this prefab onto the given Entity Read more

Trigger asset loading for any sub assets. Read more

Auto Trait Implementations

impl<A, F> Send for AssetPrefab<A, F> where
    <F as Format<A>>::Options: Send

impl<A, F> Sync for AssetPrefab<A, F> where
    F: Sync,
    <F as Format<A>>::Options: Sync