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

#include <CombatLogPackets.h>

Public Member Functions

 EnvironmentalDamageLog ()
 
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 Victim
 
uint8 Type = 0
 
int32 Amount = 0
 
int32 Resisted = 0
 
int32 Absorbed = 0
 
- 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::EnvironmentalDamageLog::EnvironmentalDamageLog ( )
inline
Definition: Opcodes.h:975
CombatLogServerPacket(OpcodeServer opcode, size_t initialSize=200, ConnectionType connection=CONNECTION_TYPE_DEFAULT)
Definition: CombatLogPackets.h:32

Member Function Documentation

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

Implements WorldPackets::Packet.

43 {
44  *this << Victim;
45  *this << uint8(Type);
46  *this << int32(Amount);
47  *this << int32(Resisted);
48  *this << int32(Absorbed);
50  FlushBits();
51  WriteLogData();
52 
53  return &_worldPacket;
54 }
int32 Absorbed
Definition: CombatLogPackets.h:110
ByteBuffer & WriteLogData()
Definition: CombatLogPackets.h:73
void WriteLogDataBit()
Definition: CombatLogPackets.h:48
WorldPacket _worldPacket
Definition: Packet.h:43
int32 Amount
Definition: CombatLogPackets.h:108
int32 Resisted
Definition: CombatLogPackets.h:109
void FlushBits()
Definition: CombatLogPackets.h:54
uint8_t uint8
Definition: g3dmath.h:164
int32_t int32
Definition: g3dmath.h:167
Type
Type of JSON value.
Definition: rapidjson.h:642
ObjectGuid Victim
Definition: CombatLogPackets.h:106

Member Data Documentation

int32 WorldPackets::CombatLog::EnvironmentalDamageLog::Absorbed = 0
int32 WorldPackets::CombatLog::EnvironmentalDamageLog::Amount = 0
int32 WorldPackets::CombatLog::EnvironmentalDamageLog::Resisted = 0
uint8 WorldPackets::CombatLog::EnvironmentalDamageLog::Type = 0
See also
enum EnviromentalDamage
ObjectGuid WorldPackets::CombatLog::EnvironmentalDamageLog::Victim

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