pub struct GroundEffectDefinition {
pub(crate) geometry_effect: DamageEffectId,
pub(crate) damage_effect: DamageEffectId,
pub(crate) profile_action: DamageActionId,
pub(crate) driver_action: Option<DamageActionId>,
pub(crate) timing_effect: Option<DamageEffectId>,
pub(crate) pulse_count: u8,
pub(crate) pulse_period_ms: u32,
pub(crate) first_pulse_delay_ms: u32,
pub(crate) multiplier: f64,
pub(crate) flags: DamageFlags,
}Expand description
Construction-time description of one location-locked damage sequence.
Fields§
§geometry_effect: DamageEffectId§damage_effect: DamageEffectId§profile_action: DamageActionId§driver_action: Option<DamageActionId>§timing_effect: Option<DamageEffectId>§pulse_count: u8§pulse_period_ms: u32§first_pulse_delay_ms: u32§multiplier: f64§flags: DamageFlagsImplementations§
Source§impl GroundEffectDefinition
impl GroundEffectDefinition
pub const fn new( geometry_effect: DamageEffectId, damage_effect: DamageEffectId, ) -> Self
pub const fn from_driver( driver_action: DamageActionId, timing_effect: DamageEffectId, geometry_effect: DamageEffectId, damage_effect: DamageEffectId, ) -> Self
pub const fn pulses(self, count: u8, period_ms: u32) -> Self
pub const fn first_pulse_after(self, delay_ms: u32) -> Self
pub const fn multiplier(self, multiplier: f64) -> Self
pub const fn flags(self, flags: DamageFlags) -> Self
Trait Implementations§
Source§impl Clone for GroundEffectDefinition
impl Clone for GroundEffectDefinition
Source§fn clone(&self) -> GroundEffectDefinition
fn clone(&self) -> GroundEffectDefinition
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 GroundEffectDefinition
impl Debug for GroundEffectDefinition
impl Copy for GroundEffectDefinition
Auto Trait Implementations§
impl Freeze for GroundEffectDefinition
impl RefUnwindSafe for GroundEffectDefinition
impl Send for GroundEffectDefinition
impl Sync for GroundEffectDefinition
impl Unpin for GroundEffectDefinition
impl UnsafeUnpin for GroundEffectDefinition
impl UnwindSafe for GroundEffectDefinition
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,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more