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

#include <ItemPackets.h>

Public Member Functions

 BuyFailed ()
WorldPacket constWrite () override

Public Attributes

ObjectGuid VendorGUID
uint32 Muid = 0u

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::BuyFailed::BuyFailed ( )
99 : ServerPacket(SMSG_BUY_FAILED, 16 + 4 + 1) { }
ServerPacket(OpcodeServer opcode, size_t initialSize=200, ConnectionType connection=CONNECTION_TYPE_DEFAULT)
Definition: Packet.h:49
Definition: Opcodes.h:841

Member Function Documentation

WorldPacket const * WorldPackets::Item::BuyFailed::Write ( )

Implements WorldPackets::Packet.

61 {
63  << uint32(Muid)
64  << uint8(Reason);
66  return &_worldPacket;
67 }
ObjectGuid VendorGUID
Definition: ItemPackets.h:103
WorldPacket _worldPacket
Definition: Packet.h:43
BuyResult Reason
Definition: ItemPackets.h:105
uint8_t uint8
Definition: g3dmath.h:164
uint32_t uint32
Definition: g3dmath.h:168
uint32 Muid
Definition: ItemPackets.h:104

Member Data Documentation

uint32 WorldPackets::Item::BuyFailed::Muid = 0u
BuyResult WorldPackets::Item::BuyFailed::Reason = BUY_ERR_CANT_FIND_ITEM
ObjectGuid WorldPackets::Item::BuyFailed::VendorGUID

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