TrinityCore
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
WorldPackets::Chat::ChatMessageWhisper Class Referencefinal

#include <ChatPackets.h>

Public Member Functions

 ChatMessageWhisper (WorldPacket &&packet)
 
void Read () override
 
- Public Member Functions inherited from WorldPackets::ClientPacket
 ClientPacket (WorldPacket &&packet)
 
 ClientPacket (OpcodeClient expectedOpcode, WorldPacket &&packet)
 
WorldPacket constWrite () overridefinal
 
OpcodeClient 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
 
WorldPacket constGetRawPacket () const
 
size_t GetSize () const
 
ConnectionType GetConnection () const
 

Public Attributes

int32 Language = LANG_UNIVERSAL
 
std::string Text
 
std::string Target
 

Additional Inherited Members

- Protected Attributes inherited from WorldPackets::Packet
WorldPacket _worldPacket
 

Constructor & Destructor Documentation

WorldPackets::Chat::ChatMessageWhisper::ChatMessageWhisper ( WorldPacket &&  packet)
inline
55 : ClientPacket(std::move(packet)) { }
ClientPacket(WorldPacket &&packet)
Definition: Packet.h:62

Member Function Documentation

void WorldPackets::Chat::ChatMessageWhisper::Read ( )
overridevirtual

Implements WorldPackets::Packet.

32 {
34  uint32 targetLen = _worldPacket.ReadBits(9);
35  uint32 textLen = _worldPacket.ReadBits(8);
36  Target = _worldPacket.ReadString(targetLen);
37  Text = _worldPacket.ReadString(textLen);
38 }
int32 Language
Definition: ChatPackets.h:59
uint32 ReadBits(int32 bits)
Definition: ByteBuffer.h:204
WorldPacket _worldPacket
Definition: Packet.h:43
std::string ReadString(uint32 length)
Definition: ByteBuffer.h:524
uint32_t uint32
Definition: Define.h:150
Text
Definition: boss_ascendant_lord_obsidius.cpp:22
std::string Target
Definition: ChatPackets.h:61

Member Data Documentation

int32 WorldPackets::Chat::ChatMessageWhisper::Language = LANG_UNIVERSAL
std::string WorldPackets::Chat::ChatMessageWhisper::Target
std::string WorldPackets::Chat::ChatMessageWhisper::Text

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