18 #ifndef TRINITYCORE_CHATLINK_H
19 #define TRINITYCORE_CHATLINK_H
41 ChatLink() : _color(0), _startPos(0), _endPos(0) { }
45 void SetBounds(std::istringstream::pos_type startPos, std::istringstream::pos_type endPos) { _startPos = startPos; _endPos = endPos; }
47 virtual bool Initialize(std::istringstream& iss) = 0;
48 virtual bool ValidateName(
char* buffer,
const char* context) = 0;
63 memset(_data, 0,
sizeof(_data));
65 virtual bool Initialize(std::istringstream& iss)
override;
66 virtual bool ValidateName(
char* buffer,
const char* context)
override;
83 virtual bool Initialize(std::istringstream& iss)
override;
84 virtual bool ValidateName(
char* buffer,
const char* context)
override;
96 virtual bool Initialize(std::istringstream& iss)
override;
97 virtual bool ValidateName(
char* buffer,
const char* context)
override;
109 memset(_data, 0,
sizeof(_data));
111 virtual bool Initialize(std::istringstream& iss)
override;
112 virtual bool ValidateName(
char* buffer,
const char* context)
override;
125 virtual bool Initialize(std::istringstream& iss)
override;
138 virtual bool Initialize(std::istringstream& iss)
override;
150 virtual bool Initialize(std::istringstream& iss)
override;
158 virtual bool Initialize(std::istringstream& iss)
override;
170 bool IsValidMessage();
179 #endif // TRINITYCORE_CHATLINK_H
Quest const * _quest
Definition: ChatLink.h:87
std::vector< int32 > _bonusListIDs
Definition: ChatLink.h:73
ItemChatLink()
Definition: ChatLink.h:61
Definition: ChatLink.h:154
AchievementChatLink()
Definition: ChatLink.h:107
Definition: QuestDef.h:279
int32 _questLevel
Definition: ChatLink.h:88
Definition: SpellInfo.h:326
TradeChatLink()
Definition: ChatLink.h:124
virtual bool ValidateName(char *buffer, const char *context)=0
Definition: ChatLink.cpp:99
uint32 _guid
Definition: ChatLink.h:115
uint32 _color
Definition: ChatLink.h:51
Definition: ChatLink.h:92
Definition: ChatLink.h:79
uint32 _slotId
Definition: ChatLink.h:160
arena_t NULL
Definition: jemalloc_internal.h:624
int32 _rankId
Definition: ChatLink.h:142
uint32 _talentId
Definition: ChatLink.h:141
virtual bool Initialize(std::istringstream &iss) override
Definition: ChatLink.cpp:304
virtual bool Initialize(std::istringstream &iss)=0
std::string _base64
Definition: ChatLink.h:130
EnchantmentChatLink()
Definition: ChatLink.h:149
Definition: ChatLink.h:121
uint32 _guid
Definition: ChatLink.h:129
SpellInfo const * _spell
Definition: ChatLink.h:100
Definition: ChatLink.h:58
GlyphChatLink()
Definition: ChatLink.h:157
Definition: DB2Structure.h:27
ChatLink()
Definition: ChatLink.h:41
GlyphPropertiesEntry const * _glyph
Definition: ChatLink.h:161
Definition: ChatLink.h:38
int32 _minSkillLevel
Definition: ChatLink.h:127
AchievementEntry const * _achievement
Definition: ChatLink.h:116
int32_t int32
Definition: Define.h:146
int32 _maxSkillLevel
Definition: ChatLink.h:128
uint32_t uint32
Definition: Define.h:150
static void Initialize(PCASC_SALSA20 pState, LPBYTE pbKey, DWORD cbKeyLength, LPBYTE pbVector)
Definition: CascDecrypt.cpp:81
Definition: DB2Structure.h:779
ItemRandomPropertiesEntry const * _property
Definition: ChatLink.h:75
QuestChatLink()
Definition: ChatLink.h:82
Definition: DBCStructure.h:509
ItemRandomSuffixEntry const * _suffix
Definition: ChatLink.h:74
SpellChatLink()
Definition: ChatLink.h:95
Definition: ChatLink.h:104
Definition: ItemTemplate.h:647
std::istringstream::pos_type _startPos
Definition: ChatLink.h:53
#define TC_GAME_API
Definition: Define.h:134
Definition: ChatLink.h:146
uint8_t uint8
Definition: Define.h:152
void SetBounds(std::istringstream::pos_type startPos, std::istringstream::pos_type endPos)
Definition: ChatLink.h:45
std::string _name
Definition: ChatLink.h:52
TalentChatLink()
Definition: ChatLink.h:137
void SetColor(uint32 color)
Definition: ChatLink.h:43
std::istringstream::pos_type _endPos
Definition: ChatLink.h:54
ItemTemplate const * _item
Definition: ChatLink.h:71
Definition: DB2Structure.h:771
virtual ~ChatLink()
Definition: ChatLink.h:42
Definition: ChatLink.h:134