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

#include "GuildPackets.h"

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

Public Member Functions

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

uint8 Type = 0
 
boost::container::static_vector< std::string_view, 3 > Params
 
ObjectGuid Guid
 

Additional Inherited Members

- Protected Attributes inherited from WorldPackets::Packet
WorldPacket _worldPacket
 

Detailed Description

Constructor & Destructor Documentation

◆ GuildEvent()

WorldPackets::Guild::GuildEvent::GuildEvent ( )
inline
@ SMSG_GUILD_EVENT
Definition: Opcodes.h:176
ServerPacket(OpcodeServer opcode, std::size_t initialSize=200)
Definition: Packet.cpp:25

Member Function Documentation

◆ Write()

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

Implements WorldPackets::Packet.

123{
125 _worldPacket << uint8(Params.size());
126 for (std::string_view param : Params)
127 _worldPacket << param;
128
129 switch (Type)
130 {
131 case GE_JOINED:
132 case GE_LEFT:
133 case GE_SIGNED_ON:
134 case GE_SIGNED_OFF:
136 break;
137 default:
138 break;
139 }
140
141 return &_worldPacket;
142}
std::uint8_t uint8
Definition: Define.h:109
@ GE_LEFT
Definition: Guild.h:154
@ GE_JOINED
Definition: Guild.h:153
@ GE_SIGNED_OFF
Definition: Guild.h:163
@ GE_SIGNED_ON
Definition: Guild.h:162
WorldPacket _worldPacket
Definition: Packet.h:42
ObjectGuid Guid
Definition: GuildPackets.h:211
boost::container::static_vector< std::string_view, 3 > Params
Definition: GuildPackets.h:210
uint8 Type
Definition: GuildPackets.h:209

References GE_JOINED, GE_LEFT, GE_SIGNED_OFF, and GE_SIGNED_ON.

Referenced by Guild::_BroadcastEvent(), and Guild::SendLoginInfo().

Member Data Documentation

◆ Guid

ObjectGuid WorldPackets::Guild::GuildEvent::Guid

◆ Params

boost::container::static_vector<std::string_view, 3> WorldPackets::Guild::GuildEvent::Params

Referenced by Guild::SendLoginInfo().

◆ Type

uint8 WorldPackets::Guild::GuildEvent::Type = 0