18#ifndef TRINITY_HYPERLINKS_H
19#define TRINITY_HYPERLINKS_H
272 static bool StoreTo(std::string_view& val, std::string_view data)
278 static bool StoreTo(std::string& val, std::string_view data)
284 template <
typename T>
285 static std::enable_if_t<std::is_integral_v<T>,
bool>
StoreTo(T& val, std::string_view data)
309 #define make_base_tag(ltag, type) struct ltag : public base_tag { using value_type = type; static constexpr std::string_view tag() { return #ltag; } }
334 static constexpr std::string_view
tag() {
return "achievement"; }
341 static constexpr std::string_view
tag() {
return "api"; }
342 static bool StoreTo(
ApiLinkData& val, std::string_view text);
348 static constexpr std::string_view
tag() {
return "apower"; }
355 static constexpr std::string_view
tag() {
return "azessence"; }
362 static constexpr std::string_view
tag() {
return "battlepet"; }
369 static constexpr std::string_view
tag() {
return "battlePetAbil"; }
376 static constexpr std::string_view
tag() {
return "conduit"; }
383 static constexpr std::string_view
tag() {
return "curio"; }
384 static bool StoreTo(
SpellInfo const*& val, std::string_view text);
390 static constexpr std::string_view
tag() {
return "currency"; }
397 static constexpr std::string_view
tag() {
return "dungeonScore"; }
404 static constexpr std::string_view
tag() {
return "enchant"; }
405 static bool StoreTo(
SpellInfo const*& val, std::string_view text);
411 static constexpr std::string_view
tag() {
return "garrfollower"; }
418 static constexpr std::string_view
tag() {
return "garrfollowerability"; }
425 static constexpr std::string_view
tag() {
return "garrmission"; }
432 static constexpr std::string_view
tag() {
return "instancelock"; }
439 static constexpr std::string_view
tag() {
return "item"; }
440 static bool StoreTo(
ItemLinkData& val, std::string_view text);
446 static constexpr std::string_view
tag() {
return "journal"; }
453 static constexpr std::string_view
tag() {
return "keystone"; }
460 static constexpr std::string_view
tag() {
return "mawpower"; }
461 static bool StoreTo(
MawPowerEntry const*& val, std::string_view text);
467 static constexpr std::string_view
tag() {
return "mount"; }
468 static bool StoreTo(
MountLinkData& val, std::string_view text);
474 static constexpr std::string_view
tag() {
return "perksactivity"; }
481 static constexpr std::string_view
tag() {
return "pvptal"; }
482 static bool StoreTo(
PvpTalentEntry const*& val, std::string_view text);
488 static constexpr std::string_view
tag() {
return "quest"; }
489 static bool StoreTo(
QuestLinkData& val, std::string_view text);
495 static constexpr std::string_view
tag() {
return "spell"; }
496 static bool StoreTo(
SpellLinkData& val, std::string_view text);
502 static constexpr std::string_view
tag() {
return "talent"; }
503 static bool StoreTo(
TalentEntry const*& val, std::string_view text);
509 static constexpr std::string_view
tag() {
return "talentbuild"; }
516 static constexpr std::string_view
tag() {
return "trade"; }
523 static constexpr std::string_view
tag() {
return "transmogappearance"; }
530 static constexpr std::string_view
tag() {
return "transmogillusion"; }
537 static constexpr std::string_view
tag() {
return "transmogset"; }
544 static constexpr std::string_view
tag() {
return "worldmap"; }
556 return Trinity::StringTo<uint32>(
data, 16) == c;
565 HyperlinkInfo(std::string_view t, std::string_view c, std::string_view ta, std::string_view d, std::string_view te) :
568 explicit operator bool()
const {
return ok; }
572 std::string_view
const tag;
#define make_base_tag(ltag, type)
std::optional< T > Optional
Optional helper class to wrap optional values within.
static ObjectGuid const FromStringFailed
static ObjectGuid FromString(std::string_view guidString)
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
HyperlinkColor(std::string_view c)
bool operator==(uint32 c) const
std::string_view const data
std::string_view const text
HyperlinkInfo(std::string_view t, std::string_view c, std::string_view ta, std::string_view d, std::string_view te)
std::string_view const tag
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