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

#include <GuildPackets.h>

Public Member Functions

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

std::vector
< GuildRosterMemberData
MemberData
 
std::string WelcomeText
 
std::string InfoText
 
uint32 CreateDate = 0
 
int32 NumAccounts = 0
 
int32 GuildFlags = 0
 

Additional Inherited Members

- Protected Attributes inherited from WorldPackets::Packet
WorldPacket _worldPacket
 

Constructor & Destructor Documentation

WorldPackets::Guild::GuildRoster::GuildRoster ( )
inline
126 : ServerPacket(SMSG_GUILD_ROSTER, 4 + 4 + 4 + 4) { }
ServerPacket(OpcodeServer opcode, size_t initialSize=200, ConnectionType connection=CONNECTION_TYPE_DEFAULT)
Definition: Packet.h:49
Definition: Opcodes.h:1112

Member Function Documentation

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

Implements WorldPackets::Packet.

67 {
71  _worldPacket << uint32(MemberData.size());
72 
73  for (GuildRosterMemberData const& member : MemberData)
74  _worldPacket << member;
75 
76  _worldPacket.WriteBits(WelcomeText.length(), 10);
77  _worldPacket.WriteBits(InfoText.length(), 10);
79 
82 
83  return &_worldPacket;
84 }
std::string InfoText
Definition: GuildPackets.h:132
std::string WelcomeText
Definition: GuildPackets.h:131
int32 GuildFlags
Definition: GuildPackets.h:135
void FlushBits()
Definition: ByteBuffer.h:150
WorldPacket _worldPacket
Definition: Packet.h:43
int32 NumAccounts
Definition: GuildPackets.h:134
void WriteString(std::string const &str)
Definition: ByteBuffer.h:540
std::vector< GuildRosterMemberData > MemberData
Definition: GuildPackets.h:130
void AppendPackedTime(time_t time)
Definition: ByteBuffer.h:680
uint32_t uint32
Definition: g3dmath.h:168
uint32 CreateDate
Definition: GuildPackets.h:133
void WriteBits(T value, int32 bits)
Definition: ByteBuffer.h:198

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

Member Data Documentation

uint32 WorldPackets::Guild::GuildRoster::CreateDate = 0
int32 WorldPackets::Guild::GuildRoster::GuildFlags = 0
std::string WorldPackets::Guild::GuildRoster::InfoText
std::vector<GuildRosterMemberData> WorldPackets::Guild::GuildRoster::MemberData
int32 WorldPackets::Guild::GuildRoster::NumAccounts = 0
std::string WorldPackets::Guild::GuildRoster::WelcomeText

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