42 char const* text =
sObjectMgr->GetTrinityString(_textId, locale);
50 static size_t const BufferSize = 2048;
51 char strBuffer[BufferSize];
52 vsnprintf(strBuffer, BufferSize, text, ap);
static 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="")
WorldObject const * _source
WorldObject const * _target
void operator()(WorldPacket &data, LocaleConstant locale) const
void operator()(WorldPacket &data, LocaleConstant locale) const
std::string const & GetText(LocaleConstant locale=DEFAULT_LOCALE, uint8 gender=GENDER_MALE, bool forceGender=false) const