Struct amethyst_animation::AnimationSetPrefab[][src]

pub struct AnimationSetPrefab<I, T> where
    T: AnimationSampling,
    T::Channel: for<'a> Deserialize<'a> + Serialize,
    T::Primitive: Debug + for<'a> Deserialize<'a> + Serialize
{ pub animations: Vec<(I, AnimationPrefab<T>)>, }

PrefabData for loading Animations as part of an AnimationSet.

Type parameters

  • I: Id type
  • T: The animatable Component

Fields

Pairs of Id and Animation

Trait Implementations

impl<I: Clone, T: Clone> Clone for AnimationSetPrefab<I, T> where
    T: AnimationSampling,
    T::Channel: for<'a> Deserialize<'a> + Serialize,
    T::Primitive: Debug + for<'a> Deserialize<'a> + Serialize
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl<I: Debug, T: Debug> Debug for AnimationSetPrefab<I, T> where
    T: AnimationSampling,
    T::Channel: for<'a> Deserialize<'a> + Serialize,
    T::Primitive: Debug + for<'a> Deserialize<'a> + Serialize
[src]

Formats the value using the given formatter. Read more

impl<I: Default, T: Default> Default for AnimationSetPrefab<I, T> where
    T: AnimationSampling,
    T::Channel: for<'a> Deserialize<'a> + Serialize,
    T::Primitive: Debug + for<'a> Deserialize<'a> + Serialize
[src]

Returns the "default value" for a type. Read more

impl<'a, I, T> PrefabData<'a> for AnimationSetPrefab<I, T> where
    T: AnimationSampling,
    T::Channel: for<'b> Deserialize<'b> + Serialize,
    T::Primitive: Debug + for<'b> Deserialize<'b> + Serialize,
    I: Clone + Hash + Eq + Send + Sync + 'static, 
[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<I, T> Send for AnimationSetPrefab<I, T> where
    I: Send,
    <T as AnimationSampling>::Channel: Send,
    <T as AnimationSampling>::Primitive: Send

impl<I, T> Sync for AnimationSetPrefab<I, T> where
    I: Sync,
    <T as AnimationSampling>::Channel: Sync,
    <T as AnimationSampling>::Primitive: Sync