All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
WorldPackets::ServerPacket Class Reference

#include <Packet.h>

Public Member Functions

 ServerPacket (OpcodeServer opcode, size_t initialSize=200, ConnectionType connection=CONNECTION_TYPE_DEFAULT)
void Read () overridefinal
void Clear ()
WorldPacket && Move ()
OpcodeServer 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
virtual WorldPacket constWrite ()=0
WorldPacket constGetRawPacket () const
size_t GetSize () const
ConnectionType GetConnection () const

Additional Inherited Members

- Protected Attributes inherited from WorldPackets::Packet
WorldPacket _worldPacket

Constructor & Destructor Documentation

WorldPackets::ServerPacket::ServerPacket ( OpcodeServer  opcode,
size_t  initialSize = 200,
ConnectionType  connection = CONNECTION_TYPE_DEFAULT 
49 : Packet(WorldPacket(opcode, initialSize, connection)) { }
Definition: WorldPacket.h:26
Packet(WorldPacket &&worldPacket)
Definition: Packet.h:28

Member Function Documentation

void WorldPackets::ServerPacket::Clear ( )
53 { _worldPacket.clear(); }
WorldPacket _worldPacket
Definition: Packet.h:43
void clear()
Definition: ByteBuffer.h:134

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

OpcodeServer WorldPackets::ServerPacket::GetOpcode ( ) const
56 { return OpcodeServer(_worldPacket.GetOpcode()); }
uint32 GetOpcode() const
Definition: WorldPacket.h:79
WorldPacket _worldPacket
Definition: Packet.h:43
Definition: Opcodes.h:725

+ Here is the call graph for this function:

WorldPacket&& WorldPackets::ServerPacket::Move ( )
54 { return std::move(_worldPacket); }
WorldPacket _worldPacket
Definition: Packet.h:43
void WorldPackets::ServerPacket::Read ( )

Implements WorldPackets::Packet.

51 { ASSERT(!"Read not implemented for server packets."); }
#define ASSERT
Definition: Errors.h:55

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