AzerothCore 3.3.5a
OpenSource WoW Emulator
Loading...
Searching...
No Matches
WorldPackets::Guild::GuildRoster Class Referencefinal

#include "GuildPackets.h"

Inheritance diagram for WorldPackets::Guild::GuildRoster:
WorldPackets::ServerPacket WorldPackets::Packet

Public Member Functions

 GuildRoster ()
 
WorldPacket const * Write () override
 
- Public Member Functions inherited from WorldPackets::ServerPacket
 ServerPacket (OpcodeServer opcode, std::size_t initialSize=200)
 
void Read () final
 
void Clear ()
 
WorldPacket && Move ()
 
void ShrinkToFit ()
 
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
 
virtual WorldPacket const * Write ()=0
 
virtual void Read ()=0
 
WorldPacket const * GetRawPacket () const
 
std::size_t GetSize () const
 

Public Attributes

std::vector< GuildRosterMemberDataMemberData
 
std::vector< GuildRankDataRankData
 
std::string WelcomeText
 
std::string InfoText
 

Additional Inherited Members

- Protected Attributes inherited from WorldPackets::Packet
WorldPacket _worldPacket
 

Detailed Description

Constructor & Destructor Documentation

◆ GuildRoster()

WorldPackets::Guild::GuildRoster::GuildRoster ( )
inline
133: ServerPacket(SMSG_GUILD_ROSTER, 4 + 4 + 4 + 4) { }
@ SMSG_GUILD_ROSTER
Definition: Opcodes.h:168
ServerPacket(OpcodeServer opcode, std::size_t initialSize=200)
Definition: Packet.cpp:25

Member Function Documentation

◆ Write()

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

Implements WorldPackets::Packet.

61{
65 _worldPacket << uint32(RankData.size());
66
67 for (GuildRankData const& rank : RankData)
68 _worldPacket << rank;
69
70 for (GuildRosterMemberData const& member : MemberData)
71 _worldPacket << member;
72
73 return &_worldPacket;
74}
std::uint32_t uint32
Definition: Define.h:107
WorldPacket _worldPacket
Definition: Packet.h:42
std::string WelcomeText
Definition: GuildPackets.h:139
std::vector< GuildRankData > RankData
Definition: GuildPackets.h:138
std::vector< GuildRosterMemberData > MemberData
Definition: GuildPackets.h:137
std::string InfoText
Definition: GuildPackets.h:140

Referenced by Guild::HandleRoster().

Member Data Documentation

◆ InfoText

std::string WorldPackets::Guild::GuildRoster::InfoText

Referenced by Guild::HandleRoster().

◆ MemberData

std::vector<GuildRosterMemberData> WorldPackets::Guild::GuildRoster::MemberData

Referenced by Guild::HandleRoster().

◆ RankData

std::vector<GuildRankData> WorldPackets::Guild::GuildRoster::RankData

Referenced by Guild::HandleRoster().

◆ WelcomeText

std::string WorldPackets::Guild::GuildRoster::WelcomeText

Referenced by Guild::HandleRoster().