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

#include <PetPackets.h>

Public Member Functions

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

PetRenameData RenameData
 

Additional Inherited Members

- Protected Attributes inherited from WorldPackets::Packet
WorldPacket _worldPacket
 

Constructor & Destructor Documentation

WorldPackets::Pet::PetRename::PetRename ( WorldPacket &&  packet)
inline
185 : ClientPacket(CMSG_PET_RENAME, std::move(packet)) { }
Definition: Opcodes.h:504
ClientPacket(WorldPacket &&packet)
Definition: Packet.h:62

Member Function Documentation

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

Implements WorldPackets::Packet.

122 {
125 
126  int8 nameLen = 0;
127  _worldPacket >> nameLen;
128 
131  {
133  for (int32 i = 0; i < MAX_DECLINED_NAME_CASES; i++)
134  count[i] = _worldPacket.ReadBits(7);
135 
136  for (int32 i = 0; i < MAX_DECLINED_NAME_CASES; i++)
138  }
139 
141 }
int8_t int8
Definition: Define.h:148
int32 PetNumber
Definition: PetPackets.h:164
uint32 ReadBits(int32 bits)
Definition: ByteBuffer.h:204
#define MAX_DECLINED_NAME_CASES
Definition: Unit.h:1099
WorldPacket _worldPacket
Definition: Packet.h:43
PetRenameData RenameData
Definition: PetPackets.h:189
std::string ReadString(uint32 length)
Definition: ByteBuffer.h:524
ObjectGuid PetGUID
Definition: PetPackets.h:163
int32_t int32
Definition: Define.h:146
bool HasDeclinedNames
Definition: PetPackets.h:166
std::string NewName
Definition: PetPackets.h:165
bool ReadBit()
Definition: ByteBuffer.h:186
std::string name[MAX_DECLINED_NAME_CASES]
Definition: Unit.h:1103
DeclinedName DeclinedNames
Definition: PetPackets.h:167

Member Data Documentation

PetRenameData WorldPackets::Pet::PetRename::RenameData

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