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

#include <PartyPackets.h>

Public Member Functions

 PartyUninvite (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
 
std::string Reason
 

Additional Inherited Members

- Protected Attributes inherited from WorldPackets::Packet
WorldPacket _worldPacket
 

Constructor & Destructor Documentation

WorldPackets::Party::PartyUninvite::PartyUninvite ( WorldPacket &&  packet)
inline
107 : ClientPacket(CMSG_PARTY_UNINVITE, std::move(packet)) { }
Definition: Opcodes.h:486
ClientPacket(WorldPacket &&packet)
Definition: Packet.h:62

Member Function Documentation

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

Implements WorldPackets::Packet.

126 {
129 
130  uint8 reasonLen = _worldPacket.ReadBits(8);
131  Reason = _worldPacket.ReadString(reasonLen);
132 }
std::string Reason
Definition: PartyPackets.h:113
uint32 ReadBits(int32 bits)
Definition: ByteBuffer.h:204
WorldPacket _worldPacket
Definition: Packet.h:43
std::string ReadString(uint32 length)
Definition: ByteBuffer.h:524
int8 PartyIndex
Definition: PartyPackets.h:111
uint8_t uint8
Definition: Define.h:152
ObjectGuid TargetGUID
Definition: PartyPackets.h:112

Member Data Documentation

int8 WorldPackets::Party::PartyUninvite::PartyIndex = 0
std::string WorldPackets::Party::PartyUninvite::Reason
ObjectGuid WorldPackets::Party::PartyUninvite::TargetGUID

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