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

#include <GuildPackets.h>

Public Member Functions

 GuildNewsUpdateSticky (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 NewsID = 0
 
ObjectGuid GuildGUID
 
bool Sticky = false
 

Additional Inherited Members

- Protected Attributes inherited from WorldPackets::Packet
WorldPacket _worldPacket
 

Constructor & Destructor Documentation

WorldPackets::Guild::GuildNewsUpdateSticky::GuildNewsUpdateSticky ( WorldPacket &&  packet)
inline
945 : ClientPacket(CMSG_GUILD_NEWS_UPDATE_STICKY, std::move(packet)) { }
Definition: Opcodes.h:331
ClientPacket(WorldPacket &&packet)
Definition: Packet.h:62

Member Function Documentation

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

Implements WorldPackets::Packet.

771 {
773  _worldPacket >> NewsID;
774 
775  NewsID = _worldPacket.ReadBit();
776 }
ObjectGuid GuildGUID
Definition: GuildPackets.h:950
WorldPacket _worldPacket
Definition: Packet.h:43
int32 NewsID
Definition: GuildPackets.h:949
bool ReadBit()
Definition: ByteBuffer.h:186

Member Data Documentation

ObjectGuid WorldPackets::Guild::GuildNewsUpdateSticky::GuildGUID
int32 WorldPackets::Guild::GuildNewsUpdateSticky::NewsID = 0
bool WorldPackets::Guild::GuildNewsUpdateSticky::Sticky = false

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