AzerothCore 3.3.5a
OpenSource WoW Emulator
Loading...
Searching...
No Matches
Acore::CustomChatTextBuilder Class Reference

#include "ChatTextBuilder.h"

Public Member Functions

 CustomChatTextBuilder (WorldObject const *obj, ChatMsg msgType, std::string_view text, Language language=LANG_UNIVERSAL, WorldObject const *target=nullptr)
 
void operator() (WorldPacket &data, LocaleConstant locale) const
 

Private Attributes

WorldObject const * _source
 
ChatMsg _msgType
 
std::string _text
 
Language _language
 
WorldObject const * _target
 

Detailed Description

Constructor & Destructor Documentation

◆ CustomChatTextBuilder()

Acore::CustomChatTextBuilder::CustomChatTextBuilder ( WorldObject const *  obj,
ChatMsg  msgType,
std::string_view  text,
Language  language = LANG_UNIVERSAL,
WorldObject const *  target = nullptr 
)
inline
52 : _source(obj), _msgType(msgType), _text(text), _language(language), _target(target) { }
ChatMsg _msgType
Definition: ChatTextBuilder.h:58
Language _language
Definition: ChatTextBuilder.h:60
WorldObject const * _target
Definition: ChatTextBuilder.h:61
std::string _text
Definition: ChatTextBuilder.h:59
WorldObject const * _source
Definition: ChatTextBuilder.h:57

Member Function Documentation

◆ operator()()

void Acore::CustomChatTextBuilder::operator() ( WorldPacket data,
LocaleConstant  locale 
) const
36{
38}
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:267

References ChatHandler::BuildChatPacket().

Member Data Documentation

◆ _language

Language Acore::CustomChatTextBuilder::_language
private

◆ _msgType

ChatMsg Acore::CustomChatTextBuilder::_msgType
private

◆ _source

WorldObject const* Acore::CustomChatTextBuilder::_source
private

◆ _target

WorldObject const* Acore::CustomChatTextBuilder::_target
private

◆ _text

std::string Acore::CustomChatTextBuilder::_text
private