pub struct ComboTrailIntegration {
pub combo_count: u32,
pub width_multiplier: f32,
pub emission_multiplier: f32,
pub intensity_multiplier: f32,
pub milestone_pending: bool,
pub milestone_tier: u32,
}Expand description
Computes trail visual modifiers based on the current combo count.
Fields§
§combo_count: u32Current combo count.
width_multiplier: f32Trail width multiplier.
emission_multiplier: f32Trail emission multiplier.
intensity_multiplier: f32Trail intensity multiplier.
milestone_pending: boolWhether a milestone effect should fire.
milestone_tier: u32The milestone tier that was just reached (10, 25, 50, 100).
Implementations§
Source§impl ComboTrailIntegration
impl ComboTrailIntegration
pub fn new() -> Self
Sourcepub fn take_milestone(&mut self) -> Option<u32>
pub fn take_milestone(&mut self) -> Option<u32>
Consume and return the pending milestone tier, if any.
Sourcepub fn apply_to_trail(&self, trail: &mut WeaponTrail)
pub fn apply_to_trail(&self, trail: &mut WeaponTrail)
Apply modifiers to a weapon trail.
Trait Implementations§
Source§impl Clone for ComboTrailIntegration
impl Clone for ComboTrailIntegration
Source§fn clone(&self) -> ComboTrailIntegration
fn clone(&self) -> ComboTrailIntegration
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ComboTrailIntegration
impl Debug for ComboTrailIntegration
Auto Trait Implementations§
impl Freeze for ComboTrailIntegration
impl RefUnwindSafe for ComboTrailIntegration
impl Send for ComboTrailIntegration
impl Sync for ComboTrailIntegration
impl Unpin for ComboTrailIntegration
impl UnsafeUnpin for ComboTrailIntegration
impl UnwindSafe for ComboTrailIntegration
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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.