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

Static Public Member Functions

static bool IsTextValid (SpellInfo const *info, std::string_view text)
 
static bool IsColorValid (SpellInfo const *, HyperlinkColor c)
 

Detailed Description

Member Function Documentation

◆ IsColorValid()

static bool LinkValidator< LinkTags::spell >::IsColorValid ( SpellInfo const *  ,
HyperlinkColor  c 
)
inlinestatic
229 {
230 return c == CHAT_LINK_COLOR_SPELL;
231 }
@ CHAT_LINK_COLOR_SPELL
Definition: SharedDefines.h:3212

References CHAT_LINK_COLOR_SPELL.

◆ IsTextValid()

static bool LinkValidator< LinkTags::spell >::IsTextValid ( SpellInfo const *  info,
std::string_view  text 
)
inlinestatic
221 {
222 for (uint8 i = 0; i < TOTAL_LOCALES; ++i)
223 if (text == info->SpellName[i])
224 return true;
225 return false;
226 }
@ TOTAL_LOCALES
Definition: Common.h:76
std::uint8_t uint8
Definition: Define.h:109

References SpellInfo::SpellName, and TOTAL_LOCALES.