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

#include <CombatLogPackets.h>

Public Member Functions

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

ObjectGuid Caster
 
ObjectGuid Target
 
int32 SpellID = 0
 
Optional< float > Rolled
 
Optional< float > Needed
 

Additional Inherited Members

- Protected Attributes inherited from WorldPackets::Packet
WorldPacket _worldPacket
 

Constructor & Destructor Documentation

WorldPackets::CombatLog::ProcResist::ProcResist ( )
inline
280 : ServerPacket(SMSG_PROC_RESIST, 16 + 4 + 4 + 4 + 16) { }
ServerPacket(OpcodeServer opcode, size_t initialSize=200, ConnectionType connection=CONNECTION_TYPE_DEFAULT)
Definition: Packet.h:49
Definition: Opcodes.h:1385

Member Function Documentation

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

Implements WorldPackets::Packet.

236 {
237  _worldPacket << Caster;
238  _worldPacket << Target;
240  _worldPacket.WriteBit(Rolled.is_initialized());
241  _worldPacket.WriteBit(Needed.is_initialized());
243 
244  if (Rolled)
245  _worldPacket << *Rolled;
246 
247  if (Needed)
248  _worldPacket << *Needed;
249 
250  return &_worldPacket;
251 }
int32 SpellID
Definition: CombatLogPackets.h:286
void FlushBits()
Definition: ByteBuffer.h:150
WorldPacket _worldPacket
Definition: Packet.h:43
bool WriteBit(uint32 bit)
Definition: ByteBuffer.h:170
ObjectGuid Caster
Definition: CombatLogPackets.h:284
Optional< float > Needed
Definition: CombatLogPackets.h:288
Optional< float > Rolled
Definition: CombatLogPackets.h:287
int32_t int32
Definition: g3dmath.h:167
ObjectGuid Target
Definition: CombatLogPackets.h:285

+ Here is the caller graph for this function:

Member Data Documentation

ObjectGuid WorldPackets::CombatLog::ProcResist::Caster
Optional<float> WorldPackets::CombatLog::ProcResist::Needed
Optional<float> WorldPackets::CombatLog::ProcResist::Rolled
int32 WorldPackets::CombatLog::ProcResist::SpellID = 0
ObjectGuid WorldPackets::CombatLog::ProcResist::Target

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