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

#include <GuildPackets.h>

Public Member Functions

 GuildInvite ()
 
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 GuildGUID
 
ObjectGuid OldGuildGUID
 
int32 Level = 0
 
uint32 EmblemColor = 0
 
uint32 EmblemStyle = 0
 
uint32 BorderStyle = 0
 
uint32 BorderColor = 0
 
uint32 Background = 0
 
uint32 GuildVirtualRealmAddress = 0
 
uint32 OldGuildVirtualRealmAddress = 0
 
uint32 InviterVirtualRealmAddress = 0
 
std::string InviterName
 
std::string GuildName
 
std::string OldGuildName
 

Additional Inherited Members

- Protected Attributes inherited from WorldPackets::Packet
WorldPacket _worldPacket
 

Constructor & Destructor Documentation

WorldPackets::Guild::GuildInvite::GuildInvite ( )
inline
ServerPacket(OpcodeServer opcode, size_t initialSize=200, ConnectionType connection=CONNECTION_TYPE_DEFAULT)
Definition: Packet.h:49
Definition: Opcodes.h:1093

Member Function Documentation

WorldPacket const * WorldPackets::Guild::GuildInvite::Write ( )
overridevirtual

Implements WorldPackets::Packet.

127 {
128  _worldPacket.WriteBits(InviterName.length(), 6);
129  _worldPacket.WriteBits(GuildName.length(), 7);
130  _worldPacket.WriteBits(OldGuildName.length(), 7);
132 
143  _worldPacket << Level;
144 
148 
149  return &_worldPacket;
150 }
ObjectGuid OldGuildGUID
Definition: GuildPackets.h:214
ObjectGuid GuildGUID
Definition: GuildPackets.h:213
std::string GuildName
Definition: GuildPackets.h:225
std::string InviterName
Definition: GuildPackets.h:224
void FlushBits()
Definition: ByteBuffer.h:150
uint32 EmblemStyle
Definition: GuildPackets.h:217
WorldPacket _worldPacket
Definition: Packet.h:43
uint32 BorderColor
Definition: GuildPackets.h:219
uint32 InviterVirtualRealmAddress
Definition: GuildPackets.h:223
void WriteString(std::string const &str)
Definition: ByteBuffer.h:540
uint32 OldGuildVirtualRealmAddress
Definition: GuildPackets.h:222
uint32 GuildVirtualRealmAddress
Definition: GuildPackets.h:221
uint32 EmblemColor
Definition: GuildPackets.h:216
uint32 Background
Definition: GuildPackets.h:220
std::string OldGuildName
Definition: GuildPackets.h:226
int32 Level
Definition: GuildPackets.h:215
uint32 BorderStyle
Definition: GuildPackets.h:218
void WriteBits(T value, int32 bits)
Definition: ByteBuffer.h:198

+ Here is the call graph for this function:

Member Data Documentation

uint32 WorldPackets::Guild::GuildInvite::Background = 0
uint32 WorldPackets::Guild::GuildInvite::BorderColor = 0
uint32 WorldPackets::Guild::GuildInvite::BorderStyle = 0
uint32 WorldPackets::Guild::GuildInvite::EmblemColor = 0
uint32 WorldPackets::Guild::GuildInvite::EmblemStyle = 0
ObjectGuid WorldPackets::Guild::GuildInvite::GuildGUID
std::string WorldPackets::Guild::GuildInvite::GuildName
uint32 WorldPackets::Guild::GuildInvite::GuildVirtualRealmAddress = 0
std::string WorldPackets::Guild::GuildInvite::InviterName
uint32 WorldPackets::Guild::GuildInvite::InviterVirtualRealmAddress = 0
int32 WorldPackets::Guild::GuildInvite::Level = 0
ObjectGuid WorldPackets::Guild::GuildInvite::OldGuildGUID
std::string WorldPackets::Guild::GuildInvite::OldGuildName
uint32 WorldPackets::Guild::GuildInvite::OldGuildVirtualRealmAddress = 0

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