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

#include <ChatPackets.h>

Public Member Functions

 ChatMessageChannel (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::ChatMessageChannel::ChatMessageChannel ( WorldPacket &&  packet)
68 : ClientPacket(std::move(packet)) { }
ClientPacket(WorldPacket &&packet)
Definition: Packet.h:62

Member Function Documentation

void WorldPackets::Chat::ChatMessageChannel::Read ( )

Implements WorldPackets::Packet.

41 {
43  uint32 targetLen = _worldPacket.ReadBits(9);
44  uint32 textLen = _worldPacket.ReadBits(8);
45  Target = _worldPacket.ReadString(targetLen);
46  Text = _worldPacket.ReadString(textLen);
47 }
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
Definition: boss_ascendant_lord_obsidius.cpp:22
std::string Target
Definition: ChatPackets.h:74
int32 Language
Definition: ChatPackets.h:72

Member Data Documentation

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

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