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
286 {
287 return c == CHAT_LINK_COLOR_GLYPH;
288 }
@ 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
278 {
279 if (SpellInfo const* info = sSpellMgr->GetSpellInfo(data.Glyph->SpellId))
281
282 return false;
283 }
#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 Acore::Hyperlinks::GlyphLinkData::Glyph, LinkValidator< T >::IsTextValid(), GlyphPropertiesEntry::SpellId, and sSpellMgr.