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

#include <ItemPackets.h>

Public Member Functions

 BuySucceeded ()
 
WorldPacket constWrite () override
 

Public Attributes

ObjectGuid VendorGUID
 
uint32 Muid = 0u
 
uint32 QuantityBought = 0u
 
int32 NewQuantity = 0
 

Additional Inherited Members

- Private 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
 
- Private 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
 
- Private Attributes inherited from WorldPackets::Packet
WorldPacket _worldPacket
 

Constructor & Destructor Documentation

WorldPackets::Item::BuySucceeded::BuySucceeded ( )
inline
86 : ServerPacket(SMSG_BUY_SUCCEEDED, 16 + 4 + 4 + 4 + 4) { }
ServerPacket(OpcodeServer opcode, size_t initialSize=200, ConnectionType connection=CONNECTION_TYPE_DEFAULT)
Definition: Packet.h:49
Definition: Opcodes.h:842

Member Function Documentation

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

Implements WorldPackets::Packet.

51 {
53  << uint32(Muid)
54  << int32(NewQuantity)
56 
57  return &_worldPacket;
58 }
ObjectGuid VendorGUID
Definition: ItemPackets.h:90
WorldPacket _worldPacket
Definition: Packet.h:43
int32 NewQuantity
Definition: ItemPackets.h:93
uint32 QuantityBought
Definition: ItemPackets.h:92
int32_t int32
Definition: g3dmath.h:167
uint32_t uint32
Definition: g3dmath.h:168
uint32 Muid
Definition: ItemPackets.h:91

Member Data Documentation

uint32 WorldPackets::Item::BuySucceeded::Muid = 0u
int32 WorldPackets::Item::BuySucceeded::NewQuantity = 0
uint32 WorldPackets::Item::BuySucceeded::QuantityBought = 0u
ObjectGuid WorldPackets::Item::BuySucceeded::VendorGUID

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