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

#include <GuildPackets.h>

Public Member Functions

 GuildEventLogQueryResults ()
 
WorldPacket constWrite () override
 
- Public Member Functions inherited from WorldPackets::ServerPacket
 ServerPacket (OpcodeServer opcode, size_t initialSize=200, ConnectionType connection=CONNECTION_TYPE_DEFAULT)
 
void Read () overridefinal
 
void Clear ()
 
WorldPacket && Move ()
 
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
 
WorldPacket constGetRawPacket () const
 
size_t GetSize () const
 
ConnectionType GetConnection () const
 

Public Attributes

std::vector< GuildEventEntryEntry
 

Additional Inherited Members

- Protected Attributes inherited from WorldPackets::Packet
WorldPacket _worldPacket
 

Constructor & Destructor Documentation

WorldPackets::Guild::GuildEventLogQueryResults::GuildEventLogQueryResults ( )
inline
ServerPacket(OpcodeServer opcode, size_t initialSize=200, ConnectionType connection=CONNECTION_TYPE_DEFAULT)
Definition: Packet.h:49
Definition: Opcodes.h:1080

Member Function Documentation

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

Implements WorldPackets::Packet.

246 {
247  _worldPacket.reserve(4 + Entry.size() * 38);
248 
249  _worldPacket << uint32(Entry.size());
250 
251  for (GuildEventEntry const& entry : Entry)
252  {
253  _worldPacket << entry.PlayerGUID;
254  _worldPacket << entry.OtherGUID;
255  _worldPacket << entry.TransactionType;
256  _worldPacket << entry.RankID;
257  _worldPacket << entry.TransactionDate;
258  }
259 
260  return &_worldPacket;
261 }
WorldPacket _worldPacket
Definition: Packet.h:43
Entry
Definition: boss_headless_horseman.cpp:50
void reserve(size_t ressize)
Definition: ByteBuffer.h:597
uint32_t uint32
Definition: g3dmath.h:168

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

Member Data Documentation

std::vector<GuildEventEntry> WorldPackets::Guild::GuildEventLogQueryResults::Entry

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