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

#include <PartyPackets.h>

Public Member Functions

 PartyUpdate ()
 
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 PartyFlags = 0
 
int8 PartyIndex = 0
 
int8 PartyType = 0
 
ObjectGuid PartyGUID
 
ObjectGuid LeaderGUID
 
int32 MyIndex = 0
 
int32 SequenceNum = 0
 
std::vector< GroupPlayerInfosPlayerList
 
Optional< GroupLfgInfosLfgInfos
 
Optional< GroupLootSettingsLootSettings
 
Optional< GroupDifficultySettingsDifficultySettings
 

Additional Inherited Members

- Protected Attributes inherited from WorldPackets::Packet
WorldPacket _worldPacket
 

Constructor & Destructor Documentation

WorldPackets::Party::PartyUpdate::PartyUpdate ( )
inline
ServerPacket(OpcodeServer opcode, size_t initialSize=200, ConnectionType connection=CONNECTION_TYPE_DEFAULT)
Definition: Packet.h:49
Definition: Opcodes.h:1325

Member Function Documentation

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

Implements WorldPackets::Packet.

339 {
343 
348 
350 
351  _worldPacket.WriteBit(LfgInfos.is_initialized());
352  _worldPacket.WriteBit(LootSettings.is_initialized());
353  _worldPacket.WriteBit(DifficultySettings.is_initialized());
354 
356 
357  if (LfgInfos.is_initialized())
359 
360  if (LootSettings.is_initialized())
362 
363  if (DifficultySettings.is_initialized())
365 
366  return &_worldPacket;
367 }
std::vector< GroupPlayerInfos > PlayerList
Definition: PartyPackets.h:545
Optional< GroupDifficultySettings > DifficultySettings
Definition: PartyPackets.h:549
Optional< GroupLootSettings > LootSettings
Definition: PartyPackets.h:548
int8 PartyType
Definition: PartyPackets.h:537
int32 SequenceNum
Definition: PartyPackets.h:543
void FlushBits()
Definition: ByteBuffer.h:150
WorldPacket _worldPacket
Definition: Packet.h:43
bool WriteBit(uint32 bit)
Definition: ByteBuffer.h:170
int8 PartyFlags
Definition: PartyPackets.h:535
int8 PartyIndex
Definition: PartyPackets.h:536
int32 MyIndex
Definition: PartyPackets.h:542
Optional< GroupLfgInfos > LfgInfos
Definition: PartyPackets.h:547
ObjectGuid LeaderGUID
Definition: PartyPackets.h:540
ObjectGuid PartyGUID
Definition: PartyPackets.h:539

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

Member Data Documentation

Optional<GroupDifficultySettings> WorldPackets::Party::PartyUpdate::DifficultySettings
ObjectGuid WorldPackets::Party::PartyUpdate::LeaderGUID
Optional<GroupLfgInfos> WorldPackets::Party::PartyUpdate::LfgInfos
Optional<GroupLootSettings> WorldPackets::Party::PartyUpdate::LootSettings
int32 WorldPackets::Party::PartyUpdate::MyIndex = 0
int8 WorldPackets::Party::PartyUpdate::PartyFlags = 0
ObjectGuid WorldPackets::Party::PartyUpdate::PartyGUID
int8 WorldPackets::Party::PartyUpdate::PartyIndex = 0
int8 WorldPackets::Party::PartyUpdate::PartyType = 0
std::vector<GroupPlayerInfos> WorldPackets::Party::PartyUpdate::PlayerList
int32 WorldPackets::Party::PartyUpdate::SequenceNum = 0

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