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

#include "Hyperlinks.h"

Public Types

using value_type = GlyphLinkData const &
 

Static Public Member Functions

static constexpr std::string_view tag ()
 
static bool StoreTo (GlyphLinkData &val, std::string_view data)
 

Detailed Description

Member Typedef Documentation

◆ value_type

Member Function Documentation

◆ StoreTo()

bool Acore::Hyperlinks::LinkTags::glyph::StoreTo ( GlyphLinkData val,
std::string_view  data 
)
static
105{
107 uint32 slot, prop;
108
109 if (!(t.TryConsumeTo(slot) && t.TryConsumeTo(prop) && t.IsEmpty()))
110 return false;
111
112 if (!(val.Slot = sGlyphSlotStore.LookupEntry(slot)))
113 return false;
114
115 if (!(val.Glyph = sGlyphPropertiesStore.LookupEntry(prop)))
116 return false;
117
118 return true;
119}
std::uint32_t uint32
Definition: Define.h:107
DBCStorage< GlyphSlotEntry > sGlyphSlotStore(GlyphSlotfmt)
DBCStorage< GlyphPropertiesEntry > sGlyphPropertiesStore(GlyphPropertiesfmt)
Definition: HyperlinkTags.cpp:28

References Acore::Hyperlinks::GlyphLinkData::Glyph, HyperlinkDataTokenizer::IsEmpty(), sGlyphPropertiesStore, sGlyphSlotStore, Acore::Hyperlinks::GlyphLinkData::Slot, and HyperlinkDataTokenizer::TryConsumeTo().

◆ tag()

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