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

#include <MiscPackets.h>

Public Member Functions

 AccountHeirloomUpdate ()
 
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

bool IsFullUpdate = false
 
HeirloomContainer constHeirlooms = nullptr
 
int32 Unk = 0
 

Additional Inherited Members

- Protected Attributes inherited from WorldPackets::Packet
WorldPacket _worldPacket
 

Constructor & Destructor Documentation

WorldPackets::Misc::AccountHeirloomUpdate::AccountHeirloomUpdate ( )
inline
ServerPacket(OpcodeServer opcode, size_t initialSize=200, ConnectionType connection=CONNECTION_TYPE_DEFAULT)
Definition: Packet.h:49
Definition: Opcodes.h:1646

Member Function Documentation

WorldPacket const * WorldPackets::Misc::AccountHeirloomUpdate::Write ( )
overridevirtual

Implements WorldPackets::Packet.

582 {
585 
586  _worldPacket << int32(Unk);
587 
588  // both lists have to have the same size
589  _worldPacket << int32(Heirlooms->size());
590  _worldPacket << int32(Heirlooms->size());
591 
592  for (auto const& item : *Heirlooms)
593  _worldPacket << uint32(item.first);
594 
595  for (auto const& flags : *Heirlooms)
596  _worldPacket << uint32(flags.second.flags);
597 
598  return &_worldPacket;
599 }
int32 Unk
Definition: MiscPackets.h:772
void FlushBits()
Definition: ByteBuffer.h:150
WorldPacket _worldPacket
Definition: Packet.h:43
bool WriteBit(uint32 bit)
Definition: ByteBuffer.h:170
int32_t int32
Definition: g3dmath.h:167
HeirloomContainer const * Heirlooms
Definition: MiscPackets.h:771
uint8 flags
Definition: DisableMgr.cpp:44
uint32_t uint32
Definition: g3dmath.h:168
bool IsFullUpdate
Definition: MiscPackets.h:770

+ Here is the call graph for this function:

Member Data Documentation

HeirloomContainer const* WorldPackets::Misc::AccountHeirloomUpdate::Heirlooms = nullptr
bool WorldPackets::Misc::AccountHeirloomUpdate::IsFullUpdate = false
int32 WorldPackets::Misc::AccountHeirloomUpdate::Unk = 0

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