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

#include <ChatPackets.h>

Public Member Functions

 ChatAddonMessage (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

std::string Prefix
std::string Text

Additional Inherited Members

- Protected Attributes inherited from WorldPackets::Packet
WorldPacket _worldPacket

Constructor & Destructor Documentation

WorldPackets::Chat::ChatAddonMessage::ChatAddonMessage ( WorldPacket &&  packet)
85 : ClientPacket(std::move(packet)) { }
ClientPacket(WorldPacket &&packet)
Definition: Packet.h:62

Member Function Documentation

void WorldPackets::Chat::ChatAddonMessage::Read ( )

Implements WorldPackets::Packet.

50 {
51  uint32 prefixLen = _worldPacket.ReadBits(5);
52  uint32 textLen = _worldPacket.ReadBits(8);
53  Prefix = _worldPacket.ReadString(prefixLen);
54  Text = _worldPacket.ReadString(textLen);
55 }
uint32 ReadBits(int32 bits)
Definition: ByteBuffer.h:204
WorldPacket _worldPacket
Definition: Packet.h:43
std::string ReadString(uint32 length)
Definition: ByteBuffer.h:524
std::string Prefix
Definition: ChatPackets.h:89
uint32_t uint32
Definition: Define.h:150
Definition: boss_ascendant_lord_obsidius.cpp:22

Member Data Documentation

std::string WorldPackets::Chat::ChatAddonMessage::Prefix
std::string WorldPackets::Chat::ChatAddonMessage::Text

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