AzerothCore 3.3.5a
OpenSource WoW Emulator
Loading...
Searching...
No Matches
LinkValidator< LinkTags::talent > Struct Reference

Static Public Member Functions

static bool IsTextValid (TalentLinkData const &data, std::string_view text)
 
static bool IsColorValid (TalentLinkData const &, HyperlinkColor c)
 

Detailed Description

Member Function Documentation

◆ IsColorValid()

static bool LinkValidator< LinkTags::talent >::IsColorValid ( TalentLinkData const &  ,
HyperlinkColor  c 
)
inlinestatic
307 {
308 return c == CHAT_LINK_COLOR_TALENT;
309 }
@ CHAT_LINK_COLOR_TALENT
Definition: SharedDefines.h:3211

References CHAT_LINK_COLOR_TALENT.

◆ IsTextValid()

static bool LinkValidator< LinkTags::talent >::IsTextValid ( TalentLinkData const &  data,
std::string_view  text 
)
inlinestatic
295 {
296 SpellInfo const* info = data.Spell;
297 if (!info)
298 info = sSpellMgr->GetSpellInfo(data.Talent->RankID[0]);
299
300 if (!info)
301 return false;
302
304 }
#define sSpellMgr
Definition: SpellMgr.h:825
static bool IsTextValid(typename T::value_type, std::string_view)
Definition: Hyperlinks.cpp:107
Definition: SpellInfo.h:316

References LinkValidator< T >::IsTextValid(), TalentEntry::RankID, Acore::Hyperlinks::TalentLinkData::Spell, sSpellMgr, and Acore::Hyperlinks::TalentLinkData::Talent.