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

#include <CalendarPackets.h>

Public Member Functions

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

ObjectGuid OwnerGuid
 
ObjectGuid EventGuildID
 
uint64 EventID = 0
 
time_t Date = time_t(0)
 
time_t LockDate = time_t(0)
 
uint32 Flags = 0
 
int32 TextureID = 0
 
uint8 GetEventType = 0
 
uint8 EventType = 0
 
std::string Description
 
std::string EventName
 
std::vector
< CalendarEventInviteInfo
Invites
 

Additional Inherited Members

- Protected Attributes inherited from WorldPackets::Packet
WorldPacket _worldPacket
 

Constructor & Destructor Documentation

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

Member Function Documentation

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

Implements WorldPackets::Packet.

265 {
275 
276  _worldPacket << uint32(Invites.size());
277  for (auto const& invite : Invites)
278  _worldPacket << invite;
279 
280  _worldPacket.WriteBits(EventName.size(), 8);
281  _worldPacket.WriteBits(Description.size(), 11);
283 
286 
287  return &_worldPacket;
288 }
uint8 EventType
Definition: CalendarPackets.h:233
uint32 Flags
Definition: CalendarPackets.h:230
std::vector< CalendarEventInviteInfo > Invites
Definition: CalendarPackets.h:236
void FlushBits()
Definition: ByteBuffer.h:150
uint64_t uint64
Definition: g3dmath.h:170
WorldPacket _worldPacket
Definition: Packet.h:43
ObjectGuid OwnerGuid
Definition: CalendarPackets.h:225
uint64 EventID
Definition: CalendarPackets.h:227
void WriteString(std::string const &str)
Definition: ByteBuffer.h:540
uint8 GetEventType
Definition: CalendarPackets.h:232
std::string Description
Definition: CalendarPackets.h:234
time_t Date
Definition: CalendarPackets.h:228
void AppendPackedTime(time_t time)
Definition: ByteBuffer.h:680
ObjectGuid EventGuildID
Definition: CalendarPackets.h:226
uint8_t uint8
Definition: g3dmath.h:164
time_t LockDate
Definition: CalendarPackets.h:229
int32_t int32
Definition: g3dmath.h:167
std::string EventName
Definition: CalendarPackets.h:235
uint32_t uint32
Definition: g3dmath.h:168
int32 TextureID
Definition: CalendarPackets.h:231
void WriteBits(T value, int32 bits)
Definition: ByteBuffer.h:198

+ Here is the caller graph for this function:

Member Data Documentation

time_t WorldPackets::Calendar::CalendarSendEvent::Date = time_t(0)
std::string WorldPackets::Calendar::CalendarSendEvent::Description
ObjectGuid WorldPackets::Calendar::CalendarSendEvent::EventGuildID
uint64 WorldPackets::Calendar::CalendarSendEvent::EventID = 0
std::string WorldPackets::Calendar::CalendarSendEvent::EventName
uint8 WorldPackets::Calendar::CalendarSendEvent::EventType = 0
uint32 WorldPackets::Calendar::CalendarSendEvent::Flags = 0
uint8 WorldPackets::Calendar::CalendarSendEvent::GetEventType = 0
std::vector<CalendarEventInviteInfo> WorldPackets::Calendar::CalendarSendEvent::Invites
time_t WorldPackets::Calendar::CalendarSendEvent::LockDate = time_t(0)
ObjectGuid WorldPackets::Calendar::CalendarSendEvent::OwnerGuid
int32 WorldPackets::Calendar::CalendarSendEvent::TextureID = 0

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