◆ BattlegroundChatBuilder()
Acore::BattlegroundChatBuilder::BattlegroundChatBuilder |
( |
ChatMsg |
msgtype, |
|
|
uint32 |
textId, |
|
|
Player const * |
source, |
|
|
va_list * |
args = nullptr |
|
) |
| |
|
inline |
uint32 _textId
Definition Battleground.cpp:86
va_list * _args
Definition Battleground.cpp:88
Player const * _source
Definition Battleground.cpp:87
ChatMsg _msgtype
Definition Battleground.cpp:85
◆ do_helper()
void Acore::BattlegroundChatBuilder::do_helper |
( |
WorldPacket & |
data, |
|
|
char const * |
text |
|
) |
| |
|
inlineprivate |
81 {
83 }
@ LANG_UNIVERSAL
Definition SharedDefines.h:735
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:265
References _msgtype, _source, ChatHandler::BuildChatPacket(), and LANG_UNIVERSAL.
Referenced by operator()().
◆ operator()()
60 {
62 char const* text = strtext.c_str();
64 {
65
66 va_list ap;
68
69 char str[2048];
70 vsnprintf(str, 2048, text, ap);
71 va_end(ap);
72
74 }
75 else
77 }
#define sObjectMgr
Definition ObjectMgr.h:1636
void do_helper(WorldPacket &data, char const *text)
Definition Battleground.cpp:80
References _args, _textId, do_helper(), and sObjectMgr.
◆ _args
va_list* Acore::BattlegroundChatBuilder::_args |
|
private |
◆ _msgtype
ChatMsg Acore::BattlegroundChatBuilder::_msgtype |
|
private |
◆ _source
Player const* Acore::BattlegroundChatBuilder::_source |
|
private |
◆ _textId
uint32 Acore::BattlegroundChatBuilder::_textId |
|
private |
The documentation for this class was generated from the following file: