Skip to main content

ResolvedGameDataSemanticExt

Trait ResolvedGameDataSemanticExt 

Source
pub trait ResolvedGameDataSemanticExt {
    // Required methods
    fn override_action_spell(
        &self,
        aura_spell_id: SpellIdx,
        effect_index: u8,
    ) -> Option<SpellIdx>;
    fn effect_affects_spell(
        &self,
        source: SpellIdx,
        effect_index: u8,
        target: SpellIdx,
    ) -> bool;
    fn spell_mechanic_mask(&self, spell: SpellIdx) -> MechanicMask;
    fn effect_mechanic_mask(
        &self,
        spell: SpellIdx,
        effect_index: u8,
    ) -> MechanicMask;
    fn all_effect_mechanic_mask(&self, spell: SpellIdx) -> MechanicMask;
    fn granted_aura_state(&self, spell: SpellIdx) -> Option<AuraState>;
}

Required Methods§

Source

fn override_action_spell( &self, aura_spell_id: SpellIdx, effect_index: u8, ) -> Option<SpellIdx>

Replacement action encoded by Override Action Spell.

Source

fn effect_affects_spell( &self, source: SpellIdx, effect_index: u8, target: SpellIdx, ) -> bool

Whether a modifier effect’s typed label/global/class-family policy includes target.

Source

fn spell_mechanic_mask(&self, spell: SpellIdx) -> MechanicMask

Spell-level mechanic mask from SpellCategories.Mechanic.

Source

fn effect_mechanic_mask( &self, spell: SpellIdx, effect_index: u8, ) -> MechanicMask

Aggregate spell- and effect-level mechanic mask for one executed effect.

Source

fn all_effect_mechanic_mask(&self, spell: SpellIdx) -> MechanicMask

Aggregate mechanic mask across the spell and all populated effects.

Source

fn granted_aura_state(&self, spell: SpellIdx) -> Option<AuraState>

Aura state generically granted by this DBC spell, when derivable without a spell catalog.

Implementations on Foreign Types§

Source§

impl ResolvedGameDataSemanticExt for ResolvedGameData

Source§

fn override_action_spell( &self, aura_spell_id: SpellIdx, effect_index: u8, ) -> Option<SpellIdx>

Source§

fn effect_affects_spell( &self, source: SpellIdx, effect_index: u8, target: SpellIdx, ) -> bool

Source§

fn spell_mechanic_mask(&self, spell: SpellIdx) -> MechanicMask

Source§

fn effect_mechanic_mask( &self, spell: SpellIdx, effect_index: u8, ) -> MechanicMask

Source§

fn all_effect_mechanic_mask(&self, spell: SpellIdx) -> MechanicMask

Source§

fn granted_aura_state(&self, spell: SpellIdx) -> Option<AuraState>

Implementors§