Function amethyst_animation::get_animation_set [−][src]
pub fn get_animation_set<'a, I, T>(
controls: &'a mut WriteStorage<AnimationControlSet<I, T>>,
entity: Entity
) -> &'a mut AnimationControlSet<I, T> where
I: Send + Sync + 'static,
T: AnimationSampling,
Get the animation set for an entity. If none exists, one will be added.
Type parameters:
I: identifier type for running animations, only one animation can be run at the same time with the same idT: the component type that the animation applies to