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

#include <CombatLogPackets.h>

Classes

struct  PeriodicalAuraLogEffectDebugInfo
 
struct  SpellLogEffect
 

Public Member Functions

 SpellPeriodicAuraLog ()
 
WorldPacket constWrite () override
 
- Public Member Functions inherited from WorldPackets::CombatLog::CombatLogServerPacket
 CombatLogServerPacket (OpcodeServer opcode, size_t initialSize=200, ConnectionType connection=CONNECTION_TYPE_DEFAULT)
 
WorldPacket constGetFullLogPacket () const
 
WorldPacket constGetBasicLogPacket () const
 
- 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

ObjectGuid TargetGUID
 
ObjectGuid CasterGUID
 
int32 SpellID = 0
 
std::vector< SpellLogEffectEffects
 
- Public Attributes inherited from WorldPackets::CombatLog::CombatLogServerPacket
Spells::SpellCastLogData LogData
 

Additional Inherited Members

- Protected Member Functions inherited from WorldPackets::CombatLog::CombatLogServerPacket
template<typename T >
void operator<< (T const &val)
 
void WriteLogDataBit ()
 
void FlushBits ()
 
bool WriteBit (bool bit)
 
void WriteBits (uint32 value, uint32 bitCount)
 
ByteBufferWriteLogData ()
 
- Protected Attributes inherited from WorldPackets::CombatLog::CombatLogServerPacket
WorldPacket _fullLogPacket
 
- Protected Attributes inherited from WorldPackets::Packet
WorldPacket _worldPacket
 

Constructor & Destructor Documentation

WorldPackets::CombatLog::SpellPeriodicAuraLog::SpellPeriodicAuraLog ( )
inline
178 : CombatLogServerPacket(SMSG_SPELL_PERIODIC_AURA_LOG, 16 + 16 + 4 + 4 + 1) { }
Definition: Opcodes.h:1546
CombatLogServerPacket(OpcodeServer opcode, size_t initialSize=200, ConnectionType connection=CONNECTION_TYPE_DEFAULT)
Definition: CombatLogPackets.h:32

Member Function Documentation

WorldPacket const * WorldPackets::CombatLog::SpellPeriodicAuraLog::Write ( )
overridevirtual

Implements WorldPackets::Packet.

138 {
139  *this << TargetGUID;
140  *this << CasterGUID;
141  *this << SpellID;
142  *this << uint32(Effects.size());
143 
144  for (SpellLogEffect const& effect : Effects)
145  {
146  *this << effect.Effect;
147  *this << int32(effect.Amount);
148  *this << int32(effect.OverHealOrKill);
149  *this << int32(effect.SchoolMaskOrPower);
150  *this << int32(effect.AbsorbedOrAmplitude);
151  *this << int32(effect.Resisted);
152  WriteBit(effect.Crit);
153  WriteBit(effect.Multistrike);
154 
155  if (WriteBit(effect.DebugInfo.is_initialized()))
156  {
157  *this << float(effect.DebugInfo->CritRollMade);
158  *this << float(effect.DebugInfo->CritRollNeeded);
159  }
160 
161  FlushBits();
162  }
163 
164  WriteLogDataBit();
165  FlushBits();
166  WriteLogData();
167 
168  return &_worldPacket;
169 }
ByteBuffer & WriteLogData()
Definition: CombatLogPackets.h:73
void WriteLogDataBit()
Definition: CombatLogPackets.h:48
std::vector< SpellLogEffect > Effects
Definition: CombatLogPackets.h:185
WorldPacket _worldPacket
Definition: Packet.h:43
ObjectGuid CasterGUID
Definition: CombatLogPackets.h:183
void FlushBits()
Definition: CombatLogPackets.h:54
bool WriteBit(bool bit)
Definition: CombatLogPackets.h:60
int32_t int32
Definition: g3dmath.h:167
int32 SpellID
Definition: CombatLogPackets.h:184
uint32_t uint32
Definition: g3dmath.h:168
ObjectGuid TargetGUID
Definition: CombatLogPackets.h:182

Member Data Documentation

ObjectGuid WorldPackets::CombatLog::SpellPeriodicAuraLog::CasterGUID
std::vector<SpellLogEffect> WorldPackets::CombatLog::SpellPeriodicAuraLog::Effects
int32 WorldPackets::CombatLog::SpellPeriodicAuraLog::SpellID = 0
ObjectGuid WorldPackets::CombatLog::SpellPeriodicAuraLog::TargetGUID

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