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

#include <CharacterPackets.h>

Public Member Functions

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

uint8 Sex = 0
 
uint8 Race = 0
 

Additional Inherited Members

- Protected Attributes inherited from WorldPackets::Packet
WorldPacket _worldPacket
 

Constructor & Destructor Documentation

WorldPackets::Character::GenerateRandomCharacterName::GenerateRandomCharacterName ( WorldPacket &&  packet)
inline
328 : ClientPacket(CMSG_GENERATE_RANDOM_CHARACTER_NAME, std::move(packet)) { }
ClientPacket(WorldPacket &&packet)
Definition: Packet.h:62
Definition: Opcodes.h:289

Member Function Documentation

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

Implements WorldPackets::Packet.

310 {
311  _worldPacket >> Race;
312  _worldPacket >> Sex;
313 }
uint8 Race
Definition: CharacterPackets.h:333
WorldPacket _worldPacket
Definition: Packet.h:43
uint8 Sex
Definition: CharacterPackets.h:332

Member Data Documentation

uint8 WorldPackets::Character::GenerateRandomCharacterName::Race = 0
uint8 WorldPackets::Character::GenerateRandomCharacterName::Sex = 0

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