◆ BattlegroundChatBuilder()
| Acore::BattlegroundChatBuilder::BattlegroundChatBuilder |
( |
ChatMsg |
msgtype, |
|
|
uint32 |
textId, |
|
|
Player const * |
source, |
|
|
va_list * |
args = nullptr |
|
) |
| |
|
inline |
uint32 _textId
Definition Battleground.cpp:87
va_list * _args
Definition Battleground.cpp:89
Player const * _source
Definition Battleground.cpp:88
ChatMsg _msgtype
Definition Battleground.cpp:86
◆ do_helper()
| void Acore::BattlegroundChatBuilder::do_helper |
( |
WorldPacket & |
data, |
|
|
char const * |
text |
|
) |
| |
|
inlineprivate |
82 {
84 }
@ LANG_UNIVERSAL
Definition SharedDefines.h:723
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:273
References _msgtype, _source, ChatHandler::BuildChatPacket(), and LANG_UNIVERSAL.
Referenced by operator()().
◆ operator()()
61 {
63 char const* text = strtext.c_str();
65 {
66
67 va_list ap;
69
70 char str[2048];
71 vsnprintf(str, 2048, text, ap);
72 va_end(ap);
73
75 }
76 else
78 }
#define sObjectMgr
Definition ObjectMgr.h:1723
void do_helper(WorldPacket &data, char const *text)
Definition Battleground.cpp:81
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: