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 Animation
s as part of an AnimationSet
.
Type parameters
I
: Id typeT
: The animatableComponent
Fields
animations: Vec<(I, AnimationPrefab<T>)>
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]
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,
fn clone(&self) -> AnimationSetPrefab<I, T>
[src]
fn clone(&self) -> AnimationSetPrefab<I, 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<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]
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,
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
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]
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,
fn default() -> AnimationSetPrefab<I, T>
[src]
fn default() -> AnimationSetPrefab<I, T>
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]
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,
type SystemData = (WriteStorage<'a, AnimationSet<I, T>>, <AnimationPrefab<T> as PrefabData<'a>>::SystemData)
SystemData
needed to perform the load
type Result = ()
The result type returned by the load operation
fn load_prefab(
&self,
entity: Entity,
system_data: &mut Self::SystemData,
entities: &[Entity]
) -> Result<(), PrefabError>
[src]
fn load_prefab(
&self,
entity: Entity,
system_data: &mut Self::SystemData,
entities: &[Entity]
) -> Result<(), PrefabError>
Load the data for this prefab onto the given Entity
Read more
fn trigger_sub_loading(
&mut self,
progress: &mut ProgressCounter,
system_data: &mut Self::SystemData
) -> Result<bool, PrefabError>
[src]
fn trigger_sub_loading(
&mut self,
progress: &mut ProgressCounter,
system_data: &mut Self::SystemData
) -> Result<bool, PrefabError>
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> 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,
impl<I, T> Sync for AnimationSetPrefab<I, T> where
I: Sync,
<T as AnimationSampling>::Channel: Sync,
<T as AnimationSampling>::Primitive: Sync,