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

#include <BattlePetPackets.h>

Public Member Functions

 BattlePetSetFlags (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 Flags = 0
 
uint8 ControlType = 0
 

Additional Inherited Members

- Protected Attributes inherited from WorldPackets::Packet
WorldPacket _worldPacket
 

Constructor & Destructor Documentation

WorldPackets::BattlePet::BattlePetSetFlags::BattlePetSetFlags ( WorldPacket &&  packet)
inline
144 : ClientPacket(CMSG_BATTLE_PET_SET_FLAGS, std::move(packet)) { }
ClientPacket(WorldPacket &&packet)
Definition: Packet.h:62
Definition: Opcodes.h:106

Member Function Documentation

void WorldPackets::BattlePet::BattlePetSetFlags::Read ( )
overridevirtual

Implements WorldPackets::Packet.

141 {
143  _worldPacket >> Flags;
145 }
uint32 ReadBits(int32 bits)
Definition: ByteBuffer.h:204
WorldPacket _worldPacket
Definition: Packet.h:43
uint8 ControlType
Definition: BattlePetPackets.h:150
ObjectGuid PetGuid
Definition: BattlePetPackets.h:148
uint32 Flags
Definition: BattlePetPackets.h:149

Member Data Documentation

uint8 WorldPackets::BattlePet::BattlePetSetFlags::ControlType = 0
uint32 WorldPackets::BattlePet::BattlePetSetFlags::Flags = 0
ObjectGuid WorldPackets::BattlePet::BattlePetSetFlags::PetGuid

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