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

Static Public Member Functions

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

Detailed Description

Member Function Documentation

◆ IsColorValid()

static bool LinkValidator< LinkTags::glyph >::IsColorValid ( GlyphLinkData const &  ,
HyperlinkColor  c 
)
inlinestatic
285 {
286 return c == CHAT_LINK_COLOR_GLYPH;
287 }
@ CHAT_LINK_COLOR_GLYPH
Definition: SharedDefines.h:3215

References CHAT_LINK_COLOR_GLYPH.

◆ IsTextValid()

static bool LinkValidator< LinkTags::glyph >::IsTextValid ( GlyphLinkData const &  data,
std::string_view  text 
)
inlinestatic
277 {
278 if (SpellInfo const* info = sSpellMgr->GetSpellInfo(data.Glyph->SpellId))
280
281 return false;
282 }
#define sSpellMgr
Definition: SpellMgr.h:825
static bool IsTextValid(typename T::value_type, std::string_view)
Definition: Hyperlinks.cpp:106
Definition: SpellInfo.h:314

References Acore::Hyperlinks::GlyphLinkData::Glyph, LinkValidator< T >::IsTextValid(), GlyphPropertiesEntry::SpellId, and sSpellMgr.