TrinityCore
Loading...
Searching...
No Matches
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)
 
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
 
Packet & operator= (Packet const &right)=delete
 
WorldPacket const * GetRawPacket () const
 
size_t GetSize () const
 

Public Attributes

uint8 SlashCmd = 0
 
uint32 _Language = LANG_UNIVERSAL
 
ObjectGuid SenderGUID
 
ObjectGuid TargetGUID
 
std::string SenderName
 
std::string TargetName
 
std::string _Channel
 Channel Name.
 
std::string ChatText
 
uint32 AchievementID = 0
 
uint8 ChatTag = 0
 
std::size_t TargetGUIDPos = 0
 

Additional Inherited Members

- Protected Attributes inherited from WorldPackets::Packet
WorldPacket _worldPacket
 

Detailed Description

Definition at line 47 of file ChatPackets.h.

Constructor & Destructor Documentation

◆ Chat() [1/2]

WorldPackets::Chat::Chat::Chat ( )
inlineexplicit

Definition at line 50 of file ChatPackets.h.

◆ Chat() [2/2]

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

Definition at line 56 of file ChatPackets.cpp.

Member Function Documentation

◆ Initialize()

◆ SetReceiver()

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

Definition at line 110 of file ChatPackets.cpp.

References Object::GetGUID(), and WorldObject::GetNameForLocaleIdx().

◆ SetSender()

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

◆ Write()

Member Data Documentation

◆ _Channel

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

Channel Name.

Definition at line 66 of file ChatPackets.h.

◆ _Language

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

Definition at line 61 of file ChatPackets.h.

◆ AchievementID

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

Definition at line 68 of file ChatPackets.h.

◆ ChatTag

uint8 WorldPackets::Chat::Chat::ChatTag = 0
See also
enum PlayerChatTag

Definition at line 69 of file ChatPackets.h.

◆ ChatText

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

Definition at line 67 of file ChatPackets.h.

Referenced by Trinity::TrinityStringChatBuilder::operator()().

◆ SenderGUID

ObjectGuid WorldPackets::Chat::Chat::SenderGUID

Definition at line 62 of file ChatPackets.h.

Referenced by Channel::Say().

◆ SenderName

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

Definition at line 64 of file ChatPackets.h.

◆ SlashCmd

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

Definition at line 60 of file ChatPackets.h.

◆ TargetGUID

ObjectGuid WorldPackets::Chat::Chat::TargetGUID

Definition at line 63 of file ChatPackets.h.

Referenced by Channel::Say().

◆ TargetGUIDPos

std::size_t WorldPackets::Chat::Chat::TargetGUIDPos = 0

◆ TargetName

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

Definition at line 65 of file ChatPackets.h.


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