pub struct HandlerParams<'a> {Show 18 fields
pub game_data: ResolvedGameData,
pub rotation: &'a Rotation,
pub stats: &'a CombatStats,
pub talent_selections: &'a [TalentSelection],
pub encounter: &'a ResolvedEncounter,
pub fight_duration_secs: f64,
pub equipped_items: &'a [EquippedItem],
pub set_bonus_auras: &'a [u32],
pub bloodlust: bool,
pub pre_pot_tempered: bool,
pub flask: bool,
pub augment_rune: bool,
pub race: RaceId,
pub weapon_enchant_procs: &'a [WeaponEnchantProc],
pub bugs: BugSettings,
pub cast_latency: CastLatency,
pub raid_events: &'a [RaidEventConfig],
pub external_buffs: &'a [ExternalBuffConfig],
}Expand description
Named parameters for building a spec handler.
Fields§
§game_data: ResolvedGameData§rotation: &'a Rotation§stats: &'a CombatStats§talent_selections: &'a [TalentSelection]§encounter: &'a ResolvedEncounter§fight_duration_secs: f64§equipped_items: &'a [EquippedItem]§set_bonus_auras: &'a [u32]§bloodlust: bool§pre_pot_tempered: bool§flask: bool§augment_rune: bool§race: RaceId§weapon_enchant_procs: &'a [WeaponEnchantProc]§bugs: BugSettings§cast_latency: CastLatency§raid_events: &'a [RaidEventConfig]§external_buffs: &'a [ExternalBuffConfig]Implementations§
Source§impl<'a> HandlerParams<'a>
impl<'a> HandlerParams<'a>
Sourcepub fn validate(self) -> Result<Self, EngineError>
pub fn validate(self) -> Result<Self, EngineError>
Validates handler parameters after struct-literal construction.
§Errors
Returns an error when encounter and game-data armor inputs disagree.
Sourcepub fn effect_base_points(&self, effect: (u32, u8)) -> f64
pub fn effect_base_points(&self, effect: (u32, u8)) -> f64
Reads base points for a named manifest effect binding.
Sourcepub fn require_effect_base_points(
&self,
effect: (u32, u8),
) -> Result<f64, EngineError>
pub fn require_effect_base_points( &self, effect: (u32, u8), ) -> Result<f64, EngineError>
Requires base points for a named manifest effect binding.
§Errors
Returns an error when populated game data lacks the requested effect.
Sourcepub fn talent_selected(&self, spell_id: u32) -> bool
pub fn talent_selected(&self, spell_id: u32) -> bool
Whether a talent is selected or granted as a baseline specialization spell.
Sourcepub fn talent_ranked_or_specialization(&self, spell_id: u32) -> bool
pub fn talent_ranked_or_specialization(&self, spell_id: u32) -> bool
Whether a ranked selection is active or the spell is granted by the specialization.
Sourcepub fn talent_picked(&self, spell_id: u32) -> bool
pub fn talent_picked(&self, spell_id: u32) -> bool
Whether a talent appears in the decoded talent selections, by node spell or override spell.
Sourcepub fn talent_picked_any(&self, spell_ids: &[u32]) -> bool
pub fn talent_picked_any(&self, spell_ids: &[u32]) -> bool
Whether any one of a set of equivalent talent spell IDs is selected.
Sourcepub fn talent_ranks(&self, spell_id: u32) -> u8
pub fn talent_ranks(&self, spell_id: u32) -> u8
Number of selected ranks for a talent, or zero when it is not selected.
Sourcepub fn with_bugs(self, bugs: BugSettings) -> Self
pub fn with_bugs(self, bugs: BugSettings) -> Self
Replace the run’s live-game bug toggles.