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

#include <ItemPackets.h>

Public Member Functions

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

uint8 Result = 0
 
ObjectGuid ItemGUID
 
Optional< ItemPurchaseContentsContents
 

Additional Inherited Members

- Protected Attributes inherited from WorldPackets::Packet
WorldPacket _worldPacket
 

Constructor & Destructor Documentation

WorldPackets::Item::ItemPurchaseRefundResult::ItemPurchaseRefundResult ( )
inline
163 : ServerPacket(SMSG_ITEM_PURCHASE_REFUND_RESULT, 1 + 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:1151

Member Function Documentation

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

Implements WorldPackets::Packet.

118 {
121  _worldPacket.WriteBit(Contents.is_initialized());
123  if (Contents)
125 
126  return &_worldPacket;
127 }
uint8 Result
Definition: ItemPackets.h:167
Optional< ItemPurchaseContents > Contents
Definition: ItemPackets.h:169
void FlushBits()
Definition: ByteBuffer.h:150
WorldPacket _worldPacket
Definition: Packet.h:43
bool WriteBit(uint32 bit)
Definition: ByteBuffer.h:170
ObjectGuid ItemGUID
Definition: ItemPackets.h:168
uint8_t uint8
Definition: g3dmath.h:164

Member Data Documentation

Optional<ItemPurchaseContents> WorldPackets::Item::ItemPurchaseRefundResult::Contents
ObjectGuid WorldPackets::Item::ItemPurchaseRefundResult::ItemGUID
uint8 WorldPackets::Item::ItemPurchaseRefundResult::Result = 0

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