18#ifndef TRINITY_HYPERLINKS_H
19#define TRINITY_HYPERLINKS_H
196 EncounterSection = 2,
270 static bool StoreTo(std::string_view& val, std::string_view data)
276 static bool StoreTo(std::string& val, std::string_view data)
282 template <
typename T>
283 static std::enable_if_t<std::is_integral_v<T>,
bool>
StoreTo(T& val, std::string_view data)
307 #define make_base_tag(ltag, type) struct ltag : public base_tag { using value_type = type; static constexpr std::string_view tag() { return #ltag; } }
332 static constexpr std::string_view
tag() {
return "achievement"; }
339 static constexpr std::string_view
tag() {
return "api"; }
340 static bool StoreTo(
ApiLinkData& val, std::string_view text);
346 static constexpr std::string_view
tag() {
return "apower"; }
353 static constexpr std::string_view
tag() {
return "azessence"; }
360 static constexpr std::string_view
tag() {
return "battlepet"; }
367 static constexpr std::string_view
tag() {
return "battlePetAbil"; }
374 static constexpr std::string_view
tag() {
return "conduit"; }
381 static constexpr std::string_view
tag() {
return "currency"; }
388 static constexpr std::string_view
tag() {
return "dungeonScore"; }
395 static constexpr std::string_view
tag() {
return "enchant"; }
396 static bool StoreTo(
SpellInfo const*& val, std::string_view text);
402 static constexpr std::string_view
tag() {
return "garrfollower"; }
409 static constexpr std::string_view
tag() {
return "garrfollowerability"; }
416 static constexpr std::string_view
tag() {
return "garrmission"; }
423 static constexpr std::string_view
tag() {
return "instancelock"; }
430 static constexpr std::string_view
tag() {
return "item"; }
431 static bool StoreTo(
ItemLinkData& val, std::string_view text);
437 static constexpr std::string_view
tag() {
return "journal"; }
444 static constexpr std::string_view
tag() {
return "keystone"; }
451 static constexpr std::string_view
tag() {
return "mawpower"; }
452 static bool StoreTo(
MawPowerEntry const*& val, std::string_view text);
458 static constexpr std::string_view
tag() {
return "mount"; }
459 static bool StoreTo(
MountLinkData& val, std::string_view text);
465 static constexpr std::string_view
tag() {
return "pvptal"; }
466 static bool StoreTo(
PvpTalentEntry const*& val, std::string_view text);
472 static constexpr std::string_view
tag() {
return "quest"; }
473 static bool StoreTo(
QuestLinkData& val, std::string_view text);
479 static constexpr std::string_view
tag() {
return "spell"; }
480 static bool StoreTo(
SpellLinkData& val, std::string_view text);
486 static constexpr std::string_view
tag() {
return "talent"; }
487 static bool StoreTo(
TalentEntry const*& val, std::string_view text);
493 static constexpr std::string_view
tag() {
return "talentbuild"; }
500 static constexpr std::string_view
tag() {
return "trade"; }
507 static constexpr std::string_view
tag() {
return "transmogappearance"; }
514 static constexpr std::string_view
tag() {
return "transmogillusion"; }
521 static constexpr std::string_view
tag() {
return "transmogset"; }
528 static constexpr std::string_view
tag() {
return "worldmap"; }
541 if (((c >>= 8) & 0xff) ^
g)
543 if (((c >>= 8) & 0xff) ^
r)
554 HyperlinkInfo(std::string_view t,
uint32 c, std::string_view ta, std::string_view d, std::string_view te) :
557 explicit operator bool() {
return ok; }
561 std::string_view
const tag;
std::optional< T > Optional
Optional helper class to wrap optional values within.
static ObjectGuid FromString(std::string const &guidString)
static ObjectGuid const FromStringFailed
bool TC_GAME_API CheckAllLinks(std::string_view str)
HyperlinkInfo TC_GAME_API ParseSingleHyperlink(std::string_view str)
uint8 CurrentRankWithBonus
ArtifactPowerRankEntry const * ArtifactPower
AzeriteEssenceEntry const * Essence
BattlePetAbilityEntry const * Ability
BattlePetSpeciesEntry const * Species
CurrencyContainerEntry const * Container
CurrencyTypesEntry const * Currency
uint32 MapChallengeModeID
std::string_view PlayerName
std::vector< Dungeon > Dungeons
GarrFollowerEntry const * Follower
std::array< uint32, 4 > Abilities
GarrMissionEntry const * Mission
bool operator==(uint32 c) const
std::string_view const data
std::string_view const text
std::string_view const tag
HyperlinkInfo(std::string_view t, uint32 c, std::string_view ta, std::string_view d, std::string_view te)
std::string_view const tail
HyperlinkColor const color
uint32 CompletedEncountersMask
std::vector< Modifier > Modifiers
std::vector< int32 > GemItemBonusListIDs[3]
std::array< uint32, 3 > GemItemId
ItemNameDescriptionEntry const * Suffix
std::vector< int32 > ItemBonusListIDs
uint32 RenderSpecialization
LocalizedString const * ExpectedText
std::array< uint32, 4 > Affix
std::string_view Customizations
GlyphPropertiesEntry const * Glyph
ChrSpecializationEntry const * Spec
std::string_view ImportString
SkillLineEntry const * Skill