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 animatableComponent
Fields
samplers: Vec<(usize, T::Channel, Sampler<T::Primitive>)>
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]
impl<T: Clone> Clone for AnimationPrefab<T> where
T: AnimationSampling,
T::Channel: DeserializeOwned + Serialize,
T::Primitive: DeserializeOwned + Serialize,
T::Channel: Clone,
T::Primitive: Clone, fn clone(&self) -> AnimationPrefab<T>[src]
fn clone(&self) -> AnimationPrefab<T>Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
fn clone_from(&mut self, source: &Self)1.0.0
[src]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]
impl<T: Debug> Debug for AnimationPrefab<T> where
T: AnimationSampling,
T::Channel: DeserializeOwned + Serialize,
T::Primitive: DeserializeOwned + Serialize,
T::Channel: Debug,
T::Primitive: Debug, fn fmt(&self, f: &mut Formatter) -> Result[src]
fn fmt(&self, f: &mut Formatter) -> ResultFormats 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]
impl<T> Default for AnimationPrefab<T> where
T: AnimationSampling,
T::Channel: for<'a> Deserialize<'a> + Serialize,
T::Primitive: for<'a> Deserialize<'a> + Serialize, impl<'a, T> PrefabData<'a> for AnimationPrefab<T> where
T: AnimationSampling,
T::Channel: DeserializeOwned + Serialize,
T::Primitive: DeserializeOwned + Serialize, [src]
impl<'a, T> PrefabData<'a> for AnimationPrefab<T> where
T: AnimationSampling,
T::Channel: DeserializeOwned + Serialize,
T::Primitive: DeserializeOwned + Serialize, type SystemData = (ReadExpect<'a, Loader>, Read<'a, AssetStorage<Sampler<T::Primitive>>>, Read<'a, AssetStorage<Animation<T>>>)
SystemData needed to perform the load
type Result = Handle<Animation<T>>
The result type returned by the load operation
fn load_prefab(
&self,
_: Entity,
_: &mut Self::SystemData,
_: &[Entity]
) -> Result<Handle<Animation<T>>, PrefabError>[src]
fn load_prefab(
&self,
_: Entity,
_: &mut Self::SystemData,
_: &[Entity]
) -> Result<Handle<Animation<T>>, PrefabError>Load the data for this prefab onto the given Entity Read more
fn trigger_sub_loading(
&mut self,
progress: &mut ProgressCounter,
(loader, sampler_storage, animation_storage): &mut Self::SystemData
) -> Result<bool, PrefabError>[src]
fn trigger_sub_loading(
&mut self,
progress: &mut ProgressCounter,
(loader, sampler_storage, animation_storage): &mut Self::SystemData
) -> Result<bool, PrefabError>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> 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,
impl<T> Sync for AnimationPrefab<T> where
<T as AnimationSampling>::Channel: Sync,
<T as AnimationSampling>::Primitive: Sync,