pub struct SpellData {Show 23 fields
pub spell_id: u32,
pub name_idx: u16,
pub cast_time_ms: u32,
pub(crate) empower_cast_time_offset: u32,
pub empower_rank_count: u8,
pub max_empower_aura_id: u32,
pub gcd_haste_type: GcdHasteType,
pub gcd_ms: u32,
pub(crate) travel: SpellTravelData,
pub behavior: SpellBehavior,
pub cost: SpellCost,
pub damage: RuntimeDamageDef,
pub damage_policy: SpellDamagePolicy,
pub damage_attribute_flags: DamageFlags,
pub damage_effect: DamageEffectRef,
pub base_points: f64,
pub applies_aura: Option<LocalAuraIdx>,
pub followup_effects: SpellEffectRange,
pub cooldown: SpellCooldown,
pub targeting: SpellTargeting,
pub channel: SpellChannel,
pub requirements: SpellRequirements,
pub overrides: SpellOverride,
}Expand description
Static definition of a castable spell.
Fields§
§spell_id: u32§name_idx: u16§cast_time_ms: u32§empower_cast_time_offset: u32§empower_rank_count: u8§max_empower_aura_id: u32§gcd_haste_type: GcdHasteType§gcd_ms: u32§travel: SpellTravelData§behavior: SpellBehavior§cost: SpellCost§damage: RuntimeDamageDef§damage_policy: SpellDamagePolicy§damage_attribute_flags: DamageFlags§damage_effect: DamageEffectRef§base_points: f64§applies_aura: Option<LocalAuraIdx>§followup_effects: SpellEffectRange§cooldown: SpellCooldown§targeting: SpellTargeting§channel: SpellChannel§requirements: SpellRequirements§overrides: SpellOverrideImplementations§
Source§impl SpellData
impl SpellData
Sourcepub fn is_charged(&self) -> bool
pub fn is_charged(&self) -> bool
Whether this spell uses a charged cooldown (more than one charge, or a live aura can raise its category max charges at runtime).
Sourcepub fn base_gcd_ms(&self) -> u32
pub fn base_gcd_ms(&self) -> u32
Effective base GCD in milliseconds, falling back to DEFAULT_GCD_MS when zero.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for SpellData
impl RefUnwindSafe for SpellData
impl Send for SpellData
impl Sync for SpellData
impl Unpin for SpellData
impl UnsafeUnpin for SpellData
impl UnwindSafe for SpellData
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