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

#include <CharacterPackets.h>

Public Member Functions

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

ObjectGuid Victim
 
int32 Original = 0
 
uint8 Reason = 0
 
int32 Amount = 0
 
float GroupBonus = 0
 
bool ReferAFriend = false
 

Additional Inherited Members

- Protected Attributes inherited from WorldPackets::Packet
WorldPacket _worldPacket
 

Constructor & Destructor Documentation

WorldPackets::Character::LogXPGain::LogXPGain ( )
inline
ServerPacket(OpcodeServer opcode, size_t initialSize=200, ConnectionType connection=CONNECTION_TYPE_DEFAULT)
Definition: Packet.h:49
Definition: Opcodes.h:1197

Member Function Documentation

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

Implements WorldPackets::Packet.

467 {
468  _worldPacket << Victim;
472  _worldPacket << float(GroupBonus);
474 
476 
477  return &_worldPacket;
478 }
void FlushBits()
Definition: ByteBuffer.h:150
WorldPacket _worldPacket
Definition: Packet.h:43
bool WriteBit(uint32 bit)
Definition: ByteBuffer.h:170
uint8 Reason
Definition: CharacterPackets.h:625
bool ReferAFriend
Definition: CharacterPackets.h:628
float GroupBonus
Definition: CharacterPackets.h:627
int32 Amount
Definition: CharacterPackets.h:626
ObjectGuid Victim
Definition: CharacterPackets.h:623
uint8_t uint8
Definition: g3dmath.h:164
int32 Original
Definition: CharacterPackets.h:624
int32_t int32
Definition: g3dmath.h:167

Member Data Documentation

int32 WorldPackets::Character::LogXPGain::Amount = 0
float WorldPackets::Character::LogXPGain::GroupBonus = 0
int32 WorldPackets::Character::LogXPGain::Original = 0
uint8 WorldPackets::Character::LogXPGain::Reason = 0
bool WorldPackets::Character::LogXPGain::ReferAFriend = false
ObjectGuid WorldPackets::Character::LogXPGain::Victim

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