#include <ChatLink.h>
QuestChatLink::QuestChatLink |
( |
| ) |
|
|
inline |
Quest const * _quest
Definition: ChatLink.h:87
int32 _questLevel
Definition: ChatLink.h:88
ChatLink()
Definition: ChatLink.h:41
bool QuestChatLink::Initialize |
( |
std::istringstream & |
iss | ) |
|
|
overridevirtual |
Implements ChatLink.
256 TC_LOG_TRACE(
"chat.system",
"ChatHandler::isValidChatMessage('%s'): sequence finished unexpectedly while reading quest entry", iss.str().c_str());
263 TC_LOG_TRACE(
"chat.system",
"ChatHandler::isValidChatMessage('%s'): quest template %u not found", iss.str().c_str(), questId);
272 TC_LOG_TRACE(
"chat.system",
"ChatHandler::isValidChatMessage('%s'): sequence finished unexpectedly while reading quest level", iss.str().c_str());
278 TC_LOG_TRACE(
"chat.system",
"ChatHandler::isValidChatMessage('%s'): quest level %d is too big", iss.str().c_str(),
_questLevel);
Quest const * _quest
Definition: ChatLink.h:87
int32 _questLevel
Definition: ChatLink.h:88
bool ReadInt32(std::istringstream &iss, int32 &res)
Definition: ChatLink.cpp:55
Definition: DBCEnums.h:54
bool ReadUInt32(std::istringstream &iss, uint32 &res)
Definition: ChatLink.cpp:49
#define sObjectMgr
Definition: ObjectMgr.h:1567
#define DELIMITER
Definition: ChatLink.cpp:96
#define TC_LOG_TRACE(filterType__,...)
Definition: Log.h:195
uint32_t uint32
Definition: Define.h:150
bool CheckDelimiter(std::istringstream &iss, char delimiter, const char *context)
Definition: ChatLink.cpp:74
bool QuestChatLink::ValidateName |
( |
char * |
buffer, |
|
|
const char * |
context |
|
) |
| |
|
overridevirtual |
Implements ChatLink.
291 for (
uint8 i = 0; i < ql->LogTitle.size(); i++)
292 if (ql->LogTitle[i] == buffer)
298 TC_LOG_TRACE(
"chat.system",
"ChatHandler::isValidChatMessage('%s'): linked quest (id: %u) title wasn't found in any localization", context,
_quest->
GetQuestId());
Quest const * _quest
Definition: ChatLink.h:87
virtual bool ValidateName(char *buffer, const char *context)=0
Definition: ChatLink.cpp:99
Definition: QuestDef.h:239
#define sObjectMgr
Definition: ObjectMgr.h:1567
uint32 GetQuestId() const
Definition: QuestDef.h:304
#define TC_LOG_TRACE(filterType__,...)
Definition: Log.h:195
uint8_t uint8
Definition: Define.h:152
std::string const & GetLogTitle() const
Definition: QuestDef.h:334
int32 QuestChatLink::_questLevel |
|
protected |
The documentation for this class was generated from the following files: