Struct amethyst_animation::AnimationBundle [−][src]
pub struct AnimationBundle<'a, I, T> { /* fields omitted */ }Bundle for a complete animation setup including sampler interpolation and animation control.
This will also add SamplingBundle, because it is a dependency of this bundle.
Will add AnimationControlSystem<T> with the given name.
Will also add AnimationProcessor<T>.
Type parameters:
I: identifier type for running animations, only one animation can be run at the same time with the same id (per entity)T: the component type that sampling should be applied to
Methods
impl<'a, I, T> AnimationBundle<'a, I, T>[src]
impl<'a, I, T> AnimationBundle<'a, I, T>pub fn new(animation_name: &'a str, sampling_name: &'a str) -> Self[src]
pub fn new(animation_name: &'a str, sampling_name: &'a str) -> SelfCreate a new animation bundle
Parameters:
animation_name: name of theAnimationControlSystemsampling_name: name of theSamplerInterpolationSystem
pub fn with_dep(self, dep: &'a [&'a str]) -> Self[src]
pub fn with_dep(self, dep: &'a [&'a str]) -> SelfSet dependencies for the AnimationControlSystem
Trait Implementations
impl<'a, I: Default, T: Default> Default for AnimationBundle<'a, I, T>[src]
impl<'a, I: Default, T: Default> Default for AnimationBundle<'a, I, T>fn default() -> AnimationBundle<'a, I, T>[src]
fn default() -> AnimationBundle<'a, I, T>Returns the "default value" for a type. Read more
impl<'a, 'b, 'c, I, T> SystemBundle<'a, 'b> for AnimationBundle<'c, I, T> where
I: PartialEq + Eq + Hash + Copy + Send + Sync + 'static,
T: AnimationSampling + Component + Clone, [src]
impl<'a, 'b, 'c, I, T> SystemBundle<'a, 'b> for AnimationBundle<'c, I, T> where
I: PartialEq + Eq + Hash + Copy + Send + Sync + 'static,
T: AnimationSampling + Component + Clone, Auto Trait Implementations
impl<'a, I, T> Send for AnimationBundle<'a, I, T> where
I: Send,
T: Send,
impl<'a, I, T> Send for AnimationBundle<'a, I, T> where
I: Send,
T: Send, impl<'a, I, T> Sync for AnimationBundle<'a, I, T> where
I: Sync,
T: Sync,
impl<'a, I, T> Sync for AnimationBundle<'a, I, T> where
I: Sync,
T: Sync,