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

#include <TradePackets.h>

Public Member Functions

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

::TradeStatus Status = TRADE_STATUS_INITIATED
 
uint8 TradeSlot = 0
 
ObjectGuid PartnerAccount
 
ObjectGuid Partner
 
int32 CurrencyType = 0
 
int32 CurrencyQuantity = 0
 
bool FailureForYou = false
 
int32 BagResult = 0
 
uint32 ItemID = 0
 
uint32 ID = 0
 
bool PartnerIsSameBnetAccount = false
 

Additional Inherited Members

- Protected Attributes inherited from WorldPackets::Packet
WorldPacket _worldPacket
 

Constructor & Destructor Documentation

WorldPackets::Trade::TradeStatus::TradeStatus ( )
inline
133 : ServerPacket(SMSG_TRADE_STATUS, 1 + 1 + 16 + 4 + 4 + 1 + 4 + 4 + 4 + 1) { }
Definition: Opcodes.h:1579
ServerPacket(OpcodeServer opcode, size_t initialSize=200, ConnectionType connection=CONNECTION_TYPE_DEFAULT)
Definition: Packet.h:49

Member Function Documentation

WorldPacket const * WorldPackets::Trade::TradeStatus::Write ( )
overridevirtual

Implements WorldPackets::Packet.

51 {
54  switch (Status)
55  {
60  break;
63  break;
67  break;
71  break;
76  break;
77  default:
79  break;
80  }
81 
82  return &_worldPacket;
83 }
Definition: SharedDefines.h:4650
Definition: SharedDefines.h:4671
uint8 TradeSlot
Definition: TradePackets.h:138
ObjectGuid Partner
Definition: TradePackets.h:140
void FlushBits()
Definition: ByteBuffer.h:150
uint32 ItemID
Definition: TradePackets.h:145
WorldPacket _worldPacket
Definition: Packet.h:43
bool WriteBit(uint32 bit)
Definition: ByteBuffer.h:170
Definition: SharedDefines.h:4660
Definition: SharedDefines.h:4673
int32 CurrencyQuantity
Definition: TradePackets.h:142
int32 CurrencyType
Definition: TradePackets.h:141
ObjectGuid PartnerAccount
Definition: TradePackets.h:139
Definition: SharedDefines.h:4670
uint8_t uint8
Definition: g3dmath.h:164
int32_t int32
Definition: g3dmath.h:167
::TradeStatus Status
Definition: TradePackets.h:137
bool FailureForYou
Definition: TradePackets.h:143
uint32_t uint32
Definition: g3dmath.h:168
Definition: SharedDefines.h:4672
int32 BagResult
Definition: TradePackets.h:144
Definition: SharedDefines.h:4649
bool PartnerIsSameBnetAccount
Definition: TradePackets.h:147
void WriteBits(T value, int32 bits)
Definition: ByteBuffer.h:198
uint32 ID
Definition: TradePackets.h:146

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

Member Data Documentation

int32 WorldPackets::Trade::TradeStatus::BagResult = 0
int32 WorldPackets::Trade::TradeStatus::CurrencyQuantity = 0
int32 WorldPackets::Trade::TradeStatus::CurrencyType = 0
bool WorldPackets::Trade::TradeStatus::FailureForYou = false
uint32 WorldPackets::Trade::TradeStatus::ID = 0
uint32 WorldPackets::Trade::TradeStatus::ItemID = 0
ObjectGuid WorldPackets::Trade::TradeStatus::Partner
ObjectGuid WorldPackets::Trade::TradeStatus::PartnerAccount
bool WorldPackets::Trade::TradeStatus::PartnerIsSameBnetAccount = false
::TradeStatus WorldPackets::Trade::TradeStatus::Status = TRADE_STATUS_INITIATED
uint8 WorldPackets::Trade::TradeStatus::TradeSlot = 0

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