[][src]Struct amethyst_animation::AnimationControl

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:


animation: Handle<Animation<T>>

Animation handle

id: u64

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

end: EndControl

What to do when animation ends

state: ControlState

State of animation

command: AnimationCommand<T>

Animation command

rate_multiplier: f32

Control the rate of animation, default is 1.0


impl<T> AnimationControl<T> where
    T: AnimationSampling

pub fn new(
    animation: Handle<Animation<T>>,
    end: EndControl,
    state: ControlState,
    command: AnimationCommand<T>,
    rate_multiplier: f32
) -> Self

Creates a new AnimationControl

Trait Implementations

impl<T: Clone> Clone for AnimationControl<T> where
    T: AnimationSampling

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more

impl<T: Debug> Debug for AnimationControl<T> where
    T: AnimationSampling

impl<T> Component for AnimationControl<T> where
    T: AnimationSampling

type Storage = DenseVecStorage<Self>

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

Blanket Implementations

impl<T> From for T[src]

impl<T, U> Into for T where
    U: From<T>, 

impl<T> ToOwned for T where
    T: Clone

type Owned = T

impl<T, U> TryFrom for T where
    U: Into<T>, 

type Error = Infallible

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized

impl<T> Any for T where
    T: 'static + ?Sized

impl<T> BorrowMut for T where
    T: ?Sized

impl<T, U> TryInto for T where
    U: TryFrom<T>, 

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Same for T

type Output = T

Should always be Self

impl<SS, SP> SupersetOf for SP where
    SS: SubsetOf<SP>, 

impl<T> Resource for T where
    T: Any + Send + Sync

impl<T> Any for T where
    T: Any

impl<T> Event for T where
    T: Send + Sync + 'static, 

impl<T> Erased for T

impl<T> SetParameter for T

fn set<T>(&mut self, value: T) -> <T as Parameter<Self>>::Result where
    T: Parameter<Self>, 

Sets value as a parameter of self.