TrinityCore
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
CombatLogPackets.cpp File Reference
#include "CombatLogPackets.h"
#include "SpellPackets.h"
+ Include dependency graph for CombatLogPackets.cpp:

Functions

ByteBufferoperator<< (ByteBuffer &buffer, WorldPackets::CombatLog::SpellLogMissDebug const &missDebug)
 
ByteBufferoperator<< (ByteBuffer &buffer, WorldPackets::CombatLog::SpellLogMissEntry const &missEntry)
 
ByteBufferoperator<< (ByteBuffer &buffer, WorldPackets::CombatLog::SpellDispellData const &dispellData)
 

Function Documentation

ByteBuffer& operator<< ( ByteBuffer buffer,
WorldPackets::CombatLog::SpellLogMissDebug const missDebug 
)
207 {
208  buffer << float(missDebug.HitRoll);
209  buffer << float(missDebug.HitRollNeeded);
210  return buffer;
211 }
ByteBuffer& operator<< ( ByteBuffer buffer,
WorldPackets::CombatLog::SpellLogMissEntry const missEntry 
)
214 {
215  buffer << missEntry.Victim;
216  buffer << uint8(missEntry.MissReason);
217  if (buffer.WriteBit(missEntry.Debug.is_initialized()))
218  buffer << *missEntry.Debug;
219 
220  buffer.FlushBits();
221  return buffer;
222 }
void FlushBits()
Definition: ByteBuffer.h:150
bool WriteBit(uint32 bit)
Definition: ByteBuffer.h:170
uint8_t uint8
Definition: g3dmath.h:164

+ Here is the call graph for this function:

ByteBuffer& operator<< ( ByteBuffer buffer,
WorldPackets::CombatLog::SpellDispellData const dispellData 
)
339 {
340  buffer << int32(dispellData.SpellID);
341  buffer.WriteBit(dispellData.Harmful);
342  buffer.WriteBit(dispellData.Rolled.is_initialized());
343  buffer.WriteBit(dispellData.Needed.is_initialized());
344  if (dispellData.Rolled.is_initialized())
345  buffer << int32(*dispellData.Rolled);
346  if (dispellData.Needed.is_initialized())
347  buffer << int32(*dispellData.Needed);
348 
349  buffer.FlushBits();
350 
351  return buffer;
352 }
void FlushBits()
Definition: ByteBuffer.h:150
bool WriteBit(uint32 bit)
Definition: ByteBuffer.h:170
int32_t int32
Definition: g3dmath.h:167

+ Here is the call graph for this function: