TrinityCore
WorldPackets::Spells::SetSpellCharges Class Referencefinal

#include <SpellPackets.h>

Public Member Functions

 SetSpellCharges ()
 
WorldPacket const * Write () override
 
- Public Member Functions inherited from WorldPackets::ServerPacket
 ServerPacket (OpcodeServer opcode, size_t initialSize=200, ConnectionType connection=CONNECTION_TYPE_DEFAULT)
 
void Read () override final
 
void Clear ()
 
WorldPacket && Move ()
 
void ShrinkToFit ()
 
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 const * GetRawPacket () const
 
size_t GetSize () const
 
ConnectionType GetConnection () const
 

Public Attributes

bool IsPet = false
 
uint32 Category = 0
 
uint32 NextRecoveryTime = 0
 
uint8 ConsumedCharges = 0
 
float ChargeModRate = 1.0f
 

Additional Inherited Members

- Protected Attributes inherited from WorldPackets::Packet
WorldPacket _worldPacket
 

Constructor & Destructor Documentation

◆ SetSpellCharges()

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

Member Function Documentation

◆ Write()

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

Implements WorldPackets::Packet.

694 {
698  _worldPacket << float(ChargeModRate);
701 
702  return &_worldPacket;
703 }
float ChargeModRate
Definition: SpellPackets.h:670
bool IsPet
Definition: SpellPackets.h:666
void FlushBits()
Definition: ByteBuffer.h:155
WorldPacket _worldPacket
Definition: Packet.h:43
bool WriteBit(bool bit)
Definition: ByteBuffer.h:175
int32_t int32
Definition: Define.h:139
uint32_t uint32
Definition: Define.h:143
uint8 ConsumedCharges
Definition: SpellPackets.h:669
uint32 NextRecoveryTime
Definition: SpellPackets.h:668
uint8_t uint8
Definition: Define.h:145
uint32 Category
Definition: SpellPackets.h:667
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

Member Data Documentation

◆ Category

uint32 WorldPackets::Spells::SetSpellCharges::Category = 0

◆ ChargeModRate

float WorldPackets::Spells::SetSpellCharges::ChargeModRate = 1.0f

◆ ConsumedCharges

uint8 WorldPackets::Spells::SetSpellCharges::ConsumedCharges = 0

◆ IsPet

bool WorldPackets::Spells::SetSpellCharges::IsPet = false

◆ NextRecoveryTime

uint32 WorldPackets::Spells::SetSpellCharges::NextRecoveryTime = 0

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