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

#include <PetPackets.h>

Public Member Functions

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

ObjectGuid PetGUID
 
uint32 Action = 0
 
ObjectGuid TargetGUID
 
G3D::Vector3 ActionPosition
 

Additional Inherited Members

- Protected Attributes inherited from WorldPackets::Packet
WorldPacket _worldPacket
 

Constructor & Destructor Documentation

WorldPackets::Pet::PetAction::PetAction ( WorldPacket &&  packet)
inline
195 : ClientPacket(CMSG_PET_ACTION, std::move(packet)) { }
Definition: Opcodes.h:492
ClientPacket(WorldPacket &&packet)
Definition: Packet.h:62

Member Function Documentation

void WorldPackets::Pet::PetAction::Read ( )
overridevirtual

Implements WorldPackets::Packet.

144 {
146 
147  _worldPacket >> Action;
149 
151 }
uint32 Action
Definition: PetPackets.h:200
WorldPacket _worldPacket
Definition: Packet.h:43
ObjectGuid TargetGUID
Definition: PetPackets.h:201
G3D::Vector3 ActionPosition
Definition: PetPackets.h:202
ObjectGuid PetGUID
Definition: PetPackets.h:199

Member Data Documentation

uint32 WorldPackets::Pet::PetAction::Action = 0
G3D::Vector3 WorldPackets::Pet::PetAction::ActionPosition
ObjectGuid WorldPackets::Pet::PetAction::PetGUID
ObjectGuid WorldPackets::Pet::PetAction::TargetGUID

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