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
306 {
307 return c == CHAT_LINK_COLOR_TALENT;
308 }
@ 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
294 {
295 SpellInfo const* info = data.Spell;
296 if (!info)
297 info = sSpellMgr->GetSpellInfo(data.Talent->RankID[0]);
298
299 if (!info)
300 return false;
301
303 }
#define sSpellMgr
Definition: SpellMgr.h:825
static bool IsTextValid(typename T::value_type, std::string_view)
Definition: Hyperlinks.cpp:106
Definition: SpellInfo.h:316

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