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

#include <WardenPackets.h>

Public Member Functions

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

ByteBuffer Data
 

Additional Inherited Members

- Protected Attributes inherited from WorldPackets::Packet
WorldPacket _worldPacket
 

Constructor & Destructor Documentation

WorldPackets::Warden::WardenData::WardenData ( WorldPacket &&  packet)
inline
30 : ClientPacket(CMSG_WARDEN_DATA, std::move(packet)) { }
Definition: Opcodes.h:717
ClientPacket(WorldPacket &&packet)
Definition: Packet.h:62

Member Function Documentation

void WorldPackets::Warden::WardenData::Read ( )
overridevirtual

Implements WorldPackets::Packet.

21 {
22  uint32 size = _worldPacket.read<uint32>();
23 
24  if (size)
25  {
26  Data.resize(size);
27  _worldPacket.read(Data.contents(), size);
28  }
29 }
WorldPacket _worldPacket
Definition: Packet.h:43
uint32_t uint32
Definition: Define.h:150
Data
Definition: molten_core.h:69
T read()
Definition: ByteBuffer.h:484

+ Here is the call graph for this function:

Member Data Documentation

ByteBuffer WorldPackets::Warden::WardenData::Data

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