AzerothCore 3.3.5a
OpenSource WoW Emulator
Loading...
Searching...
No Matches
WorldPackets::CombatLog::EnvironmentalDamageLog Class Referencefinal

#include "CombatLogPackets.h"

Inheritance diagram for WorldPackets::CombatLog::EnvironmentalDamageLog:
WorldPackets::ServerPacket WorldPackets::Packet

Public Member Functions

 EnvironmentalDamageLog ()
 
WorldPacket const * Write () override
 
- Public Member Functions inherited from WorldPackets::ServerPacket
 ServerPacket (OpcodeServer opcode, std::size_t initialSize=200)
 
void Read () final
 
void Clear ()
 
WorldPacket && Move ()
 
void ShrinkToFit ()
 
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
 
virtual WorldPacket const * Write ()=0
 
virtual void Read ()=0
 
WorldPacket const * GetRawPacket () const
 
std::size_t GetSize () const
 

Public Attributes

ObjectGuid Victim
 
EnviromentalDamage Type = DAMAGE_EXHAUSTED
 
uint32 Amount = 0
 
uint32 Resisted = 0
 
uint32 Absorbed = 0
 

Additional Inherited Members

- Protected Attributes inherited from WorldPackets::Packet
WorldPacket _worldPacket
 

Detailed Description

Constructor & Destructor Documentation

◆ EnvironmentalDamageLog()

WorldPackets::CombatLog::EnvironmentalDamageLog::EnvironmentalDamageLog ( )
inline
@ SMSG_ENVIRONMENTAL_DAMAGE_LOG
Definition: Opcodes.h:538
ServerPacket(OpcodeServer opcode, std::size_t initialSize=200)
Definition: Packet.cpp:25

Member Function Documentation

◆ Write()

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

Implements WorldPackets::Packet.

21{
27
28 return &_worldPacket;
29}
std::uint8_t uint8
Definition: Define.h:109
std::uint32_t uint32
Definition: Define.h:107
WorldPacket _worldPacket
Definition: Packet.h:42
ObjectGuid Victim
Definition: CombatLogPackets.h:35
uint32 Amount
Definition: CombatLogPackets.h:37
uint32 Absorbed
Definition: CombatLogPackets.h:39
EnviromentalDamage Type
Definition: CombatLogPackets.h:36
uint32 Resisted
Definition: CombatLogPackets.h:38

References WorldPackets::Packet::_worldPacket, Absorbed, Amount, Resisted, Type, and Victim.

Referenced by Player::EnvironmentalDamage().

Member Data Documentation

◆ Absorbed

uint32 WorldPackets::CombatLog::EnvironmentalDamageLog::Absorbed = 0

◆ Amount

uint32 WorldPackets::CombatLog::EnvironmentalDamageLog::Amount = 0

◆ Resisted

uint32 WorldPackets::CombatLog::EnvironmentalDamageLog::Resisted = 0

◆ Type

EnviromentalDamage WorldPackets::CombatLog::EnvironmentalDamageLog::Type = DAMAGE_EXHAUSTED

◆ Victim

ObjectGuid WorldPackets::CombatLog::EnvironmentalDamageLog::Victim