AzeorthCore 3.3.5a
OpenSource WoW Emulator
Loading...
Searching...
No Matches
Acore::Hyperlinks::LinkTags::spell Struct Reference

#include "Hyperlinks.h"

Public Types

using value_type = SpellInfo const *
 

Static Public Member Functions

static constexpr std::string_view tag ()
 
static bool StoreTo (SpellInfo const *&val, std::string_view data)
 

Detailed Description

Member Typedef Documentation

◆ value_type

Member Function Documentation

◆ StoreTo()

bool Acore::Hyperlinks::LinkTags::spell::StoreTo ( SpellInfo const *&  val,
std::string_view  data 
)
static
202{
204 uint32 spellId;
205
206 if (!(t.TryConsumeTo(spellId) && t.IsEmpty()))
207 return false;
208
209 return !!(val = sSpellMgr->GetSpellInfo(spellId));
210}
std::uint32_t uint32
Definition: Define.h:108
#define sSpellMgr
Definition: SpellMgr.h:803
Definition: HyperlinkTags.cpp:28

References HyperlinkDataTokenizer::IsEmpty(), sSpellMgr, and HyperlinkDataTokenizer::TryConsumeTo().

◆ tag()

static constexpr std::string_view Acore::Hyperlinks::LinkTags::spell::tag ( )
inlinestaticconstexpr
199{ return "spell"; }