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

#include <ClientConfigPackets.h>

Public Member Functions

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

ObjectGuid PlayerGuid
 
uint32 Time = 0
 UnixTime. More...
 
uint32 Size = 0
 decompressed size More...
 
uint8 DataType = 0
 
ByteBuffer CompressedData
 

Additional Inherited Members

- Protected Attributes inherited from WorldPackets::Packet
WorldPacket _worldPacket
 

Constructor & Destructor Documentation

WorldPackets::ClientConfig::UserClientUpdateAccountData::UserClientUpdateAccountData ( WorldPacket &&  packet)
inline
92 : ClientPacket(CMSG_UPDATE_ACCOUNT_DATA, std::move(packet)) { }
Definition: Opcodes.h:698
ClientPacket(WorldPacket &&packet)
Definition: Packet.h:62

Member Function Documentation

void WorldPackets::ClientConfig::UserClientUpdateAccountData::Read ( )
overridevirtual

Implements WorldPackets::Packet.

117 {
119  _worldPacket >> Time;
120  _worldPacket >> Size;
122 
123  uint32 compressedSize = _worldPacket.read<uint32>();
124  if (compressedSize)
125  {
126  CompressedData.resize(compressedSize);
127  _worldPacket.read(CompressedData.contents(), compressedSize);
128  }
129 }
ByteBuffer CompressedData
Definition: ClientConfigPackets.h:100
uint8 * contents()
Definition: ByteBuffer.h:573
uint32 ReadBits(int32 bits)
Definition: ByteBuffer.h:204
void resize(size_t newsize)
Definition: ByteBuffer.h:590
uint32 Size
decompressed size
Definition: ClientConfigPackets.h:98
WorldPacket _worldPacket
Definition: Packet.h:43
uint32_t uint32
Definition: Define.h:150
uint8 DataType
Definition: ClientConfigPackets.h:99
ObjectGuid PlayerGuid
Definition: ClientConfigPackets.h:96
T read()
Definition: ByteBuffer.h:484
uint32 Time
UnixTime.
Definition: ClientConfigPackets.h:97

Member Data Documentation

ByteBuffer WorldPackets::ClientConfig::UserClientUpdateAccountData::CompressedData
uint8 WorldPackets::ClientConfig::UserClientUpdateAccountData::DataType = 0
See also
enum AccountDataType
ObjectGuid WorldPackets::ClientConfig::UserClientUpdateAccountData::PlayerGuid
uint32 WorldPackets::ClientConfig::UserClientUpdateAccountData::Size = 0

decompressed size

uint32 WorldPackets::ClientConfig::UserClientUpdateAccountData::Time = 0

UnixTime.


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