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

#include <MiscPackets.h>

Public Member Functions

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

int32 Level = 0
 
int32 HealthDelta = 0
 
std::array< int32, 6 > PowerDelta
 
std::array< int32, MAX_STATSStatDelta
 
int32 Cp = 0
 

Additional Inherited Members

- Protected Attributes inherited from WorldPackets::Packet
WorldPacket _worldPacket
 

Constructor & Destructor Documentation

WorldPackets::Misc::LevelUpInfo::LevelUpInfo ( )
inline
ServerPacket(OpcodeServer opcode, size_t initialSize=200, ConnectionType connection=CONNECTION_TYPE_DEFAULT)
Definition: Packet.h:49
Definition: Opcodes.h:1157

Member Function Documentation

WorldPacket const * WorldPackets::Misc::LevelUpInfo::Write ( )
overridevirtual

Implements WorldPackets::Packet.

347 {
350 
351  for (int32 power : PowerDelta)
352  _worldPacket << power;
353 
354  for (int32 stat : StatDelta)
355  _worldPacket << stat;
356 
357  _worldPacket << int32(Cp);
358 
359  return &_worldPacket;
360 }
WorldPacket _worldPacket
Definition: Packet.h:43
std::array< int32, MAX_STATS > StatDelta
Definition: MiscPackets.h:497
std::array< int32, 6 > PowerDelta
Definition: MiscPackets.h:496
int32 HealthDelta
Definition: MiscPackets.h:495
int32 Cp
Definition: MiscPackets.h:498
int32 Level
Definition: MiscPackets.h:494
int32_t int32
Definition: Define.h:146
int32_t int32
Definition: g3dmath.h:167

Member Data Documentation

int32 WorldPackets::Misc::LevelUpInfo::Cp = 0
int32 WorldPackets::Misc::LevelUpInfo::HealthDelta = 0
int32 WorldPackets::Misc::LevelUpInfo::Level = 0
std::array<int32, 6> WorldPackets::Misc::LevelUpInfo::PowerDelta
std::array<int32, MAX_STATS> WorldPackets::Misc::LevelUpInfo::StatDelta

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