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

#include <PartyPackets.h>

Public Member Functions

 SetRole (WorldPacket &&packet)
 
void Read () override
 
- Public Member Functions inherited from WorldPackets::ClientPacket
 ClientPacket (WorldPacket &&packet)
 
 ClientPacket (OpcodeClient expectedOpcode, WorldPacket &&packet)
 
WorldPacket constWrite () overridefinal
 
OpcodeClient 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
 
ObjectGuid TargetGUID
 
int32 Role = 0
 

Additional Inherited Members

- Protected Attributes inherited from WorldPackets::Packet
WorldPacket _worldPacket
 

Constructor & Destructor Documentation

WorldPackets::Party::SetRole::SetRole ( WorldPacket &&  packet)
inline
227 : ClientPacket(CMSG_SET_ROLE, std::move(packet)) { }
Definition: Opcodes.h:631
ClientPacket(WorldPacket &&packet)
Definition: Packet.h:62

Member Function Documentation

void WorldPackets::Party::SetRole::Read ( )
overridevirtual

Implements WorldPackets::Packet.

174 {
177  _worldPacket >> Role;
178 }
int32 Role
Definition: PartyPackets.h:233
int8 PartyIndex
Definition: PartyPackets.h:231
WorldPacket _worldPacket
Definition: Packet.h:43
ObjectGuid TargetGUID
Definition: PartyPackets.h:232

Member Data Documentation

int8 WorldPackets::Party::SetRole::PartyIndex = 0
int32 WorldPackets::Party::SetRole::Role = 0
ObjectGuid WorldPackets::Party::SetRole::TargetGUID

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