All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
WorldPackets::EquipmentSet::SaveEquipmentSet Class Referencefinal

#include <EquipmentSetPackets.h>

Public Member Functions

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

EquipmentSetInfo::EquipmentSetData Set

Additional Inherited Members

- Protected Attributes inherited from WorldPackets::Packet
WorldPacket _worldPacket

Constructor & Destructor Documentation

WorldPackets::EquipmentSet::SaveEquipmentSet::SaveEquipmentSet ( WorldPacket &&  packet)
52 : ClientPacket(CMSG_SAVE_EQUIPMENT_SET, std::move(packet)) { }
Definition: Opcodes.h:589
ClientPacket(WorldPacket &&packet)
Definition: Packet.h:62

Member Function Documentation

void WorldPackets::EquipmentSet::SaveEquipmentSet::Read ( )

Implements WorldPackets::Packet.

53 {
54  _worldPacket >> Set.Guid;
55  _worldPacket >> Set.SetID;
56  _worldPacket >> Set.IgnoreMask;
58  for (uint8 i = 0; i < EQUIPMENT_SLOT_END; ++i)
59  _worldPacket >> Set.Pieces[i];
61  uint32 setNameLength = _worldPacket.ReadBits(8);
62  uint32 setIconLength = _worldPacket.ReadBits(9);
64  Set.SetName = _worldPacket.ReadString(setNameLength);
65  Set.SetIcon = _worldPacket.ReadString(setIconLength);
66 }
uint32 ReadBits(int32 bits)
Definition: ByteBuffer.h:204
WorldPacket _worldPacket
Definition: Packet.h:43
std::string ReadString(uint32 length)
Definition: ByteBuffer.h:524
uint32_t uint32
Definition: Define.h:150
uint8_t uint8
Definition: Define.h:152
EquipmentSetInfo::EquipmentSetData Set
Definition: EquipmentSetPackets.h:56

Member Data Documentation

EquipmentSetInfo::EquipmentSetData WorldPackets::EquipmentSet::SaveEquipmentSet::Set

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