Struct amethyst_animation::AnimationControl[][src]

pub struct AnimationControl<T> where
    T: AnimationSampling
{ pub animation: Handle<Animation<T>>, pub id: u64, pub end: EndControl, pub state: ControlState, pub command: AnimationCommand<T>, pub rate_multiplier: f32, // some fields omitted }

Controls the state of a single running animation on a specific component type

Type parameters:

  • T: the component type that the animation should be applied to

Fields

Animation handle

Id, a value of zero means this has not been initialised yet (this is done by the control system)

What to do when animation ends

State of animation

Animation command

Control the rate of animation, default is 1.0

Methods

impl<T> AnimationControl<T> where
    T: AnimationSampling
[src]

Trait Implementations

impl<T: Clone> Clone for AnimationControl<T> where
    T: AnimationSampling
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl<T: Debug> Debug for AnimationControl<T> where
    T: AnimationSampling
[src]

Formats the value using the given formatter. Read more

impl<T> Component for AnimationControl<T> where
    T: AnimationSampling
[src]

Associated storage type for this component.

Auto Trait Implementations

impl<T> Send for AnimationControl<T> where
    <T as AnimationSampling>::Channel: Send,
    <T as AnimationSampling>::Primitive: Send

impl<T> Sync for AnimationControl<T> where
    <T as AnimationSampling>::Channel: Sync,
    <T as AnimationSampling>::Primitive: Sync