Struct amethyst_animation::AnimatablePrefab [−][src]
pub struct AnimatablePrefab<I, T> where
T: AnimationSampling,
T::Channel: for<'a> Deserialize<'a> + Serialize,
T::Primitive: Debug + for<'a> Deserialize<'a> + Serialize, { pub animation_set: Option<AnimationSetPrefab<I, T>>, pub hierarchy: Option<AnimationHierarchyPrefab<T>>, pub rest_state: Option<RestState<T>>, }
PrefabData
for full animation support
Type parameters
I
: Id type ofAnimation
s inAnimationSet
sT
: The animatableComponent
Fields
animation_set: Option<AnimationSetPrefab<I, T>>
Place an AnimationSet
on the Entity
hierarchy: Option<AnimationHierarchyPrefab<T>>
Place an AnimationHierarchy
on the Entity
rest_state: Option<RestState<T>>
Place a RestState
on the Entity
Trait Implementations
impl<I: Default, T: Default> Default for AnimatablePrefab<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 AnimatablePrefab<I, T> where
T: AnimationSampling,
T::Channel: for<'a> Deserialize<'a> + Serialize,
T::Primitive: Debug + for<'a> Deserialize<'a> + Serialize,
fn default() -> AnimatablePrefab<I, T>
[src]
fn default() -> AnimatablePrefab<I, T>
Returns the "default value" for a type. Read more
impl<I: Clone, T: Clone> Clone for AnimatablePrefab<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 AnimatablePrefab<I, T> where
T: AnimationSampling,
T::Channel: for<'a> Deserialize<'a> + Serialize,
T::Primitive: Debug + for<'a> Deserialize<'a> + Serialize,
fn clone(&self) -> AnimatablePrefab<I, T>
[src]
fn clone(&self) -> AnimatablePrefab<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 AnimatablePrefab<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 AnimatablePrefab<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<'a, I, T> PrefabData<'a> for AnimatablePrefab<I, T> where
T: AnimationSampling + Clone,
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 AnimatablePrefab<I, T> where
T: AnimationSampling + Clone,
T::Channel: for<'b> Deserialize<'b> + Serialize,
T::Primitive: Debug + for<'b> Deserialize<'b> + Serialize,
I: Clone + Hash + Eq + Send + Sync + 'static,
type SystemData = (<AnimationSetPrefab<I, T> as PrefabData<'a>>::SystemData, <AnimationHierarchyPrefab<T> as PrefabData<'a>>::SystemData, <RestState<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<Self::Result, PrefabError>
[src]
fn load_prefab(
&self,
entity: Entity,
system_data: &mut Self::SystemData,
entities: &[Entity]
) -> Result<Self::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 AnimatablePrefab<I, T> where
I: Send,
<T as AnimationSampling>::Channel: Send,
<T as AnimationSampling>::Primitive: Send,
impl<I, T> Send for AnimatablePrefab<I, T> where
I: Send,
<T as AnimationSampling>::Channel: Send,
<T as AnimationSampling>::Primitive: Send,
impl<I, T> Sync for AnimatablePrefab<I, T> where
I: Sync,
<T as AnimationSampling>::Channel: Sync,
<T as AnimationSampling>::Primitive: Sync,
impl<I, T> Sync for AnimatablePrefab<I, T> where
I: Sync,
<T as AnimationSampling>::Channel: Sync,
<T as AnimationSampling>::Primitive: Sync,