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

#include <PartyPackets.h>

Public Member Functions

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

int8 PartyIndex = 0
 
std::map< uint8, ObjectGuidTargetIcons
 

Additional Inherited Members

- Protected Attributes inherited from WorldPackets::Packet
WorldPacket _worldPacket
 

Constructor & Destructor Documentation

WorldPackets::Party::SendRaidTargetUpdateAll::SendRaidTargetUpdateAll ( )
inline
#define TARGET_ICONS_COUNT
Definition: Group.h:46
ServerPacket(OpcodeServer opcode, size_t initialSize=200, ConnectionType connection=CONNECTION_TYPE_DEFAULT)
Definition: Packet.h:49
Definition: Opcodes.h:1483

Member Function Documentation

WorldPacket const * WorldPackets::Party::SendRaidTargetUpdateAll::Write ( )
overridevirtual

Implements WorldPackets::Packet.

238 {
240 
241  _worldPacket << int32(TargetIcons.size());
242 
243  std::map<uint8, ObjectGuid>::const_iterator itr;
244  for (itr = TargetIcons.begin(); itr != TargetIcons.end(); itr++)
245  {
246  _worldPacket << itr->second;
247  _worldPacket << itr->first;
248  }
249 
250  return &_worldPacket;
251 }
WorldPacket _worldPacket
Definition: Packet.h:43
std::map< uint8, ObjectGuid > TargetIcons
Definition: PartyPackets.h:330
int32_t int32
Definition: g3dmath.h:167
int8 PartyIndex
Definition: PartyPackets.h:329

+ Here is the caller graph for this function:

Member Data Documentation

int8 WorldPackets::Party::SendRaidTargetUpdateAll::PartyIndex = 0
std::map<uint8, ObjectGuid> WorldPackets::Party::SendRaidTargetUpdateAll::TargetIcons

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