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

#include <MailPackets.h>

Classes

struct  MailNextTimeEntry
 

Public Member Functions

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

float NextMailTime = 0.0f
 
std::vector< MailNextTimeEntryNext
 

Additional Inherited Members

- Protected Attributes inherited from WorldPackets::Packet
WorldPacket _worldPacket
 

Constructor & Destructor Documentation

WorldPackets::Mail::MailQueryNextTimeResult::MailQueryNextTimeResult ( )
inline
ServerPacket(OpcodeServer opcode, size_t initialSize=200, ConnectionType connection=CONNECTION_TYPE_DEFAULT)
Definition: Packet.h:49
Definition: Opcodes.h:1213

Member Function Documentation

WorldPacket const * WorldPackets::Mail::MailQueryNextTimeResult::Write ( )
overridevirtual

Implements WorldPackets::Packet.

251 {
252  _worldPacket << float(NextMailTime);
253  _worldPacket << int32(Next.size());
254 
255  for (auto const& entry : Next)
256  {
257  _worldPacket << entry.SenderGuid;
258  _worldPacket << float(entry.TimeLeft);
259  _worldPacket << int32(entry.AltSenderID);
260  _worldPacket << int8(entry.AltSenderType);
261  _worldPacket << int32(entry.StationeryID);
262  }
263 
264  return &_worldPacket;
265 }
std::vector< MailNextTimeEntry > Next
Definition: MailPackets.h:234
int8_t int8
Definition: g3dmath.h:163
WorldPacket _worldPacket
Definition: Packet.h:43
float NextMailTime
Definition: MailPackets.h:233
int32_t int32
Definition: g3dmath.h:167

+ Here is the caller graph for this function:

Member Data Documentation

std::vector<MailNextTimeEntry> WorldPackets::Mail::MailQueryNextTimeResult::Next
float WorldPackets::Mail::MailQueryNextTimeResult::NextMailTime = 0.0f

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