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

#include <ItemPackets.h>

Public Member Functions

 SwapInvItem (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

InvUpdate Inv
 
uint8 Slot1 = 0
 
uint8 Slot2 = 0
 Source Slot. More...
 

Additional Inherited Members

- Protected Attributes inherited from WorldPackets::Packet
WorldPacket _worldPacket
 

Constructor & Destructor Documentation

WorldPackets::Item::SwapInvItem::SwapInvItem ( WorldPacket &&  packet)
inline
274 : ClientPacket(CMSG_SWAP_INV_ITEM, std::move(packet)) { }
Definition: Opcodes.h:665
ClientPacket(WorldPacket &&packet)
Definition: Packet.h:62

Member Function Documentation

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

Implements WorldPackets::Packet.

362 {
363  _worldPacket >> Inv
364  >> Slot2
365  >> Slot1;
366 }
uint8 Slot1
Definition: ItemPackets.h:279
WorldPacket _worldPacket
Definition: Packet.h:43
uint8 Slot2
Source Slot.
Definition: ItemPackets.h:280
InvUpdate Inv
Definition: ItemPackets.h:278

Member Data Documentation

InvUpdate WorldPackets::Item::SwapInvItem::Inv
uint8 WorldPackets::Item::SwapInvItem::Slot1 = 0
uint8 WorldPackets::Item::SwapInvItem::Slot2 = 0

Source Slot.


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