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

#include "GuildPackets.h"

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

Public Member Functions

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

uint32 GuildId = 0
 
GuildInfo Info
 

Additional Inherited Members

- Protected Attributes inherited from WorldPackets::Packet
WorldPacket _worldPacket
 

Detailed Description

Constructor & Destructor Documentation

◆ QueryGuildInfoResponse()

WorldPackets::Guild::QueryGuildInfoResponse::QueryGuildInfoResponse ( )
@ SMSG_GUILD_QUERY_RESPONSE
Definition: Opcodes.h:115
ServerPacket(OpcodeServer opcode, std::size_t initialSize=200)
Definition: Packet.cpp:25

Member Function Documentation

◆ Write()

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

Implements WorldPackets::Packet.

29{
32 for (std::string const& rankName : Info.Ranks)
33 _worldPacket << rankName;
34
41
42 return &_worldPacket;
43}
std::uint32_t uint32
Definition: Define.h:107
WorldPacket _worldPacket
Definition: Packet.h:42
uint32 EmblemColor
Definition: GuildPackets.h:49
std::string GuildName
Definition: GuildPackets.h:43
uint32 EmblemStyle
Definition: GuildPackets.h:48
uint32 BackgroundColor
Definition: GuildPackets.h:52
uint32 BorderColor
Definition: GuildPackets.h:51
uint32 BorderStyle
Definition: GuildPackets.h:50
uint32 RankCount
Definition: GuildPackets.h:46
std::array< std::string, GUILD_RANKS_MAX_COUNT > Ranks
Definition: GuildPackets.h:45
uint32 GuildId
Definition: GuildPackets.h:62
GuildInfo Info
Definition: GuildPackets.h:63

Referenced by Guild::HandleQuery().

Member Data Documentation

◆ GuildId

uint32 WorldPackets::Guild::QueryGuildInfoResponse::GuildId = 0

Referenced by Guild::HandleQuery().

◆ Info

GuildInfo WorldPackets::Guild::QueryGuildInfoResponse::Info

Referenced by Guild::HandleQuery().