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

#include <GuildPackets.h>

Public Member Functions

 GuildSetRankPermissions (WorldPacket &&packet)
 
void Read () override
 
- Public Member Functions inherited from WorldPackets::ClientPacket
 ClientPacket (WorldPacket &&packet)
 
 ClientPacket (OpcodeClient expectedOpcode, WorldPacket &&packet)
 
WorldPacket constWrite () overridefinal
 
OpcodeClient 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 RankID = 0
 
int32 RankOrder = 0
 
int32 WithdrawGoldLimit = 0
 
uint32 Flags = 0
 
uint32 OldFlags = 0
 
int32 TabFlags [GUILD_BANK_MAX_TABS]
 
int32 TabWithdrawItemLimit [GUILD_BANK_MAX_TABS]
 
std::string RankName
 

Additional Inherited Members

- Protected Attributes inherited from WorldPackets::Packet
WorldPacket _worldPacket
 

Constructor & Destructor Documentation

WorldPackets::Guild::GuildSetRankPermissions::GuildSetRankPermissions ( WorldPacket &&  packet)
inline
429 : ClientPacket(CMSG_GUILD_SET_RANK_PERMISSIONS, std::move(packet)) { }
Definition: Opcodes.h:344
ClientPacket(WorldPacket &&packet)
Definition: Packet.h:62

Member Function Documentation

void WorldPackets::Guild::GuildSetRankPermissions::Read ( )
overridevirtual

Implements WorldPackets::Packet.

304 {
305  _worldPacket >> RankID;
307  _worldPacket >> Flags;
310 
311  for (uint8 i = 0; i < GUILD_BANK_MAX_TABS; i++)
312  {
313  _worldPacket >> TabFlags[i];
315  }
316 
318  uint32 rankNameLen = _worldPacket.ReadBits(7);
319 
320  RankName = _worldPacket.ReadString(rankNameLen);
321 }
int32 RankOrder
Definition: GuildPackets.h:434
uint32 OldFlags
Definition: GuildPackets.h:437
uint32 ReadBits(int32 bits)
Definition: ByteBuffer.h:204
void ResetBitPos()
Definition: ByteBuffer.h:161
int32 TabFlags[GUILD_BANK_MAX_TABS]
Definition: GuildPackets.h:438
WorldPacket _worldPacket
Definition: Packet.h:43
Definition: Guild.h:44
std::string ReadString(uint32 length)
Definition: ByteBuffer.h:524
uint32_t uint32
Definition: Define.h:150
uint32 Flags
Definition: GuildPackets.h:436
int32 TabWithdrawItemLimit[GUILD_BANK_MAX_TABS]
Definition: GuildPackets.h:439
int32 WithdrawGoldLimit
Definition: GuildPackets.h:435
uint8_t uint8
Definition: Define.h:152
std::string RankName
Definition: GuildPackets.h:440
int32 RankID
Definition: GuildPackets.h:433

Member Data Documentation

uint32 WorldPackets::Guild::GuildSetRankPermissions::Flags = 0
uint32 WorldPackets::Guild::GuildSetRankPermissions::OldFlags = 0
int32 WorldPackets::Guild::GuildSetRankPermissions::RankID = 0
std::string WorldPackets::Guild::GuildSetRankPermissions::RankName
int32 WorldPackets::Guild::GuildSetRankPermissions::RankOrder = 0
int32 WorldPackets::Guild::GuildSetRankPermissions::TabFlags[GUILD_BANK_MAX_TABS]
int32 WorldPackets::Guild::GuildSetRankPermissions::TabWithdrawItemLimit[GUILD_BANK_MAX_TABS]
int32 WorldPackets::Guild::GuildSetRankPermissions::WithdrawGoldLimit = 0

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