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

#include <CalendarPackets.h>

Public Member Functions

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

uint64 EventID = 0
 
time_t Date = time_t(0)
 
uint32 Flags = 0
 
time_t LockDate = time_t(0)
 
time_t OriginalDate = time_t(0)
 
int32 TextureID = 0
 
uint8 EventType = 0
 
bool ClearPending = false
 
std::string Description
 
std::string EventName
 

Additional Inherited Members

- Protected Attributes inherited from WorldPackets::Packet
WorldPacket _worldPacket
 

Constructor & Destructor Documentation

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

Member Function Documentation

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

Implements WorldPackets::Packet.

363 {
365 
372 
373  _worldPacket.WriteBits(EventName.size(), 8);
374  _worldPacket.WriteBits(Description.size(), 11);
377 
380 
381  return &_worldPacket;
382 }
uint32 Flags
Definition: CalendarPackets.h:358
time_t OriginalDate
Definition: CalendarPackets.h:360
uint64 EventID
Definition: CalendarPackets.h:356
void FlushBits()
Definition: ByteBuffer.h:150
uint64_t uint64
Definition: g3dmath.h:170
WorldPacket _worldPacket
Definition: Packet.h:43
bool WriteBit(uint32 bit)
Definition: ByteBuffer.h:170
time_t Date
Definition: CalendarPackets.h:357
bool ClearPending
Definition: CalendarPackets.h:363
std::string EventName
Definition: CalendarPackets.h:365
void WriteString(std::string const &str)
Definition: ByteBuffer.h:540
uint8 EventType
Definition: CalendarPackets.h:362
std::string Description
Definition: CalendarPackets.h:364
void AppendPackedTime(time_t time)
Definition: ByteBuffer.h:680
uint8_t uint8
Definition: g3dmath.h:164
time_t LockDate
Definition: CalendarPackets.h:359
uint32_t uint32
Definition: g3dmath.h:168
int32 TextureID
Definition: CalendarPackets.h:361
void WriteBits(T value, int32 bits)
Definition: ByteBuffer.h:198

+ Here is the caller graph for this function:

Member Data Documentation

bool WorldPackets::Calendar::CalendarEventUpdatedAlert::ClearPending = false
time_t WorldPackets::Calendar::CalendarEventUpdatedAlert::Date = time_t(0)
std::string WorldPackets::Calendar::CalendarEventUpdatedAlert::Description
uint64 WorldPackets::Calendar::CalendarEventUpdatedAlert::EventID = 0
std::string WorldPackets::Calendar::CalendarEventUpdatedAlert::EventName
uint8 WorldPackets::Calendar::CalendarEventUpdatedAlert::EventType = 0
uint32 WorldPackets::Calendar::CalendarEventUpdatedAlert::Flags = 0
time_t WorldPackets::Calendar::CalendarEventUpdatedAlert::LockDate = time_t(0)
time_t WorldPackets::Calendar::CalendarEventUpdatedAlert::OriginalDate = time_t(0)
int32 WorldPackets::Calendar::CalendarEventUpdatedAlert::TextureID = 0

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