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

#include <CalendarPackets.h>

Public Member Functions

 CalendarUpdateEvent (WorldPacket &&packet)
 
void Read () override
 
- Public Member Functions inherited from WorldPackets::ClientPacket
 ClientPacket (WorldPacket &&packet)
 
 ClientPacket (OpcodeClient expectedOpcode, WorldPacket &&packet)
 
WorldPacket constWrite () overridefinal
 
OpcodeClient 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

uint32 MaxSize = 0
 
CalendarUpdateEventInfo EventInfo
 

Additional Inherited Members

- Protected Attributes inherited from WorldPackets::Packet
WorldPacket _worldPacket
 

Constructor & Destructor Documentation

WorldPackets::Calendar::CalendarUpdateEvent::CalendarUpdateEvent ( WorldPacket &&  packet)
inline
104 : ClientPacket(CMSG_CALENDAR_UPDATE_EVENT, std::move(packet)) { }
Definition: Opcodes.h:141
ClientPacket(WorldPacket &&packet)
Definition: Packet.h:62

Member Function Documentation

void WorldPackets::Calendar::CalendarUpdateEvent::Read ( )
overridevirtual

Implements WorldPackets::Packet.

135 {
142 
143  uint8 titleLen = _worldPacket.ReadBits(8);
144  uint16 descLen = _worldPacket.ReadBits(11);
145 
149 }
uint32 TextureID
Definition: CalendarPackets.h:96
uint32 ReadBits(int32 bits)
Definition: ByteBuffer.h:204
uint64 ModeratorID
Definition: CalendarPackets.h:92
uint32 MaxSize
Definition: CalendarPackets.h:108
CalendarUpdateEventInfo EventInfo
Definition: CalendarPackets.h:109
WorldPacket _worldPacket
Definition: Packet.h:43
uint32 ReadPackedTime()
Definition: ByteBuffer.h:552
uint32 Flags
Definition: CalendarPackets.h:98
uint8 EventType
Definition: CalendarPackets.h:95
std::string ReadString(uint32 length)
Definition: ByteBuffer.h:524
std::string Description
Definition: CalendarPackets.h:94
uint16_t uint16
Definition: Define.h:151
time_t Time
Definition: CalendarPackets.h:97
uint64 EventID
Definition: CalendarPackets.h:91
std::string Title
Definition: CalendarPackets.h:93
uint8_t uint8
Definition: Define.h:152

Member Data Documentation

CalendarUpdateEventInfo WorldPackets::Calendar::CalendarUpdateEvent::EventInfo
uint32 WorldPackets::Calendar::CalendarUpdateEvent::MaxSize = 0

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