TrinityCore
WorldPackets::Calendar::CalendarSendEvent Class Referencefinal

#include <CalendarPackets.h>

Public Member Functions

 CalendarSendEvent ()
 
WorldPacket const * Write () override
 
- Public Member Functions inherited from WorldPackets::ServerPacket
 ServerPacket (OpcodeServer opcode, size_t initialSize=200, ConnectionType connection=CONNECTION_TYPE_DEFAULT)
 
void Read () override final
 
void Clear ()
 
WorldPacket && Move ()
 
void ShrinkToFit ()
 
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 const * GetRawPacket () const
 
size_t GetSize () const
 
ConnectionType GetConnection () const
 

Public Attributes

ObjectGuid OwnerGuid
 
uint64 EventClubID = 0
 
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< CalendarEventInviteInfoInvites
 

Additional Inherited Members

- Protected Attributes inherited from WorldPackets::Packet
WorldPacket _worldPacket
 

Constructor & Destructor Documentation

◆ CalendarSendEvent()

WorldPackets::Calendar::CalendarSendEvent::CalendarSendEvent ( )
inline
ServerPacket(OpcodeServer opcode, size_t initialSize=200, ConnectionType connection=CONNECTION_TYPE_DEFAULT)
Definition: Packet.cpp:25
Definition: Opcodes.h:1001
+ Here is the call graph for this function:

Member Function Documentation

◆ Write()

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

Implements WorldPackets::Packet.

281 {
291  _worldPacket << uint32(Invites.size());
292  _worldPacket.WriteBits(EventName.size(), 8);
293  _worldPacket.WriteBits(Description.size(), 11);
295 
296  for (auto const& invite : Invites)
297  _worldPacket << invite;
298 
301 
302  return &_worldPacket;
303 }
uint8 EventType
Definition: CalendarPackets.h:232
uint32 Flags
Definition: CalendarPackets.h:229
std::vector< CalendarEventInviteInfo > Invites
Definition: CalendarPackets.h:235
void FlushBits()
Definition: ByteBuffer.h:147
void WriteBits(std::size_t value, int32 bits)
Definition: ByteBuffer.h:195
WorldPacket _worldPacket
Definition: Packet.h:43
ObjectGuid OwnerGuid
Definition: CalendarPackets.h:224
uint64 EventID
Definition: CalendarPackets.h:226
void WriteString(std::string const &str)
Definition: ByteBuffer.h:511
uint8 GetEventType
Definition: CalendarPackets.h:231
uint64 EventClubID
Definition: CalendarPackets.h:225
std::string Description
Definition: CalendarPackets.h:233
int32_t int32
Definition: Define.h:148
uint32_t uint32
Definition: Define.h:152
uint64_t uint64
Definition: Define.h:151
time_t Date
Definition: CalendarPackets.h:227
void AppendPackedTime(time_t time)
Definition: ByteBuffer.cpp:99
time_t LockDate
Definition: CalendarPackets.h:228
std::string EventName
Definition: CalendarPackets.h:234
uint8_t uint8
Definition: Define.h:154
int32 TextureID
Definition: CalendarPackets.h:230
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

Member Data Documentation

◆ Date

time_t WorldPackets::Calendar::CalendarSendEvent::Date = time_t(0)

◆ Description

std::string WorldPackets::Calendar::CalendarSendEvent::Description

◆ EventClubID

uint64 WorldPackets::Calendar::CalendarSendEvent::EventClubID = 0

◆ EventID

uint64 WorldPackets::Calendar::CalendarSendEvent::EventID = 0

◆ EventName

std::string WorldPackets::Calendar::CalendarSendEvent::EventName

◆ EventType

uint8 WorldPackets::Calendar::CalendarSendEvent::EventType = 0

◆ Flags

uint32 WorldPackets::Calendar::CalendarSendEvent::Flags = 0

◆ GetEventType

uint8 WorldPackets::Calendar::CalendarSendEvent::GetEventType = 0

◆ Invites

std::vector<CalendarEventInviteInfo> WorldPackets::Calendar::CalendarSendEvent::Invites

◆ LockDate

time_t WorldPackets::Calendar::CalendarSendEvent::LockDate = time_t(0)

◆ OwnerGuid

ObjectGuid WorldPackets::Calendar::CalendarSendEvent::OwnerGuid

◆ TextureID

int32 WorldPackets::Calendar::CalendarSendEvent::TextureID = 0

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