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

#include <ItemPackets.h>

Public Member Functions

 SplitItem (WorldPacket &&packet)
 
void Read () override
 
- Public Member Functions inherited from WorldPackets::ClientPacket
 ClientPacket (WorldPacket &&packet)
 
 ClientPacket (OpcodeClient expectedOpcode, WorldPacket &&packet)
 
WorldPacket constWrite () overridefinal
 
OpcodeClient 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 ToSlot = 0
 
uint8 ToPackSlot = 0
 
uint8 FromPackSlot = 0
 
int32 Quantity = 0
 
InvUpdate Inv
 
uint8 FromSlot = 0
 

Additional Inherited Members

- Protected Attributes inherited from WorldPackets::Packet
WorldPacket _worldPacket
 

Constructor & Destructor Documentation

WorldPackets::Item::SplitItem::SplitItem ( WorldPacket &&  packet)
inline
259 : ClientPacket(CMSG_SPLIT_ITEM, std::move(packet)) { }
Definition: Opcodes.h:655
ClientPacket(WorldPacket &&packet)
Definition: Packet.h:62

Member Function Documentation

void WorldPackets::Item::SplitItem::Read ( )
overridevirtual

Implements WorldPackets::Packet.

352 {
353  _worldPacket >> Inv
354  >> FromPackSlot
355  >> FromSlot
356  >> ToPackSlot
357  >> ToSlot
358  >> Quantity;
359 }
InvUpdate Inv
Definition: ItemPackets.h:267
uint8 FromSlot
Definition: ItemPackets.h:268
int32 Quantity
Definition: ItemPackets.h:266
WorldPacket _worldPacket
Definition: Packet.h:43
uint8 ToSlot
Definition: ItemPackets.h:263
uint8 ToPackSlot
Definition: ItemPackets.h:264
uint8 FromPackSlot
Definition: ItemPackets.h:265

Member Data Documentation

uint8 WorldPackets::Item::SplitItem::FromPackSlot = 0
uint8 WorldPackets::Item::SplitItem::FromSlot = 0
InvUpdate WorldPackets::Item::SplitItem::Inv
int32 WorldPackets::Item::SplitItem::Quantity = 0
uint8 WorldPackets::Item::SplitItem::ToPackSlot = 0
uint8 WorldPackets::Item::SplitItem::ToSlot = 0

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