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

#include <SpellPackets.h>

Public Member Functions

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

bool IsPet = false
 
uint32 Category = 0
 
uint32 NextRecoveryTime = 0
 
uint8 ConsumedCharges = 0
 

Additional Inherited Members

- Protected Attributes inherited from WorldPackets::Packet
WorldPacket _worldPacket
 

Constructor & Destructor Documentation

WorldPackets::Spells::SetSpellCharges::SetSpellCharges ( )
inline
583 : ServerPacket(SMSG_SET_SPELL_CHARGES, 1 + 4 + 4) { }
ServerPacket(OpcodeServer opcode, size_t initialSize=200, ConnectionType connection=CONNECTION_TYPE_DEFAULT)
Definition: Packet.h:49
Definition: Opcodes.h:1515

Member Function Documentation

WorldPacket const * WorldPackets::Spells::SetSpellCharges::Write ( )
overridevirtual

Implements WorldPackets::Packet.

607 {
613 
614  return &_worldPacket;
615 }
bool IsPet
Definition: SpellPackets.h:587
void FlushBits()
Definition: ByteBuffer.h:150
WorldPacket _worldPacket
Definition: Packet.h:43
bool WriteBit(uint32 bit)
Definition: ByteBuffer.h:170
uint8 ConsumedCharges
Definition: SpellPackets.h:590
uint8_t uint8
Definition: g3dmath.h:164
uint32 NextRecoveryTime
Definition: SpellPackets.h:589
int32_t int32
Definition: g3dmath.h:167
uint32_t uint32
Definition: g3dmath.h:168
uint32 Category
Definition: SpellPackets.h:588

+ Here is the caller graph for this function:

Member Data Documentation

uint32 WorldPackets::Spells::SetSpellCharges::Category = 0
uint8 WorldPackets::Spells::SetSpellCharges::ConsumedCharges = 0
bool WorldPackets::Spells::SetSpellCharges::IsPet = false
uint32 WorldPackets::Spells::SetSpellCharges::NextRecoveryTime = 0

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