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
230 {
231 return c == CHAT_LINK_COLOR_SPELL;
232 }
@ 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
222 {
223 for (uint8 i = 0; i < TOTAL_LOCALES; ++i)
224 if (text == info->SpellName[i])
225 return true;
226 return false;
227 }
@ TOTAL_LOCALES
Definition: Common.h:76
std::uint8_t uint8
Definition: Define.h:109

References SpellInfo::SpellName, and TOTAL_LOCALES.