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

#include <SpellPackets.h>

Public Member Functions

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

std::vector< SpellCooldownStructSpellCooldowns
 
ObjectGuid Caster
 
uint8 Flags = 0
 

Additional Inherited Members

- Protected Attributes inherited from WorldPackets::Packet
WorldPacket _worldPacket
 

Constructor & Destructor Documentation

WorldPackets::Spells::SpellCooldown::SpellCooldown ( )
inline
528 : ServerPacket(SMSG_SPELL_COOLDOWN, 4 + 16 + 1) { }
ServerPacket(OpcodeServer opcode, size_t initialSize=200, ConnectionType connection=CONNECTION_TYPE_DEFAULT)
Definition: Packet.h:49
Definition: Opcodes.h:1530

Member Function Documentation

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

Implements WorldPackets::Packet.

551 {
552  _worldPacket << Caster;
555  for (SpellCooldownStruct const& cooldown : SpellCooldowns)
556  _worldPacket << cooldown;
557 
558  return &_worldPacket;
559 }
std::vector< SpellCooldownStruct > SpellCooldowns
Definition: SpellPackets.h:532
ObjectGuid Caster
Definition: SpellPackets.h:533
WorldPacket _worldPacket
Definition: Packet.h:43
uint8_t uint8
Definition: g3dmath.h:164
uint32_t uint32
Definition: g3dmath.h:168
uint8 Flags
Definition: SpellPackets.h:534

+ Here is the caller graph for this function:

Member Data Documentation

ObjectGuid WorldPackets::Spells::SpellCooldown::Caster
uint8 WorldPackets::Spells::SpellCooldown::Flags = 0
std::vector<SpellCooldownStruct> WorldPackets::Spells::SpellCooldown::SpellCooldowns

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