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

#include <CharacterPackets.h>

Public Member Functions

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

std::shared_ptr
< CharCustomizeInfo
CustomizeInfo
 

Additional Inherited Members

- Protected Attributes inherited from WorldPackets::Packet
WorldPacket _worldPacket
 

Constructor & Destructor Documentation

WorldPackets::Character::CharCustomize::CharCustomize ( WorldPacket &&  packet)
inline
260 : ClientPacket(CMSG_CHAR_CUSTOMIZE, std::move(packet)) { }
Definition: Opcodes.h:161
ClientPacket(WorldPacket &&packet)
Definition: Packet.h:62

Member Function Documentation

void WorldPackets::Character::CharCustomize::Read ( )
overridevirtual

Implements WorldPackets::Packet.

238 {
239  CustomizeInfo.reset(new CharCustomizeInfo());
240  _worldPacket >> CustomizeInfo->CharGUID;
241  _worldPacket >> CustomizeInfo->SexID;
242  _worldPacket >> CustomizeInfo->SkinID;
243  _worldPacket >> CustomizeInfo->HairColorID;
244  _worldPacket >> CustomizeInfo->HairStyleID;
245  _worldPacket >> CustomizeInfo->FacialHairStyleID;
246  _worldPacket >> CustomizeInfo->FaceID;
248 }
uint32 ReadBits(int32 bits)
Definition: ByteBuffer.h:204
WorldPacket _worldPacket
Definition: Packet.h:43
std::string ReadString(uint32 length)
Definition: ByteBuffer.h:524
std::shared_ptr< CharCustomizeInfo > CustomizeInfo
Definition: CharacterPackets.h:274

+ Here is the call graph for this function:

Member Data Documentation

std::shared_ptr<CharCustomizeInfo> WorldPackets::Character::CharCustomize::CustomizeInfo

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