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

#include <LootPackets.h>

Public Member Functions

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

std::vector< LootRequestLoot

Additional Inherited Members

- Protected Attributes inherited from WorldPackets::Packet
WorldPacket _worldPacket

Constructor & Destructor Documentation

WorldPackets::Loot::LootItem::LootItem ( WorldPacket &&  packet)
89 : ClientPacket(CMSG_LOOT_ITEM, std::move(packet)) { }
Definition: Opcodes.h:392
ClientPacket(WorldPacket &&packet)
Definition: Packet.h:62

Member Function Documentation

void LootItem::Read ( )

Implements WorldPackets::Packet.

68 {
69  uint32 Count;
72  Loot.resize(Count);
73  for (uint32 i = 0; i < Count; ++i)
74  {
75  _worldPacket >> Loot[i].Object;
76  _worldPacket >> Loot[i].LootListID;
77  }
78 }
WorldPacket _worldPacket
Definition: Packet.h:43
Definition: LootMgr.h:314
uint32_t uint32
Definition: Define.h:150

Member Data Documentation

std::vector<LootRequest> WorldPackets::Loot::LootItem::Loot

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