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

#include <ItemPackets.h>

Public Member Functions

 SellItem (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
 
ObjectGuid ItemGUID
 
uint32 Amount = 0
 

Additional Inherited Members

- Protected Attributes inherited from WorldPackets::Packet
WorldPacket _worldPacket
 

Constructor & Destructor Documentation

WorldPackets::Item::SellItem::SellItem ( WorldPacket &&  packet)
inline
197 : ClientPacket(CMSG_SELL_ITEM, std::move(packet)) { }
Definition: Opcodes.h:595
ClientPacket(WorldPacket &&packet)
Definition: Packet.h:62

Member Function Documentation

void WorldPackets::Item::SellItem::Read ( )
overridevirtual

Implements WorldPackets::Packet.

144 {
147  _worldPacket >> Amount;
148 }
uint32 Amount
Definition: ItemPackets.h:203
WorldPacket _worldPacket
Definition: Packet.h:43
ObjectGuid ItemGUID
Definition: ItemPackets.h:202
ObjectGuid VendorGUID
Definition: ItemPackets.h:201

Member Data Documentation

uint32 WorldPackets::Item::SellItem::Amount = 0
ObjectGuid WorldPackets::Item::SellItem::ItemGUID
ObjectGuid WorldPackets::Item::SellItem::VendorGUID

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