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

#include <ItemPackets.h>

Public Member Functions

 BuyItem (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 VendorGUID
ItemInstance Item
uint32 Muid = 0u
uint32 Slot = 0u
ItemVendorType ItemType = ITEM_VENDOR_TYPE_NONE
int32 Quantity = 0
ObjectGuid ContainerGUID

Additional Inherited Members

- Protected Attributes inherited from WorldPackets::Packet
WorldPacket _worldPacket

Constructor & Destructor Documentation

WorldPackets::Item::BuyItem::BuyItem ( WorldPacket &&  packet)
70 : ClientPacket(CMSG_BUY_ITEM, std::move(packet)) { }
Definition: Opcodes.h:122
ClientPacket(WorldPacket &&packet)
Definition: Packet.h:62

Member Function Documentation

void WorldPackets::Item::BuyItem::Read ( )

Implements WorldPackets::Packet.

39 {
41  >> ContainerGUID
42  >> Item
43  >> Quantity
44  >> Muid
45  >> Slot;
47  ItemType = static_cast<ItemVendorType>(_worldPacket.ReadBits(2));
48 }
int32 Quantity
Definition: ItemPackets.h:79
uint32 ReadBits(int32 bits)
Definition: ByteBuffer.h:204
ObjectGuid ContainerGUID
Definition: ItemPackets.h:80
WorldPacket _worldPacket
Definition: Packet.h:43
ItemVendorType ItemType
Definition: ItemPackets.h:78
Definition: ItemTemplate.h:289
uint32 Slot
Definition: ItemPackets.h:77
Definition: Item.h:259
ObjectGuid VendorGUID
Definition: ItemPackets.h:74
uint32 Muid
Definition: ItemPackets.h:76

Member Data Documentation

ObjectGuid WorldPackets::Item::BuyItem::ContainerGUID
ItemInstance WorldPackets::Item::BuyItem::Item
ItemVendorType WorldPackets::Item::BuyItem::ItemType = ITEM_VENDOR_TYPE_NONE
uint32 WorldPackets::Item::BuyItem::Muid = 0u
int32 WorldPackets::Item::BuyItem::Quantity = 0
uint32 WorldPackets::Item::BuyItem::Slot = 0u
ObjectGuid WorldPackets::Item::BuyItem::VendorGUID

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