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]

Create a new animation bundle

Parameters:

  • animation_name: name of the AnimationControlSystem
  • sampling_name: name of the SamplerInterpolationSystem

Set dependencies for the AnimationControlSystem

Trait Implementations

impl<'a, I: Default, T: Default> Default for AnimationBundle<'a, I, T>
[src]

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]

Build and add ECS resources, register components, add systems etc to the Application.

Auto Trait Implementations

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