Skip to main content

SpellDataFlat

Struct SpellDataFlat 

Source
pub struct SpellDataFlat {
Show 99 fields pub id: i32, pub name: CompactString, pub description: String, pub aura_description: String, pub description_variables: String, pub file_name: CompactString, pub is_passive: bool, pub proc_chance: i32, pub proc_type_mask: i64, pub proc_category_recovery_ms: i32, pub knowledge_source: KnowledgeSource, pub cast_time: i32, pub recovery_time: i32, pub category_recovery_time: i32, pub category_id: i32, pub charge_category_id: i32, pub start_recovery_category: i32, pub start_recovery_time: i32, pub mana_cost: i32, pub power_costs: Vec<PowerCostEntry>, pub charge_recovery_time: i32, pub max_charges: i32, pub range_max_0: f32, pub range_max_1: f32, pub range_min_0: f32, pub range_min_1: f32, pub cone_degrees: f32, pub target_flags: i32, pub max_targets: i32, pub radius_max: f32, pub radius_min: f32, pub defense_type: i32, pub school_mask: i32, pub bonus_coefficient_from_ap: f64, pub effect_bonus_coefficient: f64, pub min_scaling_level: i32, pub max_scaling_level: i32, pub interrupt_aura_0: i32, pub interrupt_aura_1: i32, pub interrupt_channel_0: i32, pub interrupt_channel_1: i32, pub interrupt_flags: i32, pub duration: i32, pub max_duration: i32, pub can_empower: bool, pub empower_stages: Vec<EmpowerStage>, pub dispel_type: i32, pub mechanic: i32, pub facing_caster_flags: i32, pub speed: f32, pub launch_delay: f32, pub spell_class_mask_1: i32, pub spell_class_mask_2: i32, pub spell_class_mask_3: i32, pub spell_class_mask_4: i32, pub spell_class_set: i32, pub base_level: i32, pub max_level: i32, pub max_passive_aura_level: i32, pub spell_level: i32, pub caster_aura_spell: i32, pub caster_aura_state: i32, pub exclude_caster_aura_spell: i32, pub exclude_caster_aura_state: i32, pub exclude_target_aura_spell: i32, pub exclude_target_aura_state: i32, pub target_aura_spell: i32, pub target_aura_state: i32, pub replacement_spell_id: i32, pub shapeshift_exclude_0: i32, pub shapeshift_exclude_1: i32, pub shapeshift_mask_0: i32, pub shapeshift_mask_1: i32, pub stance_bar_order: i32, pub required_totem_category_0: i32, pub required_totem_category_1: i32, pub totem_0: i32, pub totem_1: i32, pub attributes: Vec<i32>, pub equipped_item_requirement: Option<EquippedItemRequirement>, pub effect_trigger_spell: Vec<i32>, pub implicit_target: Vec<i32>, pub learn_spells: Vec<LearnSpell>, pub effects: Vec<SpellEffect>, pub proc_charges: i32, pub max_stacks: i32, pub periodic_type: Option<PeriodicType>, pub tick_period_ms: i32, pub refresh_behavior: RefreshBehavior, pub duration_hasted: bool, pub hasted_ticks: bool, pub pandemic_refresh: bool, pub rolling_periodic: bool, pub tick_may_crit: bool, pub tick_on_application: bool, pub rppm_base_rate: f32, pub rppm_flags: i32, pub rppm_mods: Vec<RppmMod>, pub labels: Vec<SpellLabel>,
}

Fields§

§id: i32§name: CompactString§description: String§aura_description: String§description_variables: String§file_name: CompactString§is_passive: bool§proc_chance: i32

SpellAuraOptions.ProcChance in percent points; 0 when the spell has no proc data.

§proc_type_mask: i64

Combined SpellAuraOptions.ProcTypeMask_0/1 event mask.

§proc_category_recovery_ms: i32

SpellAuraOptions.ProcCategoryRecovery internal cooldown in milliseconds.

§knowledge_source: KnowledgeSource§cast_time: i32§recovery_time: i32§category_recovery_time: i32

Some CDs record their real cooldown here with recovery_time at 0, so engines must use max(recovery_time, category_recovery_time).

§category_id: i32

DBC SpellCategories.Category; category-cooldown modifiers target this identity.

§charge_category_id: i32

DBC SpellCategories.ChargeCategory; category-targeted cooldown passives use this instead of class masks.

§start_recovery_category: i32

DBC SpellCategories.StartRecoveryCategory; recovery locks only conflict within this category.

§start_recovery_time: i32§mana_cost: i32§power_costs: Vec<PowerCostEntry>§charge_recovery_time: i32§max_charges: i32§range_max_0: f32§range_max_1: f32§range_min_0: f32§range_min_1: f32§cone_degrees: f32§target_flags: i32

Raw SpellTargetRestrictions.Targets cast-target bitmask.

§max_targets: i32

DBC SpellTargetRestrictions.MaxTargets; zero means no spell-level cap.

§radius_max: f32§radius_min: f32§defense_type: i32§school_mask: i32§bonus_coefficient_from_ap: f64§effect_bonus_coefficient: f64§min_scaling_level: i32§max_scaling_level: i32§interrupt_aura_0: i32§interrupt_aura_1: i32§interrupt_channel_0: i32§interrupt_channel_1: i32§interrupt_flags: i32§duration: i32§max_duration: i32§can_empower: bool§empower_stages: Vec<EmpowerStage>§dispel_type: i32§mechanic: i32

Raw SpellCategories.Mechanic; zero means the spell carries no mechanic tag.

§facing_caster_flags: i32§speed: f32§launch_delay: f32

SpellMisc.LaunchDelay, in seconds.

§spell_class_mask_1: i32§spell_class_mask_2: i32§spell_class_mask_3: i32§spell_class_mask_4: i32§spell_class_set: i32§base_level: i32§max_level: i32§max_passive_aura_level: i32§spell_level: i32§caster_aura_spell: i32§caster_aura_state: i32§exclude_caster_aura_spell: i32§exclude_caster_aura_state: i32§exclude_target_aura_spell: i32§exclude_target_aura_state: i32§target_aura_spell: i32§target_aura_state: i32§replacement_spell_id: i32§shapeshift_exclude_0: i32§shapeshift_exclude_1: i32§shapeshift_mask_0: i32§shapeshift_mask_1: i32§stance_bar_order: i32§required_totem_category_0: i32§required_totem_category_1: i32§totem_0: i32§totem_1: i32§attributes: Vec<i32>§equipped_item_requirement: Option<EquippedItemRequirement>§effect_trigger_spell: Vec<i32>§implicit_target: Vec<i32>§learn_spells: Vec<LearnSpell>§effects: Vec<SpellEffect>§proc_charges: i32

SpellAuraOptions.ProcCharges; positive values are stacks applied per cast.

§max_stacks: i32§periodic_type: Option<PeriodicType>§tick_period_ms: i32§refresh_behavior: RefreshBehavior§duration_hasted: bool§hasted_ticks: bool§pandemic_refresh: bool§rolling_periodic: bool§tick_may_crit: bool§tick_on_application: bool§rppm_base_rate: f32§rppm_flags: i32§rppm_mods: Vec<RppmMod>§labels: Vec<SpellLabel>

Trait Implementations§

Source§

impl Clone for SpellDataFlat

Source§

fn clone(&self) -> SpellDataFlat

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl CopyInsert for SpellDataFlat

Source§

const COLUMNS: &'static [&'static str]

Column names in bind order (includes the injected patch_version).
Source§

fn copy_row(&self, w: &mut CopyRow, patch: &str)

Push every column value onto w in COLUMNS order. patch fills the injected patch_version column.
Source§

impl Debug for SpellDataFlat

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for SpellDataFlat

Source§

fn default() -> SpellDataFlat

Returns the “default value” for a type. Read more
Source§

impl<'de> Deserialize<'de> for SpellDataFlat

Source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl JsonSchema for SpellDataFlat

Source§

fn schema_name() -> Cow<'static, str>

The name of the generated JSON Schema. Read more
Source§

fn schema_id() -> Cow<'static, str>

Returns a string that uniquely identifies the schema produced by this type. Read more
Source§

fn json_schema(generator: &mut SchemaGenerator) -> Schema

Generates a JSON Schema for this type. Read more
Source§

fn inline_schema() -> bool

Whether JSON Schemas generated for this type should be included directly in parent schemas, rather than being re-used where possible using the $ref keyword. Read more
Source§

impl Serialize for SpellDataFlat

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> DynClone for T
where T: Clone,

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<S, T> Upcast<T> for S
where T: UpcastFrom<S> + ?Sized, S: ?Sized,

Source§

fn upcast(&self) -> &T
where Self: ErasableGeneric, T: ErasableGeneric<Repr = Self::Repr>,

Perform a zero-cost type-safe upcast to a wider ref type within the Wasm bindgen generics type system. Read more
Source§

fn upcast_into(self) -> T
where Self: Sized + ErasableGeneric, T: ErasableGeneric<Repr = Self::Repr>,

Perform a zero-cost type-safe upcast to a wider type within the Wasm bindgen generics type system. Read more
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,