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

#include <CharacterPackets.h>

Public Member Functions

 CharCustomizeResponse ()
 
 CharCustomizeResponse (CharCustomizeInfo const *customizeInfo)
 
WorldPacket constWrite () override
 
- Public Member Functions inherited from WorldPackets::ServerPacket
 ServerPacket (OpcodeServer opcode, size_t initialSize=200, ConnectionType connection=CONNECTION_TYPE_DEFAULT)
 
void Read () overridefinal
 
void Clear ()
 
WorldPacket && Move ()
 
OpcodeServer 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 CharGUID
 
std::string CharName
 
uint8 SexID = 0
 
uint8 SkinID = 0
 
uint8 HairColorID = 0
 
uint8 HairStyleID = 0
 
uint8 FacialHairStyleID = 0
 
uint8 FaceID = 0
 

Additional Inherited Members

- Protected Attributes inherited from WorldPackets::Packet
WorldPacket _worldPacket
 

Constructor & Destructor Documentation

WorldPackets::Character::CharCustomizeResponse::CharCustomizeResponse ( )
inline
695 : ServerPacket(SMSG_CHAR_CUSTOMIZE, 16 + 1 + 1 + 1 + 1 + 1 + 1 + 1) { }
ServerPacket(OpcodeServer opcode, size_t initialSize=200, ConnectionType connection=CONNECTION_TYPE_DEFAULT)
Definition: Packet.h:49
Definition: Opcodes.h:894
WorldPackets::Character::CharCustomizeResponse::CharCustomizeResponse ( CharCustomizeInfo const customizeInfo)
515  : ServerPacket(SMSG_CHAR_CUSTOMIZE, 16 + 1 + 1 + 1 + 1 + 1 + 1 + 1)
516 {
517  CharGUID = info->CharGUID;
518  SexID = info->SexID;
519  SkinID = info->SkinID;
520  HairColorID = info->HairColorID;
521  HairStyleID = info->HairStyleID;
522  FacialHairStyleID = info->FacialHairStyleID;
523  FaceID = info->FaceID;
524  CharName = info->CharName;
525 }
std::string CharName
Definition: CharacterPackets.h:701
ServerPacket(OpcodeServer opcode, size_t initialSize=200, ConnectionType connection=CONNECTION_TYPE_DEFAULT)
Definition: Packet.h:49
Definition: Opcodes.h:894
uint8 SexID
Definition: CharacterPackets.h:702
uint8 SkinID
Definition: CharacterPackets.h:703
uint8 HairColorID
Definition: CharacterPackets.h:704
ObjectGuid CharGUID
Definition: CharacterPackets.h:700
uint8 FacialHairStyleID
Definition: CharacterPackets.h:706
uint8 FaceID
Definition: CharacterPackets.h:707
uint8 HairStyleID
Definition: CharacterPackets.h:705

Member Function Documentation

WorldPacket const * WorldPackets::Character::CharCustomizeResponse::Write ( )
overridevirtual

Implements WorldPackets::Packet.

528 {
536  _worldPacket.WriteBits(CharName.length(), 6);
539 
540  return &_worldPacket;
541 }
std::string CharName
Definition: CharacterPackets.h:701
uint8 SexID
Definition: CharacterPackets.h:702
void FlushBits()
Definition: ByteBuffer.h:150
WorldPacket _worldPacket
Definition: Packet.h:43
uint8 SkinID
Definition: CharacterPackets.h:703
void WriteString(std::string const &str)
Definition: ByteBuffer.h:540
uint8 HairColorID
Definition: CharacterPackets.h:704
ObjectGuid CharGUID
Definition: CharacterPackets.h:700
uint8_t uint8
Definition: g3dmath.h:164
uint8 FacialHairStyleID
Definition: CharacterPackets.h:706
uint8 FaceID
Definition: CharacterPackets.h:707
uint8 HairStyleID
Definition: CharacterPackets.h:705
void WriteBits(T value, int32 bits)
Definition: ByteBuffer.h:198

+ Here is the caller graph for this function:

Member Data Documentation

ObjectGuid WorldPackets::Character::CharCustomizeResponse::CharGUID
std::string WorldPackets::Character::CharCustomizeResponse::CharName
uint8 WorldPackets::Character::CharCustomizeResponse::FaceID = 0
uint8 WorldPackets::Character::CharCustomizeResponse::FacialHairStyleID = 0
uint8 WorldPackets::Character::CharCustomizeResponse::HairColorID = 0
uint8 WorldPackets::Character::CharCustomizeResponse::HairStyleID = 0
uint8 WorldPackets::Character::CharCustomizeResponse::SexID = 0
uint8 WorldPackets::Character::CharCustomizeResponse::SkinID = 0

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