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

#include "GuildPackets.h"

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

Classes

struct  GuildRankTabPermissions
 

Public Member Functions

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

int8 NumTabs = 0
 
int32 WithdrawGoldLimit = 0
 
int32 Flags = 0
 
uint32 RankID = 0
 
std::array< GuildRankTabPermissions, GUILD_BANK_MAX_TABSTab
 

Additional Inherited Members

- Protected Attributes inherited from WorldPackets::Packet
WorldPacket _worldPacket
 

Detailed Description

Constructor & Destructor Documentation

◆ GuildPermissionsQueryResults()

WorldPackets::Guild::GuildPermissionsQueryResults::GuildPermissionsQueryResults ( )
inline
@ MSG_GUILD_PERMISSIONS
Definition: Opcodes.h:1051
ServerPacket(OpcodeServer opcode, std::size_t initialSize=200)
Definition: Packet.cpp:25

Member Function Documentation

◆ Write()

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

Implements WorldPackets::Packet.

165{
170
171 for (GuildRankTabPermissions const& tab : Tab)
172 {
173 _worldPacket << int32(tab.Flags);
174 _worldPacket << int32(tab.WithdrawItemLimit);
175 }
176
177 return &_worldPacket;
178}
std::int32_t int32
Definition: Define.h:103
std::uint32_t uint32
Definition: Define.h:107
std::int8_t int8
Definition: Define.h:105
WorldPacket _worldPacket
Definition: Packet.h:42
int32 Flags
Definition: GuildPackets.h:264
uint32 RankID
Definition: GuildPackets.h:265
int32 WithdrawGoldLimit
Definition: GuildPackets.h:263
int8 NumTabs
Definition: GuildPackets.h:262
std::array< GuildRankTabPermissions, GUILD_BANK_MAX_TABS > Tab
Definition: GuildPackets.h:266

Referenced by Guild::SendPermissions().

Member Data Documentation

◆ Flags

int32 WorldPackets::Guild::GuildPermissionsQueryResults::Flags = 0

Referenced by Guild::SendPermissions().

◆ NumTabs

int8 WorldPackets::Guild::GuildPermissionsQueryResults::NumTabs = 0

Referenced by Guild::SendPermissions().

◆ RankID

uint32 WorldPackets::Guild::GuildPermissionsQueryResults::RankID = 0

Referenced by Guild::SendPermissions().

◆ Tab

std::array<GuildRankTabPermissions, GUILD_BANK_MAX_TABS> WorldPackets::Guild::GuildPermissionsQueryResults::Tab

Referenced by Guild::SendPermissions().

◆ WithdrawGoldLimit

int32 WorldPackets::Guild::GuildPermissionsQueryResults::WithdrawGoldLimit = 0

Referenced by Guild::SendPermissions().