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

#include <SpellPackets.h>

Public Member Functions

 MirrorImageComponentedData ()
 
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 UnitGUID
 
uint32 DisplayID = 0
 
uint8 RaceID = 0
 
uint8 Gender = 0
 
uint8 ClassID = 0
 
uint8 SkinColor = 0
 
uint8 FaceVariation = 0
 
uint8 HairVariation = 0
 
uint8 HairColor = 0
 
uint8 BeardVariation = 0
 
ObjectGuid GuildGUID
 
std::vector< uint32ItemDisplayID
 

Additional Inherited Members

- Protected Attributes inherited from WorldPackets::Packet
WorldPacket _worldPacket
 

Constructor & Destructor Documentation

WorldPackets::Spells::MirrorImageComponentedData::MirrorImageComponentedData ( )
inline
761 : ServerPacket(SMSG_MIRROR_IMAGE_COMPONENTED_DATA, 8 + 4 + 8 * 1 + 8 + 11 * 4) { }
ServerPacket(OpcodeServer opcode, size_t initialSize=200, ConnectionType connection=CONNECTION_TYPE_DEFAULT)
Definition: Packet.h:49
Definition: Opcodes.h:1219

Member Function Documentation

WorldPacket const * WorldPackets::Spells::MirrorImageComponentedData::Write ( )
overridevirtual

Implements WorldPackets::Packet.

748 {
751  _worldPacket << RaceID;
752  _worldPacket << Gender;
760 
761  _worldPacket << uint32(ItemDisplayID.size());
762 
763  for (auto const& itemDisplayId : ItemDisplayID)
764  _worldPacket << itemDisplayId;
765 
766  return &_worldPacket;
767 }
uint8 HairColor
Definition: SpellPackets.h:773
ObjectGuid GuildGUID
Definition: SpellPackets.h:775
std::vector< uint32 > ItemDisplayID
Definition: SpellPackets.h:777
uint8 HairVariation
Definition: SpellPackets.h:772
uint32 DisplayID
Definition: SpellPackets.h:766
WorldPacket _worldPacket
Definition: Packet.h:43
uint8 RaceID
Definition: SpellPackets.h:767
uint8 SkinColor
Definition: SpellPackets.h:770
uint8 BeardVariation
Definition: SpellPackets.h:774
uint8 ClassID
Definition: SpellPackets.h:769
uint32_t uint32
Definition: g3dmath.h:168
uint8 FaceVariation
Definition: SpellPackets.h:771
uint8 Gender
Definition: SpellPackets.h:768
ObjectGuid UnitGUID
Definition: SpellPackets.h:765

+ Here is the caller graph for this function:

Member Data Documentation

uint8 WorldPackets::Spells::MirrorImageComponentedData::BeardVariation = 0
uint8 WorldPackets::Spells::MirrorImageComponentedData::ClassID = 0
uint32 WorldPackets::Spells::MirrorImageComponentedData::DisplayID = 0
uint8 WorldPackets::Spells::MirrorImageComponentedData::FaceVariation = 0
uint8 WorldPackets::Spells::MirrorImageComponentedData::Gender = 0
ObjectGuid WorldPackets::Spells::MirrorImageComponentedData::GuildGUID
uint8 WorldPackets::Spells::MirrorImageComponentedData::HairColor = 0
uint8 WorldPackets::Spells::MirrorImageComponentedData::HairVariation = 0
std::vector<uint32> WorldPackets::Spells::MirrorImageComponentedData::ItemDisplayID
uint8 WorldPackets::Spells::MirrorImageComponentedData::RaceID = 0
uint8 WorldPackets::Spells::MirrorImageComponentedData::SkinColor = 0
ObjectGuid WorldPackets::Spells::MirrorImageComponentedData::UnitGUID

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