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, ConnectionType connection=CONNECTION_TYPE_DEFAULT)
 
void Read () 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
 
ConnectionType GetConnection () const
 

Public Attributes

uint8 SlashCmd = 0
 
uint32 _Language = LANG_UNIVERSAL
 
ObjectGuid SenderGUID
 
ObjectGuid SenderGuildGUID
 
ObjectGuid SenderWowAccount
 
ObjectGuid TargetGUID
 
uint32 SenderVirtualAddress = 0
 
uint32 TargetVirtualAddress = 0
 
std::string SenderName
 
std::string TargetName
 
std::string Prefix
 Addon Prefix.
 
std::string _Channel
 Channel Name.
 
std::string ChatText
 
uint32 AchievementID = 0
 
uint32 _ChatFlags = 0
 
float DisplayTime = 0.0f
 
int32 SpellID = 0
 
Optional< uint32 > BroadcastTextID
 
bool HideChatLog = false
 
bool FakeSenderName = false
 
Optional< ObjectGuid > ChannelGUID
 
Optional< uint32 > EncounterEventID
 

Additional Inherited Members

- Protected Attributes inherited from WorldPackets::Packet
WorldPacket _worldPacket
 

Detailed Description

Definition at line 152 of file ChatPackets.h.

Constructor & Destructor Documentation

◆ Chat() [1/2]

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

Definition at line 155 of file ChatPackets.h.

◆ Chat() [2/2]

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

Definition at line 124 of file ChatPackets.cpp.

Member Function Documentation

◆ Initialize()

◆ SetReceiver()

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

◆ 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 176 of file ChatPackets.h.

Referenced by Initialize(), and Write().

◆ _ChatFlags

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

Definition at line 179 of file ChatPackets.h.

Referenced by Initialize(), SetSender(), and Write().

◆ _Language

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

Definition at line 166 of file ChatPackets.h.

Referenced by Initialize(), and Write().

◆ AchievementID

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

Definition at line 178 of file ChatPackets.h.

Referenced by Initialize(), and Write().

◆ BroadcastTextID

Optional<uint32> WorldPackets::Chat::Chat::BroadcastTextID

Definition at line 182 of file ChatPackets.h.

Referenced by Write().

◆ ChannelGUID

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

Definition at line 185 of file ChatPackets.h.

Referenced by Write().

◆ ChatText

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

Definition at line 177 of file ChatPackets.h.

Referenced by Initialize(), and Write().

◆ DisplayTime

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

Definition at line 180 of file ChatPackets.h.

Referenced by Write().

◆ EncounterEventID

Optional<uint32> WorldPackets::Chat::Chat::EncounterEventID

Definition at line 186 of file ChatPackets.h.

Referenced by Write().

◆ FakeSenderName

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

Definition at line 184 of file ChatPackets.h.

Referenced by Write().

◆ HideChatLog

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

Definition at line 183 of file ChatPackets.h.

Referenced by Write().

◆ Prefix

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

Addon Prefix.

Definition at line 175 of file ChatPackets.h.

Referenced by Initialize(), and Write().

◆ SenderGUID

ObjectGuid WorldPackets::Chat::Chat::SenderGUID

Definition at line 167 of file ChatPackets.h.

Referenced by Initialize(), SetSender(), and Write().

◆ SenderGuildGUID

ObjectGuid WorldPackets::Chat::Chat::SenderGuildGUID

Definition at line 168 of file ChatPackets.h.

Referenced by Initialize(), SetSender(), and Write().

◆ SenderName

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

Definition at line 173 of file ChatPackets.h.

Referenced by Initialize(), SetSender(), and Write().

◆ SenderVirtualAddress

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

Definition at line 171 of file ChatPackets.h.

Referenced by Initialize(), and Write().

◆ SenderWowAccount

ObjectGuid WorldPackets::Chat::Chat::SenderWowAccount

Definition at line 169 of file ChatPackets.h.

Referenced by Initialize(), SetSender(), and Write().

◆ SlashCmd

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

Definition at line 165 of file ChatPackets.h.

Referenced by Initialize(), and Write().

◆ SpellID

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

Definition at line 181 of file ChatPackets.h.

Referenced by Write().

◆ TargetGUID

ObjectGuid WorldPackets::Chat::Chat::TargetGUID

Definition at line 170 of file ChatPackets.h.

Referenced by Initialize(), SetReceiver(), and Write().

◆ TargetName

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

Definition at line 174 of file ChatPackets.h.

Referenced by Initialize(), SetReceiver(), and Write().

◆ TargetVirtualAddress

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

Definition at line 172 of file ChatPackets.h.

Referenced by Initialize(), and Write().


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