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<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
Methods
impl<T> AnimationControl<T> where
T: AnimationSampling,
[src]
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
[src]
pub fn new(
animation: Handle<Animation<T>>,
end: EndControl,
state: ControlState,
command: AnimationCommand<T>,
rate_multiplier: f32
) -> Self
Trait Implementations
impl<T: Clone> Clone for AnimationControl<T> where
T: AnimationSampling,
[src]
impl<T: Clone> Clone for AnimationControl<T> where
T: AnimationSampling,
fn clone(&self) -> AnimationControl<T>
[src]
fn clone(&self) -> AnimationControl<T>
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl<T: Debug> Debug for AnimationControl<T> where
T: AnimationSampling,
[src]
impl<T: Debug> Debug for AnimationControl<T> where
T: AnimationSampling,
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl<T> Component for AnimationControl<T> where
T: AnimationSampling,
[src]
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> 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,
impl<T> Sync for AnimationControl<T> where
<T as AnimationSampling>::Channel: Sync,
<T as AnimationSampling>::Primitive: Sync,