pub struct ResolvedGameDataBuilder {
inner: ResolvedGameDataInner,
}Expand description
Builder for constructing ResolvedGameData incrementally.
Fields§
§inner: ResolvedGameDataInnerImplementations§
Source§impl ResolvedGameDataBuilder
impl ResolvedGameDataBuilder
pub(crate) fn new() -> Self
pub fn insert_implicit_targets( &mut self, effect: EffectRef, target_a: i32, target_b: i32, )
Sourcepub fn insert_effect_class_mask(
&mut self,
spell_id: SpellIdx,
effect_index: u8,
mask: [i32; 4],
)
pub fn insert_effect_class_mask( &mut self, spell_id: SpellIdx, effect_index: u8, mask: [i32; 4], )
EffectSpellClassMask for an effect (1-based effect_index), used by affect-list matching.
pub fn insert_school_mask(&mut self, spell_id: SpellIdx, school_mask: i32)
pub fn insert_spell_props(&mut self, spell_id: SpellIdx, props: SpellProps)
Sourcepub fn insert_server_proc_attributes(
&mut self,
spell_id: SpellIdx,
attributes: u32,
) -> bool
pub fn insert_server_proc_attributes( &mut self, spell_id: SpellIdx, attributes: u32, ) -> bool
Overlay server-side SpellProcEntry.AttributesMask after client DBC resolution.
pub fn insert_aura_props(&mut self, spell_id: SpellIdx, props: AuraProps)
pub fn insert_power_type(&mut self, type_id: i32, props: PowerTypeProps)
Sourcepub fn power_type_mut(&mut self, type_id: i32) -> Option<&mut PowerTypeProps>
pub fn power_type_mut(&mut self, type_id: i32) -> Option<&mut PowerTypeProps>
Mutable access to an inserted power type, for build-time passives (e.g. talent max/regen mods).
pub fn insert_spell_override( &mut self, overridden_id: SpellIdx, replacement_id: SpellIdx, )
pub fn insert_spell_learn(&mut self, teacher_id: SpellIdx, learned_id: SpellIdx)
Sourcepub fn insert_spell_labels(&mut self, spell_id: SpellIdx, labels: Vec<i32>)
pub fn insert_spell_labels(&mut self, spell_id: SpellIdx, labels: Vec<i32>)
Store a spell’s SpellLabel ids for affect-list gating (see ResolvedGameData::has_label).
Sourcepub fn insert_spell_class_flags(
&mut self,
spell_id: SpellIdx,
class_set: i32,
class_mask: [i32; 4],
)
pub fn insert_spell_class_flags( &mut self, spell_id: SpellIdx, class_set: i32, class_mask: [i32; 4], )
Store a spell’s class family (SpellClassSet + SpellClassMask) for affect-list matching.
pub fn set_armor_constant(&mut self, value: f64)
pub fn set_creature_armor(&mut self, value: f64)
pub fn set_target_armor_mult(&mut self, value: f64)
pub fn set_armor_constant_mod(&mut self, value: f64)
pub fn set_main_hand(&mut self, value: WeaponStats)
pub fn set_off_hand(&mut self, value: Option<WeaponStats>)
pub fn set_curves(&mut self, value: ResolvedCurves)
pub fn set_game_tables(&mut self, value: ResolvedGameTables)
pub fn set_level(&mut self, value: u32)
pub fn set_auto_attack_damage_mult(&mut self, value: f64)
pub fn set_pet_damage_mult(&mut self, value: f64)
pub fn set_guardian_damage_mult(&mut self, value: f64)
pub fn set_specialization_spells(&mut self, value: Vec<SpellIdx>)
pub fn set_folded_passive_spells(&mut self, value: Vec<SpellIdx>)
pub fn set_class_target_debuffs(&mut self, value: Vec<SpellIdx>)
pub fn set_consumable_spells(&mut self, value: ConsumableSpells)
pub fn insert_direct_damage_mult(&mut self, spell_id: SpellIdx, mult: f64)
pub fn insert_direct_damage_flat( &mut self, spell_id: SpellIdx, amount: f64, mastery_coefficient: f64, )
pub fn insert_periodic_damage_mult(&mut self, spell_id: SpellIdx, mult: f64)
Sourcepub fn insert_crit_chance_bonus(&mut self, spell_id: SpellIdx, bonus: f64)
pub fn insert_crit_chance_bonus(&mut self, spell_id: SpellIdx, bonus: f64)
Static flat crit-chance bonus (percent points) for a spell from passive spec/class auras.
pub fn insert_crit_chance_mult(&mut self, spell_id: SpellIdx, mult: f64)
Sourcepub fn insert_pet_stat_inheritance_mult(
&mut self,
npc_id: u32,
attack_power_mult: f64,
spell_power_mult: f64,
)
pub fn insert_pet_stat_inheritance_mult( &mut self, npc_id: u32, attack_power_mult: f64, spell_power_mult: f64, )
Register NPC-filtered aura-382 attack/spell-power inheritance multipliers.
Sourcepub fn insert_crit_damage_bonus(&mut self, spell_id: SpellIdx, bonus: f64)
pub fn insert_crit_damage_bonus(&mut self, spell_id: SpellIdx, bonus: f64)
Static crit-damage bonus (percent points) for a spell from passive spec/class auras.
Sourcepub fn push_crit_damage_per_crit_chance(
&mut self,
school_mask: i32,
percent: f64,
)
pub fn push_crit_damage_per_crit_chance( &mut self, school_mask: i32, percent: f64, )
Player-wide crit damage scaled by the caster’s own crit chance, filtered by a DBC school mask.
Sourcepub fn insert_crit_bonus_per_crit_chance(
&mut self,
spell_id: SpellIdx,
percent: f64,
)
pub fn insert_crit_bonus_per_crit_chance( &mut self, spell_id: SpellIdx, percent: f64, )
One spell’s crit bonus scaled by the caster’s own crit chance (percent points of crit chance).