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

#include <MiscPackets.h>

Public Member Functions

 PlayerBound ()
 
 PlayerBound (ObjectGuid binderId, uint32 areaId)
 
WorldPacket constWrite () override
 
- Public Member Functions inherited from WorldPackets::ServerPacket
 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
 
WorldPacket constGetRawPacket () const
 
size_t GetSize () const
 
ConnectionType GetConnection () const
 

Public Attributes

ObjectGuid BinderID
 
uint32 AreaID = 0
 

Additional Inherited Members

- Protected Attributes inherited from WorldPackets::Packet
WorldPacket _worldPacket
 

Constructor & Destructor Documentation

WorldPackets::Misc::PlayerBound::PlayerBound ( )
inline
50 : ServerPacket(SMSG_PLAYER_BOUND, 16 + 4) { }
ServerPacket(OpcodeServer opcode, size_t initialSize=200, ConnectionType connection=CONNECTION_TYPE_DEFAULT)
Definition: Packet.h:49
Definition: Opcodes.h:1367
WorldPackets::Misc::PlayerBound::PlayerBound ( ObjectGuid  binderId,
uint32  areaId 
)
inline
51 : ServerPacket(SMSG_PLAYER_BOUND, 16 + 4), BinderID(binderId), AreaID(areaId) { }
ServerPacket(OpcodeServer opcode, size_t initialSize=200, ConnectionType connection=CONNECTION_TYPE_DEFAULT)
Definition: Packet.h:49
uint32 AreaID
Definition: MiscPackets.h:56
ObjectGuid BinderID
Definition: MiscPackets.h:55
Definition: Opcodes.h:1367

Member Function Documentation

WorldPacket const * WorldPackets::Misc::PlayerBound::Write ( )
overridevirtual

Implements WorldPackets::Packet.

295 {
298 
299  return &_worldPacket;
300 }
WorldPacket _worldPacket
Definition: Packet.h:43
uint32 AreaID
Definition: MiscPackets.h:56
ObjectGuid BinderID
Definition: MiscPackets.h:55
uint32_t uint32
Definition: g3dmath.h:168

Member Data Documentation

uint32 WorldPackets::Misc::PlayerBound::AreaID = 0
ObjectGuid WorldPackets::Misc::PlayerBound::BinderID

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