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

#include <ItemPackets.h>

Public Member Functions

 SetItemPurchaseData ()
 
WorldPacket constWrite () override
 
- Public Member Functions inherited from WorldPackets::ServerPacket
 ServerPacket (OpcodeServer opcode, size_t initialSize=200, ConnectionType connection=CONNECTION_TYPE_DEFAULT)
 
void Read () overridefinal
 
void Clear ()
 
WorldPacket && Move ()
 
OpcodeServer 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

uint32 PurchaseTime = 0
 
uint32 Flags = 0
 
ItemPurchaseContents Contents
 
ObjectGuid ItemGUID
 

Additional Inherited Members

- Protected Attributes inherited from WorldPackets::Packet
WorldPacket _worldPacket
 

Constructor & Destructor Documentation

WorldPackets::Item::SetItemPurchaseData::SetItemPurchaseData ( )
inline
140 : ServerPacket(SMSG_SET_ITEM_PURCHASE_DATA, 4 + 4 + 4 + 5 * (4 + 4) + 5 * (4 + 4) + 16) { }
ServerPacket(OpcodeServer opcode, size_t initialSize=200, ConnectionType connection=CONNECTION_TYPE_DEFAULT)
Definition: Packet.h:49
Definition: Opcodes.h:1505

Member Function Documentation

WorldPacket const * WorldPackets::Item::SetItemPurchaseData::Write ( )
overridevirtual

Implements WorldPackets::Packet.

103 {
106  _worldPacket << Flags;
108 
109  return &_worldPacket;
110 }
WorldPacket _worldPacket
Definition: Packet.h:43
uint32 Flags
Definition: ItemPackets.h:145
uint32 PurchaseTime
Definition: ItemPackets.h:144
ItemPurchaseContents Contents
Definition: ItemPackets.h:146
ObjectGuid ItemGUID
Definition: ItemPackets.h:147

Member Data Documentation

ItemPurchaseContents WorldPackets::Item::SetItemPurchaseData::Contents
uint32 WorldPackets::Item::SetItemPurchaseData::Flags = 0
ObjectGuid WorldPackets::Item::SetItemPurchaseData::ItemGUID
uint32 WorldPackets::Item::SetItemPurchaseData::PurchaseTime = 0

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