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

#include <ItemPackets.h>

Public Member Functions

 SellResponse ()
 
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

ObjectGuid VendorGUID
 
ObjectGuid ItemGUID
 
SellResult Reason = SELL_ERR_UNK
 

Additional Inherited Members

- Protected Attributes inherited from WorldPackets::Packet
WorldPacket _worldPacket
 

Constructor & Destructor Documentation

WorldPackets::Item::SellResponse::SellResponse ( )
inline
349 : ServerPacket(SMSG_SELL_RESPONSE, 16 + 16 + 1) { }
ServerPacket(OpcodeServer opcode, size_t initialSize=200, ConnectionType connection=CONNECTION_TYPE_DEFAULT)
Definition: Packet.h:49
Definition: Opcodes.h:1480

Member Function Documentation

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

Implements WorldPackets::Packet.

407 {
409  << ItemGUID
410  << uint8(Reason);
411 
412  return &_worldPacket;
413 }
ObjectGuid VendorGUID
Definition: ItemPackets.h:353
WorldPacket _worldPacket
Definition: Packet.h:43
ObjectGuid ItemGUID
Definition: ItemPackets.h:354
SellResult Reason
Definition: ItemPackets.h:355
uint8_t uint8
Definition: g3dmath.h:164

Member Data Documentation

ObjectGuid WorldPackets::Item::SellResponse::ItemGUID
SellResult WorldPackets::Item::SellResponse::Reason = SELL_ERR_UNK
ObjectGuid WorldPackets::Item::SellResponse::VendorGUID

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