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

#include <EquipmentSetPackets.h>


struct  EquipmentSetItem

Public Member Functions

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

WorldPackets::Item::InvUpdate Inv
EquipmentSetItem Items [EQUIPMENT_SLOT_END]

Additional Inherited Members

- Protected Attributes inherited from WorldPackets::Packet
WorldPacket _worldPacket

Constructor & Destructor Documentation

WorldPackets::EquipmentSet::UseEquipmentSet::UseEquipmentSet ( WorldPacket &&  packet)
72 : ClientPacket(CMSG_USE_EQUIPMENT_SET, std::move(packet)) { }
Definition: Opcodes.h:709
ClientPacket(WorldPacket &&packet)
Definition: Packet.h:62

Member Function Documentation

void WorldPackets::EquipmentSet::UseEquipmentSet::Read ( )

Implements WorldPackets::Packet.

74 {
75  _worldPacket >> Inv;
77  for (uint8 i = 0; i < EQUIPMENT_SLOT_END; ++i)
78  {
79  _worldPacket >> Items[i].Item;
81  _worldPacket >> Items[i].Slot;
82  }
83 }
WorldPackets::Item::InvUpdate Inv
Definition: EquipmentSetPackets.h:83
uint8 ContainerSlot
Definition: EquipmentSetPackets.h:79
WorldPacket _worldPacket
Definition: Packet.h:43
ObjectGuid Item
Definition: EquipmentSetPackets.h:78
uint8 Slot
Definition: EquipmentSetPackets.h:80
uint8_t uint8
Definition: Define.h:152
EquipmentSetItem Items[EQUIPMENT_SLOT_END]
Definition: EquipmentSetPackets.h:84

Member Data Documentation

WorldPackets::Item::InvUpdate WorldPackets::EquipmentSet::UseEquipmentSet::Inv
EquipmentSetItem WorldPackets::EquipmentSet::UseEquipmentSet::Items[EQUIPMENT_SLOT_END]

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