#include "ChatTextBuilder.h"
◆ AcoreStringChatBuilder()
Acore::AcoreStringChatBuilder::AcoreStringChatBuilder |
( |
WorldObject const * |
obj, |
|
|
ChatMsg |
msgType, |
|
|
uint32 |
textId, |
|
|
WorldObject const * |
target = nullptr , |
|
|
va_list * |
args = nullptr |
|
) |
| |
|
inline |
uint32 _textId
Definition: ChatTextBuilder.h:75
va_list * _args
Definition: ChatTextBuilder.h:77
WorldObject const * _target
Definition: ChatTextBuilder.h:76
WorldObject const * _source
Definition: ChatTextBuilder.h:73
ChatMsg _msgType
Definition: ChatTextBuilder.h:74
◆ operator()()
41{
43
45 {
46
47 va_list ap;
49
50 static std::size_t const BufferSize = 2048;
51 char strBuffer[BufferSize];
52 vsnprintf(strBuffer, BufferSize, text, ap);
53 va_end(ap);
54
56 }
57 else
58 {
60 }
61}
@ LANG_UNIVERSAL
Definition: SharedDefines.h:735
#define sObjectMgr
Definition: ObjectMgr.h:1635
static std::size_t BuildChatPacket(WorldPacket &data, ChatMsg chatType, Language language, ObjectGuid senderGUID, ObjectGuid receiverGUID, std::string_view message, uint8 chatTag, std::string const &senderName="", std::string const &receiverName="", uint32 achievementId=0, bool gmMessage=false, std::string const &channelName="")
Definition: Chat.cpp:264
References ChatHandler::BuildChatPacket(), LANG_UNIVERSAL, and sObjectMgr.
◆ _args
va_list* Acore::AcoreStringChatBuilder::_args |
|
private |
◆ _msgType
ChatMsg Acore::AcoreStringChatBuilder::_msgType |
|
private |
◆ _source
WorldObject const* Acore::AcoreStringChatBuilder::_source |
|
private |
◆ _target
WorldObject const* Acore::AcoreStringChatBuilder::_target |
|
private |
◆ _textId
uint32 Acore::AcoreStringChatBuilder::_textId |
|
private |