AzerothCore 3.3.5a
OpenSource WoW Emulator
Loading...
Searching...
No Matches
WorldPackets::Character::PlayedTime Class Referencefinal

#include "CharacterPackets.h"

Inheritance diagram for WorldPackets::Character::PlayedTime:
WorldPackets::ServerPacket WorldPackets::Packet

Public Member Functions

 PlayedTime ()
 
WorldPacket const * Write () override
 
- Public Member Functions inherited from WorldPackets::ServerPacket
 ServerPacket (OpcodeServer opcode, std::size_t initialSize=200)
 
void Read () 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
 
virtual WorldPacket const * Write ()=0
 
virtual void Read ()=0
 
WorldPacket const * GetRawPacket () const
 
std::size_t GetSize () const
 

Public Attributes

uint32 TotalTime = 0
 
uint32 LevelTime = 0
 
bool TriggerScriptEvent = false
 

Additional Inherited Members

- Protected Attributes inherited from WorldPackets::Packet
WorldPacket _worldPacket
 

Detailed Description

Constructor & Destructor Documentation

◆ PlayedTime()

WorldPackets::Character::PlayedTime::PlayedTime ( )
inline
@ SMSG_PLAYED_TIME
Definition: Opcodes.h:491
ServerPacket(OpcodeServer opcode, std::size_t initialSize=200)
Definition: Packet.cpp:25

Member Function Documentation

◆ Write()

WorldPacket const * WorldPackets::Character::PlayedTime::Write ( )
overridevirtual

Implements WorldPackets::Packet.

43{
47
48 return &_worldPacket;
49}
std::uint8_t uint8
Definition: Define.h:109
std::uint32_t uint32
Definition: Define.h:107
WorldPacket _worldPacket
Definition: Packet.h:42
uint32 LevelTime
Definition: CharacterPackets.h:116
bool TriggerScriptEvent
Definition: CharacterPackets.h:117
uint32 TotalTime
Definition: CharacterPackets.h:115

Referenced by WorldSession::HandlePlayedTime().

Member Data Documentation

◆ LevelTime

uint32 WorldPackets::Character::PlayedTime::LevelTime = 0

◆ TotalTime

uint32 WorldPackets::Character::PlayedTime::TotalTime = 0

◆ TriggerScriptEvent

bool WorldPackets::Character::PlayedTime::TriggerScriptEvent = false