pub struct GroundEffectSpec {
pub(crate) geometry_effect: DamageEffectRef,
pub(crate) damage_effect: DamageEffectRef,
pub(crate) profile_spell_id: u32,
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
A location-locked sequence of damage pulses.
Fields§
§geometry_effect: DamageEffectRef§damage_effect: DamageEffectRef§profile_spell_id: u32§pulse_count: u8§pulse_period_ms: u32§first_pulse_delay_ms: u32§multiplier: f64§flags: DamageFlagsImplementations§
Source§impl GroundEffectSpec
impl GroundEffectSpec
pub const fn new(geometry_effect: (u32, u8), damage_effect: (u32, u8)) -> 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 GroundEffectSpec
impl Clone for GroundEffectSpec
Source§fn clone(&self) -> GroundEffectSpec
fn clone(&self) -> GroundEffectSpec
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 GroundEffectSpec
impl Debug for GroundEffectSpec
impl Copy for GroundEffectSpec
Auto Trait Implementations§
impl Freeze for GroundEffectSpec
impl RefUnwindSafe for GroundEffectSpec
impl Send for GroundEffectSpec
impl Sync for GroundEffectSpec
impl Unpin for GroundEffectSpec
impl UnsafeUnpin for GroundEffectSpec
impl UnwindSafe for GroundEffectSpec
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