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

#include <PetPackets.h>

Public Member Functions

 PetSetAction (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 Index = 0
 
uint32 Action = 0
 

Additional Inherited Members

- Protected Attributes inherited from WorldPackets::Packet
WorldPacket _worldPacket
 

Constructor & Destructor Documentation

WorldPackets::Pet::PetSetAction::PetSetAction ( WorldPacket &&  packet)
inline
208 : ClientPacket(CMSG_PET_SET_ACTION, std::move(packet)) { }
Definition: Opcodes.h:505
ClientPacket(WorldPacket &&packet)
Definition: Packet.h:62

Member Function Documentation

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

Implements WorldPackets::Packet.

159 {
161 
162  _worldPacket >> Index;
163  _worldPacket >> Action;
164 }
WorldPacket _worldPacket
Definition: Packet.h:43
uint32 Index
Definition: PetPackets.h:214
uint32 Action
Definition: PetPackets.h:215
ObjectGuid PetGUID
Definition: PetPackets.h:212

Member Data Documentation

uint32 WorldPackets::Pet::PetSetAction::Action = 0
uint32 WorldPackets::Pet::PetSetAction::Index = 0
ObjectGuid WorldPackets::Pet::PetSetAction::PetGUID

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