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

#include <GuildPackets.h>

Classes

struct  GuildRankTabPermissions
 

Public Member Functions

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

int32 NumTabs = 0
 
int32 WithdrawGoldLimit = 0
 
int32 Flags = 0
 
uint32 RankID = 0
 
std::vector
< GuildRankTabPermissions
Tab
 

Additional Inherited Members

- Protected Attributes inherited from WorldPackets::Packet
WorldPacket _worldPacket
 

Constructor & Destructor Documentation

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

Member Function Documentation

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

Implements WorldPackets::Packet.

287 {
288  _worldPacket << RankID;
290  _worldPacket << Flags;
292  _worldPacket << uint32(Tab.size());
293 
294  for (GuildRankTabPermissions const& tab : Tab)
295  {
296  _worldPacket << tab.Flags;
297  _worldPacket << tab.WithdrawItemLimit;
298  }
299 
300  return &_worldPacket;
301 }
int32 WithdrawGoldLimit
Definition: GuildPackets.h:420
WorldPacket _worldPacket
Definition: Packet.h:43
uint32 RankID
Definition: GuildPackets.h:422
int32 NumTabs
Definition: GuildPackets.h:419
int32 Flags
Definition: GuildPackets.h:421
std::vector< GuildRankTabPermissions > Tab
Definition: GuildPackets.h:423
uint32_t uint32
Definition: g3dmath.h:168

+ Here is the caller graph for this function:

Member Data Documentation

int32 WorldPackets::Guild::GuildPermissionsQueryResults::Flags = 0
int32 WorldPackets::Guild::GuildPermissionsQueryResults::NumTabs = 0
uint32 WorldPackets::Guild::GuildPermissionsQueryResults::RankID = 0
std::vector<GuildRankTabPermissions> WorldPackets::Guild::GuildPermissionsQueryResults::Tab
int32 WorldPackets::Guild::GuildPermissionsQueryResults::WithdrawGoldLimit = 0

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