Struct amethyst_animation::AnimationPrefab[][src]

pub struct AnimationPrefab<T> where
    T: AnimationSampling,
    T::Channel: DeserializeOwned + Serialize,
    T::Primitive: DeserializeOwned + Serialize
{ pub samplers: Vec<(usize, T::Channel, Sampler<T::Primitive>)>, // some fields omitted }

PrefabData for loading a single Animation

This should be used primarily from inside other PrefabData, because this will not place anything on the Entity, it will only return a Handle<Animation> when loaded.

Type parameters

  • T: The animatable Component

Fields

All samplers in the Animation

Trait Implementations

impl<T: Clone> Clone for AnimationPrefab<T> where
    T: AnimationSampling,
    T::Channel: DeserializeOwned + Serialize,
    T::Primitive: DeserializeOwned + Serialize,
    T::Channel: Clone,
    T::Primitive: Clone
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl<T: Debug> Debug for AnimationPrefab<T> where
    T: AnimationSampling,
    T::Channel: DeserializeOwned + Serialize,
    T::Primitive: DeserializeOwned + Serialize,
    T::Channel: Debug,
    T::Primitive: Debug
[src]

Formats the value using the given formatter. Read more

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

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

impl<'a, T> PrefabData<'a> for AnimationPrefab<T> where
    T: AnimationSampling,
    T::Channel: DeserializeOwned + Serialize,
    T::Primitive: DeserializeOwned + Serialize
[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<T> Send for AnimationPrefab<T> where
    <T as AnimationSampling>::Channel: Send,
    <T as AnimationSampling>::Primitive: Send

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