pub(crate) struct DamageEffectPlan {Show 19 fields
pub(crate) action: LocalDamageActionIdx,
pub(crate) effect_index: u8,
pub(crate) aoe: AoeProperties,
pub(crate) target: Option<FinalizedTargetExecution>,
pub(crate) mechanic_mask: MechanicMask,
pub(crate) base_points: f64,
pub(crate) ap_coefficient: f64,
pub(crate) sp_coefficient: f64,
pub(crate) amplitude: f64,
pub(crate) period: f64,
pub(crate) power_coefficient_mastery_add: f64,
pub(crate) aura_subtype: i32,
pub(crate) modifier_property: i32,
pub(crate) attributes: i32,
pub(crate) geometry: EffectRef,
geometry_local: LocalDamageEffectIdx,
pub(crate) resolved_damage: Option<RuntimeDamageDef>,
pub(crate) resolved_damage_base_points: f64,
affected_actions: Box<[u64]>,
}Expand description
Effect-local coordinates and precompiled relationships used by damage setup.
Fields§
§action: LocalDamageActionIdx§effect_index: u8§aoe: AoeProperties§target: Option<FinalizedTargetExecution>§mechanic_mask: MechanicMask§base_points: f64§ap_coefficient: f64§sp_coefficient: f64§amplitude: f64§period: f64§power_coefficient_mastery_add: f64§aura_subtype: i32§modifier_property: i32§attributes: i32§geometry: EffectRef§geometry_local: LocalDamageEffectIdx§resolved_damage: Option<RuntimeDamageDef>§resolved_damage_base_points: f64§affected_actions: Box<[u64]>Implementations§
Source§impl DamageEffectPlan
impl DamageEffectPlan
pub(crate) fn affects_action(&self, action: LocalDamageActionIdx) -> bool
Trait Implementations§
Source§impl Clone for DamageEffectPlan
impl Clone for DamageEffectPlan
Source§fn clone(&self) -> DamageEffectPlan
fn clone(&self) -> DamageEffectPlan
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 moreAuto Trait Implementations§
impl Freeze for DamageEffectPlan
impl RefUnwindSafe for DamageEffectPlan
impl Send for DamageEffectPlan
impl Sync for DamageEffectPlan
impl Unpin for DamageEffectPlan
impl UnsafeUnpin for DamageEffectPlan
impl UnwindSafe for DamageEffectPlan
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