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

#include <Packet.h>

Public Member Functions

 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
 
virtual void Read ()=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::ClientPacket::ClientPacket ( WorldPacket &&  packet)
inline
62 : Packet(std::move(packet)) { }
Packet(WorldPacket &&worldPacket)
Definition: Packet.h:28
WorldPackets::ClientPacket::ClientPacket ( OpcodeClient  expectedOpcode,
WorldPacket &&  packet 
)
inline
63 : Packet(std::move(packet)) { ASSERT(GetOpcode() == expectedOpcode); }
OpcodeClient GetOpcode() const
Definition: Packet.h:72
#define ASSERT
Definition: Errors.h:55
Packet(WorldPacket &&worldPacket)
Definition: Packet.h:28

+ Here is the call graph for this function:

Member Function Documentation

OpcodeClient WorldPackets::ClientPacket::GetOpcode ( ) const
inline
72 { return OpcodeClient(_worldPacket.GetOpcode()); }
uint32 GetOpcode() const
Definition: WorldPacket.h:79
WorldPacket _worldPacket
Definition: Packet.h:43
OpcodeClient
Definition: Opcodes.h:46

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

WorldPacket const* WorldPackets::ClientPacket::Write ( )
inlinefinaloverridevirtual

Implements WorldPackets::Packet.

66  {
67  ASSERT(!"Write not allowed for client packets.");
68  // Shut up some compilers
69  return nullptr;
70  }
#define ASSERT
Definition: Errors.h:55

+ Here is the caller graph for this function:


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