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

#include <CalendarPackets.h>

Public Member Functions

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

time_t RaidOrigin = time_t(0)
 
time_t ServerTime = time_t(0)
 
time_t ServerNow = time_t(0)
 
std::vector
< CalendarSendCalendarInviteInfo
Invites
 
std::vector
< CalendarSendCalendarRaidLockoutInfo
RaidLockouts
 
std::vector
< CalendarSendCalendarRaidResetInfo
RaidResets
 
std::vector
< CalendarSendCalendarEventInfo
Events
 

Additional Inherited Members

- Protected Attributes inherited from WorldPackets::Packet
WorldPacket _worldPacket
 

Constructor & Destructor Documentation

WorldPackets::Calendar::CalendarSendCalendar::CalendarSendCalendar ( )
inline
ServerPacket(OpcodeServer opcode, size_t initialSize=200, ConnectionType connection=CONNECTION_TYPE_DEFAULT)
Definition: Packet.h:49
Definition: Opcodes.h:861

Member Function Documentation

WorldPacket const * WorldPackets::Calendar::CalendarSendCalendar::Write ( )
overridevirtual

Implements WorldPackets::Packet.

240 {
244  _worldPacket << uint32(Invites.size());
245  _worldPacket << uint32(Events.size());
246  _worldPacket << uint32(RaidLockouts.size());
247  _worldPacket << uint32(RaidResets.size());
248 
249  for (auto const& invite : Invites)
250  _worldPacket << invite;
251 
252  for (auto const& event : Events)
253  _worldPacket << event;
254 
255  for (auto const& lockout : RaidLockouts)
256  _worldPacket << lockout;
257 
258  for (auto const& reset : RaidResets)
259  _worldPacket << reset;
260 
261  return &_worldPacket;
262 }
Events
Definition: alterac_valley.cpp:51
WorldPacket _worldPacket
Definition: Packet.h:43
std::vector< CalendarSendCalendarRaidLockoutInfo > RaidLockouts
Definition: CalendarPackets.h:201
void AppendPackedTime(time_t time)
Definition: ByteBuffer.h:680
time_t ServerNow
Definition: CalendarPackets.h:199
std::vector< CalendarSendCalendarInviteInfo > Invites
Definition: CalendarPackets.h:200
std::vector< CalendarSendCalendarRaidResetInfo > RaidResets
Definition: CalendarPackets.h:202
uint32_t uint32
Definition: g3dmath.h:168
time_t RaidOrigin
Definition: CalendarPackets.h:197
time_t ServerTime
Definition: CalendarPackets.h:198

+ Here is the caller graph for this function:

Member Data Documentation

std::vector<CalendarSendCalendarEventInfo> WorldPackets::Calendar::CalendarSendCalendar::Events
std::vector<CalendarSendCalendarInviteInfo> WorldPackets::Calendar::CalendarSendCalendar::Invites
std::vector<CalendarSendCalendarRaidLockoutInfo> WorldPackets::Calendar::CalendarSendCalendar::RaidLockouts
time_t WorldPackets::Calendar::CalendarSendCalendar::RaidOrigin = time_t(0)
std::vector<CalendarSendCalendarRaidResetInfo> WorldPackets::Calendar::CalendarSendCalendar::RaidResets
time_t WorldPackets::Calendar::CalendarSendCalendar::ServerNow = time_t(0)
time_t WorldPackets::Calendar::CalendarSendCalendar::ServerTime = time_t(0)

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