AzerothCore 3.3.5a
OpenSource WoW Emulator
Loading...
Searching...
No Matches
SpellInfoVisitor Struct Reference

Public Types

using value_type = SpellInfo const *
 

Public Member Functions

value_type operator() (Hyperlink< enchant > enchant) const
 
value_type operator() (Hyperlink< glyph > glyph) const
 
value_type operator() (Hyperlink< spell > spell) const
 
value_type operator() (Hyperlink< talent > talent) const
 
value_type operator() (Hyperlink< trade > trade) const
 
value_type operator() (uint32 spellId) const
 

Detailed Description

Member Typedef Documentation

◆ value_type

Member Function Documentation

◆ operator()() [1/6]

value_type SpellInfoVisitor::operator() ( Hyperlink< enchant >  enchant) const
inline
93{ return enchant; };

Referenced by operator()().

◆ operator()() [2/6]

value_type SpellInfoVisitor::operator() ( Hyperlink< glyph >  glyph) const
inline
94{ return operator()(glyph->Glyph->SpellId); };
value_type operator()(Hyperlink< enchant > enchant) const
Definition: ChatCommandArgs.cpp:93

References operator()().

Referenced by operator()().

◆ operator()() [3/6]

value_type SpellInfoVisitor::operator() ( Hyperlink< spell >  spell) const
inline
95{ return *spell; }

◆ operator()() [4/6]

value_type SpellInfoVisitor::operator() ( Hyperlink< talent >  talent) const
inline
97 {
98 return operator()(talent->Talent->RankID[talent->Rank - 1]);
99 };

References operator()().

◆ operator()() [5/6]

value_type SpellInfoVisitor::operator() ( Hyperlink< trade >  trade) const
inline
100{ return trade->Spell; };

◆ operator()() [6/6]

value_type SpellInfoVisitor::operator() ( uint32  spellId) const
inline
102{ return sSpellMgr->GetSpellInfo(spellId); }
#define sSpellMgr
Definition: SpellMgr.h:825

References sSpellMgr.