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

#include <ItemPackets.h>

Public Types

enum  DisplayType { DISPLAY_TYPE_ENCOUNTER_LOOT = 1, DISPLAY_TYPE_NORMAL = 2, DISPLAY_TYPE_HIDDEN = 3 }
 

Public Member Functions

 ItemPushResult ()
 
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 PlayerGUID
 
uint8 Slot = 0
 
int32 SlotInBag = 0
 
ItemInstance Item
 
uint32 QuestLogItemID = 0
 
int32 Quantity = 0
 
int32 QuantityInInventory = 0
 
uint32 DungeonEncounterID = 0
 
int32 BattlePetBreedID = 0
 
uint32 BattlePetBreedQuality = 0
 
int32 BattlePetSpeciesID = 0
 
int32 BattlePetLevel = 0
 
ObjectGuid ItemGUID
 
bool Pushed = false
 
DisplayType DisplayText = DISPLAY_TYPE_HIDDEN
 
bool Created = false
 
bool IsBonusRoll = false
 
bool IsEncounterLoot = false
 

Additional Inherited Members

- Protected Attributes inherited from WorldPackets::Packet
WorldPacket _worldPacket
 

Member Enumeration Documentation

Enumerator
DISPLAY_TYPE_ENCOUNTER_LOOT 
DISPLAY_TYPE_NORMAL 
DISPLAY_TYPE_HIDDEN 

Constructor & Destructor Documentation

WorldPackets::Item::ItemPushResult::ItemPushResult ( )
inline
368 : ServerPacket(SMSG_ITEM_PUSH_RESULT, 16 + 1 + 4 + 4 + 4 + 4 + 4 + 4 + 4 + 4 + 16 + 1 + 1 + 1 + 1) { }
Definition: Opcodes.h:1152
ServerPacket(OpcodeServer opcode, size_t initialSize=200, ConnectionType connection=CONNECTION_TYPE_DEFAULT)
Definition: Packet.h:49

Member Function Documentation

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

Implements WorldPackets::Packet.

416 {
418 
419  _worldPacket << uint8(Slot);
421 
422  _worldPacket << Item;
423 
432 
434 
440 
442 
443  return &_worldPacket;
444 }
bool Created
Definition: ItemPackets.h:388
uint32 DungeonEncounterID
Definition: ItemPackets.h:380
int32 BattlePetBreedID
Definition: ItemPackets.h:381
int32 BattlePetLevel
Definition: ItemPackets.h:384
int32 SlotInBag
Definition: ItemPackets.h:374
void FlushBits()
Definition: ByteBuffer.h:150
WorldPacket _worldPacket
Definition: Packet.h:43
bool WriteBit(uint32 bit)
Definition: ByteBuffer.h:170
uint8 Slot
Definition: ItemPackets.h:373
uint32 BattlePetBreedQuality
Definition: ItemPackets.h:382
int32 QuantityInInventory
Definition: ItemPackets.h:379
ObjectGuid PlayerGUID
Definition: ItemPackets.h:372
bool Pushed
Definition: ItemPackets.h:386
uint32 QuestLogItemID
Definition: ItemPackets.h:376
uint8_t uint8
Definition: g3dmath.h:164
ItemInstance Item
Definition: ItemPackets.h:375
int32 Quantity
Definition: ItemPackets.h:378
int32_t int32
Definition: g3dmath.h:167
DisplayType DisplayText
Definition: ItemPackets.h:387
ObjectGuid ItemGUID
Definition: ItemPackets.h:385
uint32_t uint32
Definition: g3dmath.h:168
bool IsBonusRoll
Definition: ItemPackets.h:389
bool IsEncounterLoot
Definition: ItemPackets.h:390
void WriteBits(T value, int32 bits)
Definition: ByteBuffer.h:198
int32 BattlePetSpeciesID
Definition: ItemPackets.h:383

Member Data Documentation

int32 WorldPackets::Item::ItemPushResult::BattlePetBreedID = 0
uint32 WorldPackets::Item::ItemPushResult::BattlePetBreedQuality = 0
int32 WorldPackets::Item::ItemPushResult::BattlePetLevel = 0
int32 WorldPackets::Item::ItemPushResult::BattlePetSpeciesID = 0
bool WorldPackets::Item::ItemPushResult::Created = false
DisplayType WorldPackets::Item::ItemPushResult::DisplayText = DISPLAY_TYPE_HIDDEN
uint32 WorldPackets::Item::ItemPushResult::DungeonEncounterID = 0
bool WorldPackets::Item::ItemPushResult::IsBonusRoll = false
bool WorldPackets::Item::ItemPushResult::IsEncounterLoot = false
ItemInstance WorldPackets::Item::ItemPushResult::Item
ObjectGuid WorldPackets::Item::ItemPushResult::ItemGUID
ObjectGuid WorldPackets::Item::ItemPushResult::PlayerGUID
bool WorldPackets::Item::ItemPushResult::Pushed = false
int32 WorldPackets::Item::ItemPushResult::Quantity = 0
int32 WorldPackets::Item::ItemPushResult::QuantityInInventory = 0
uint32 WorldPackets::Item::ItemPushResult::QuestLogItemID = 0
uint8 WorldPackets::Item::ItemPushResult::Slot = 0
int32 WorldPackets::Item::ItemPushResult::SlotInBag = 0

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