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

#include <ItemPackets.h>

Public Member Functions

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

int8 BagResult = EQUIP_ERR_OK
 
uint8 ContainerBSlot = 0
 
ObjectGuid SrcContainer
 
ObjectGuid DstContainer
 
int32 SrcSlot = 0
 
int32 LimitCategory = 0
 
int32 Level = 0
 
ObjectGuid Item [2]
 

Additional Inherited Members

- Protected Attributes inherited from WorldPackets::Packet
WorldPacket _worldPacket
 

Constructor & Destructor Documentation

WorldPackets::Item::InventoryChangeFailure::InventoryChangeFailure ( )
inline
ServerPacket(OpcodeServer opcode, size_t initialSize=200, ConnectionType connection=CONNECTION_TYPE_DEFAULT)
Definition: Packet.h:49
Definition: Opcodes.h:1145

Member Function Documentation

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

Implements WorldPackets::Packet.

322 {
324  _worldPacket << Item[0];
325  _worldPacket << Item[1];
326  _worldPacket << uint8(ContainerBSlot); // bag type subclass, used with EQUIP_ERR_EVENT_AUTOEQUIP_BIND_CONFIRM and EQUIP_ERR_WRONG_BAG_TYPE_2
327 
328  switch (BagResult)
329  {
333  break;
338  break;
343  break;
344  default:
345  break;
346  }
347 
348  return &_worldPacket;
349 }
Definition: Item.h:49
ObjectGuid SrcContainer
Definition: ItemPackets.h:248
int8_t int8
Definition: g3dmath.h:163
uint8 ContainerBSlot
Definition: ItemPackets.h:247
WorldPacket _worldPacket
Definition: Packet.h:43
Definition: Item.h:135
int32 Level
Definition: ItemPackets.h:252
Definition: Item.h:259
int8 BagResult
Definition: ItemPackets.h:246
int32 LimitCategory
Definition: ItemPackets.h:251
int32 SrcSlot
Definition: ItemPackets.h:250
uint8_t uint8
Definition: g3dmath.h:164
int32_t int32
Definition: g3dmath.h:167
ObjectGuid DstContainer
Definition: ItemPackets.h:249

Member Data Documentation

int8 WorldPackets::Item::InventoryChangeFailure::BagResult = EQUIP_ERR_OK
uint8 WorldPackets::Item::InventoryChangeFailure::ContainerBSlot = 0
See also
enum InventoryResult
ObjectGuid WorldPackets::Item::InventoryChangeFailure::DstContainer
ObjectGuid WorldPackets::Item::InventoryChangeFailure::Item[2]
int32 WorldPackets::Item::InventoryChangeFailure::Level = 0
int32 WorldPackets::Item::InventoryChangeFailure::LimitCategory = 0
ObjectGuid WorldPackets::Item::InventoryChangeFailure::SrcContainer
int32 WorldPackets::Item::InventoryChangeFailure::SrcSlot = 0

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