All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
WorldPackets::Combat::HighestThreatUpdate Class Referencefinal

#include <CombatPackets.h>

Public Member Functions

 HighestThreatUpdate ()
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 UnitGUID
std::vector< ThreatInfoThreatList
ObjectGuid HighestThreatGUID

Additional Inherited Members

- Protected Attributes inherited from WorldPackets::Packet
WorldPacket _worldPacket

Constructor & Destructor Documentation

WorldPackets::Combat::HighestThreatUpdate::HighestThreatUpdate ( )
ServerPacket(OpcodeServer opcode, size_t initialSize=200, ConnectionType connection=CONNECTION_TYPE_DEFAULT)
Definition: Packet.h:49
Definition: Opcodes.h:1116

Member Function Documentation

WorldPacket const * WorldPackets::Combat::HighestThreatUpdate::Write ( )

Implements WorldPackets::Packet.

68 {
71  _worldPacket << int32(ThreatList.size());
72  for (WorldPackets::Combat::ThreatInfo const& threatInfo : ThreatList)
73  {
74  _worldPacket << threatInfo.UnitGUID;
75  _worldPacket << threatInfo.Threat;
76  }
78  return &_worldPacket;
79 }
Definition: CombatPackets.h:82
std::vector< ThreatInfo > ThreatList
Definition: CombatPackets.h:107
WorldPacket _worldPacket
Definition: Packet.h:43
ObjectGuid HighestThreatGUID
Definition: CombatPackets.h:108
ObjectGuid UnitGUID
Definition: CombatPackets.h:106
int32_t int32
Definition: g3dmath.h:167

+ Here is the caller graph for this function:

Member Data Documentation

ObjectGuid WorldPackets::Combat::HighestThreatUpdate::HighestThreatGUID
std::vector<ThreatInfo> WorldPackets::Combat::HighestThreatUpdate::ThreatList
ObjectGuid WorldPackets::Combat::HighestThreatUpdate::UnitGUID

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