AzerothCore 3.3.5a
OpenSource WoW Emulator
Loading...
Searching...
No Matches
Acore::Hyperlinks::LinkTags::enchant 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::enchant::StoreTo ( SpellInfo const *&  val,
std::string_view  data 
)
static
94{
96 uint32 spellId;
97
98 if (!(t.TryConsumeTo(spellId) && t.IsEmpty()))
99 return false;
100
101 return (val = sSpellMgr->GetSpellInfo(spellId)) && val->HasAttribute(SPELL_ATTR0_IS_TRADESKILL);
102}
std::uint32_t uint32
Definition: Define.h:108
#define sSpellMgr
Definition: SpellMgr.h:825
@ SPELL_ATTR0_IS_TRADESKILL
Definition: SharedDefines.h:387
Definition: HyperlinkTags.cpp:28

References SpellInfo::HasAttribute(), HyperlinkDataTokenizer::IsEmpty(), SPELL_ATTR0_IS_TRADESKILL, sSpellMgr, and HyperlinkDataTokenizer::TryConsumeTo().

◆ tag()

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