All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
WorldPackets::Spells::UseItem Class Referencefinal

#include <SpellPackets.h>

Public Member Functions

 UseItem (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 PackSlot = 0
uint8 Slot = 0
ObjectGuid CastItem
SpellCastRequest Cast

Additional Inherited Members

- Protected Attributes inherited from WorldPackets::Packet
WorldPacket _worldPacket

Constructor & Destructor Documentation

WorldPackets::Spells::UseItem::UseItem ( WorldPacket &&  packet)
285 : ClientPacket(CMSG_USE_ITEM, std::move(packet)) { }
ClientPacket(WorldPacket &&packet)
Definition: Packet.h:62
Definition: Opcodes.h:710

Member Function Documentation

void WorldPackets::Spells::UseItem::Read ( )

Implements WorldPackets::Packet.

253 {
255  _worldPacket >> Slot;
257  _worldPacket >> Cast;
258 }
SpellCastRequest Cast
Definition: SpellPackets.h:292
WorldPacket _worldPacket
Definition: Packet.h:43
uint8 Slot
Definition: SpellPackets.h:290
uint8 PackSlot
Definition: SpellPackets.h:289
ObjectGuid CastItem
Definition: SpellPackets.h:291

Member Data Documentation

SpellCastRequest WorldPackets::Spells::UseItem::Cast
ObjectGuid WorldPackets::Spells::UseItem::CastItem
uint8 WorldPackets::Spells::UseItem::PackSlot = 0
uint8 WorldPackets::Spells::UseItem::Slot = 0

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