TrinityCore
WorldPackets::Chat::Chat Class Referencefinal

#include <ChatPackets.h>

+ Inheritance diagram for WorldPackets::Chat::Chat:

Public Member Functions

 Chat ()
 
 Chat (Chat const &chat)
 
void Initialize (ChatMsg chatType, Language language, WorldObject const *sender, WorldObject const *receiver, std::string_view message, uint32 achievementId=0, std::string_view channelName="", LocaleConstant locale=DEFAULT_LOCALE, std::string_view addonPrefix="")
 
void SetSender (WorldObject const *sender, LocaleConstant locale)
 
void SetReceiver (WorldObject const *receiver, LocaleConstant locale)
 
WorldPacket const * Write () override
 
- Public Member Functions inherited from WorldPackets::ServerPacket
 ServerPacket (OpcodeServer opcode, size_t initialSize=200, ConnectionType connection=CONNECTION_TYPE_DEFAULT)
 
void Read () override final
 
void Clear ()
 
WorldPacket && Move ()
 
void ShrinkToFit ()
 
OpcodeServer GetOpcode () const
 
- Public Member Functions inherited from WorldPackets::Packet
 Packet (WorldPacket &&worldPacket)
 
virtual ~Packet ()=default
 
 Packet (Packet const &right)=delete
 
Packetoperator= (Packet const &right)=delete
 
virtual WorldPacket const * Write ()=0
 
virtual void Read ()=0
 
WorldPacket const * GetRawPacket () const
 
size_t GetSize () const
 
ConnectionType GetConnection () const
 

Public Attributes

uint8 SlashCmd = 0
 
uint32 _Language = LANG_UNIVERSAL
 
ObjectGuid SenderGUID
 
ObjectGuid SenderGuildGUID
 
ObjectGuid SenderAccountGUID
 
ObjectGuid TargetGUID
 
uint32 SenderVirtualAddress = 0
 
uint32 TargetVirtualAddress = 0
 
std::string SenderName
 
std::string TargetName
 
std::string Prefix
 Addon Prefix. More...
 
std::string _Channel
 Channel Name. More...
 
std::string ChatText
 
uint32 AchievementID = 0
 
uint16 _ChatFlags = 0
 
float DisplayTime = 0.0f
 
int32 SpellID = 0
 
Optional< uint32Unused_801
 
bool HideChatLog = false
 
bool FakeSenderName = false
 
Optional< ObjectGuidChannelGUID
 

Additional Inherited Members

- Protected Attributes inherited from WorldPackets::Packet
WorldPacket _worldPacket
 

Detailed Description

Definition at line 149 of file ChatPackets.h.

Constructor & Destructor Documentation

◆ Chat() [1/2]

WorldPackets::Chat::Chat::Chat ( )
inline

Definition at line 152 of file ChatPackets.h.

◆ Chat() [2/2]

WorldPackets::Chat::Chat::Chat ( Chat const &  chat)

Definition at line 111 of file ChatPackets.cpp.

Member Function Documentation

◆ Initialize()

void WorldPackets::Chat::Chat::Initialize ( ChatMsg  chatType,
Language  language,
WorldObject const *  sender,
WorldObject const *  receiver,
std::string_view  message,
uint32  achievementId = 0,
std::string_view  channelName = "",
LocaleConstant  locale = DEFAULT_LOCALE,
std::string_view  addonPrefix = "" 
)

Definition at line 120 of file ChatPackets.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ SetReceiver()

void WorldPackets::Chat::Chat::SetReceiver ( WorldObject const *  receiver,
LocaleConstant  locale 
)

Definition at line 167 of file ChatPackets.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ SetSender()

void WorldPackets::Chat::Chat::SetSender ( WorldObject const *  sender,
LocaleConstant  locale 
)

Definition at line 151 of file ChatPackets.cpp.

+ Here is the call graph for this function:

◆ Write()

WorldPacket const * WorldPackets::Chat::Chat::Write ( )
overridevirtual

Implements WorldPackets::Packet.

Definition at line 174 of file ChatPackets.cpp.

+ Here is the caller graph for this function:

Member Data Documentation

◆ _Channel

std::string WorldPackets::Chat::Chat::_Channel

Channel Name.

Definition at line 173 of file ChatPackets.h.

◆ _ChatFlags

uint16 WorldPackets::Chat::Chat::_ChatFlags = 0
See also
enum ChatFlags

Definition at line 176 of file ChatPackets.h.

◆ _Language

uint32 WorldPackets::Chat::Chat::_Language = LANG_UNIVERSAL

Definition at line 163 of file ChatPackets.h.

◆ AchievementID

uint32 WorldPackets::Chat::Chat::AchievementID = 0

Definition at line 175 of file ChatPackets.h.

◆ ChannelGUID

Optional<ObjectGuid> WorldPackets::Chat::Chat::ChannelGUID

Definition at line 182 of file ChatPackets.h.

◆ ChatText

std::string WorldPackets::Chat::Chat::ChatText

Definition at line 174 of file ChatPackets.h.

◆ DisplayTime

float WorldPackets::Chat::Chat::DisplayTime = 0.0f

Definition at line 177 of file ChatPackets.h.

◆ FakeSenderName

bool WorldPackets::Chat::Chat::FakeSenderName = false

Definition at line 181 of file ChatPackets.h.

◆ HideChatLog

bool WorldPackets::Chat::Chat::HideChatLog = false

Definition at line 180 of file ChatPackets.h.

◆ Prefix

std::string WorldPackets::Chat::Chat::Prefix

Addon Prefix.

Definition at line 172 of file ChatPackets.h.

◆ SenderAccountGUID

ObjectGuid WorldPackets::Chat::Chat::SenderAccountGUID

Definition at line 166 of file ChatPackets.h.

◆ SenderGUID

ObjectGuid WorldPackets::Chat::Chat::SenderGUID

Definition at line 164 of file ChatPackets.h.

◆ SenderGuildGUID

ObjectGuid WorldPackets::Chat::Chat::SenderGuildGUID

Definition at line 165 of file ChatPackets.h.

◆ SenderName

std::string WorldPackets::Chat::Chat::SenderName

Definition at line 170 of file ChatPackets.h.

◆ SenderVirtualAddress

uint32 WorldPackets::Chat::Chat::SenderVirtualAddress = 0

Definition at line 168 of file ChatPackets.h.

◆ SlashCmd

uint8 WorldPackets::Chat::Chat::SlashCmd = 0
See also
enum ChatMsg

Definition at line 162 of file ChatPackets.h.

◆ SpellID

int32 WorldPackets::Chat::Chat::SpellID = 0

Definition at line 178 of file ChatPackets.h.

◆ TargetGUID

ObjectGuid WorldPackets::Chat::Chat::TargetGUID

Definition at line 167 of file ChatPackets.h.

◆ TargetName

std::string WorldPackets::Chat::Chat::TargetName

Definition at line 171 of file ChatPackets.h.

◆ TargetVirtualAddress

uint32 WorldPackets::Chat::Chat::TargetVirtualAddress = 0

Definition at line 169 of file ChatPackets.h.

◆ Unused_801

Optional<uint32> WorldPackets::Chat::Chat::Unused_801

Definition at line 179 of file ChatPackets.h.


The documentation for this class was generated from the following files: