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

#include "Hyperlinks.h"

Public Types

using value_type = QuestLinkData const &
 

Static Public Member Functions

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

Detailed Description

Member Typedef Documentation

◆ value_type

Member Function Documentation

◆ StoreTo()

bool Acore::Hyperlinks::LinkTags::quest::StoreTo ( QuestLinkData val,
std::string_view  data 
)
static
191{
193 uint32 questId;
194
195 if (!t.TryConsumeTo(questId))
196 return false;
197
198 return (val.Quest = sObjectMgr->GetQuestTemplate(questId)) && t.TryConsumeTo(val.QuestLevel) && (val.QuestLevel >= -1) && t.IsEmpty();
199}
std::uint32_t uint32
Definition: Define.h:107
#define sObjectMgr
Definition: ObjectMgr.h:1635
Definition: HyperlinkTags.cpp:28

References HyperlinkDataTokenizer::IsEmpty(), Acore::Hyperlinks::QuestLinkData::Quest, Acore::Hyperlinks::QuestLinkData::QuestLevel, sObjectMgr, and HyperlinkDataTokenizer::TryConsumeTo().

◆ tag()

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