pub struct TweenTimeline {
pub tracks: HashMap<String, TweenSequence<f32>>,
pub elapsed: f32,
pub looping: bool,
pub done: bool,
/* private fields */
}Expand description
Multiple named f32 animation tracks running in parallel.
Each track is an independent TweenSequence<f32>.
Access current values by name each frame.
Fields§
§tracks: HashMap<String, TweenSequence<f32>>§elapsed: f32§looping: bool§done: boolImplementations§
Source§impl TweenTimeline
impl TweenTimeline
Source§impl TweenTimeline
impl TweenTimeline
Sourcepub fn damage_flash(intensity: f32) -> Self
pub fn damage_flash(intensity: f32) -> Self
Build a damage flash timeline: screen red flash + slight scale pop.
Sourcepub fn boss_entrance() -> Self
pub fn boss_entrance() -> Self
Build a boss entrance timeline: dark vignette crunch → reveal.
Sourcepub fn death_sequence() -> Self
pub fn death_sequence() -> Self
Build a death sequence: drain color, crush vignette, fade to black.
Sourcepub fn heal_pulse(amount_fraction: f32) -> Self
pub fn heal_pulse(amount_fraction: f32) -> Self
Build a healing pulse: green tint flash + brightness glow.
Auto Trait Implementations§
impl Freeze for TweenTimeline
impl RefUnwindSafe for TweenTimeline
impl Send for TweenTimeline
impl Sync for TweenTimeline
impl Unpin for TweenTimeline
impl UnsafeUnpin for TweenTimeline
impl UnwindSafe for TweenTimeline
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.