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

#include <CombatPackets.h>

Public Member Functions

 PvPCredit ()
 
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 Target
 
int32 Honor = 0
 
int32 Rank = 0
 

Additional Inherited Members

- Protected Attributes inherited from WorldPackets::Packet
WorldPacket _worldPacket
 

Constructor & Destructor Documentation

WorldPackets::Combat::PvPCredit::PvPCredit ( )
inline
205 : ServerPacket(SMSG_PVP_CREDIT, 4 + 16 + 4) { }
ServerPacket(OpcodeServer opcode, size_t initialSize=200, ConnectionType connection=CONNECTION_TYPE_DEFAULT)
Definition: Packet.h:49
Definition: Opcodes.h:1387

Member Function Documentation

WorldPacket const * WorldPackets::Combat::PvPCredit::Write ( )
overridevirtual

Implements WorldPackets::Packet.

145 {
147  _worldPacket << Target;
148  _worldPacket << int32(Rank);
149 
150  return &_worldPacket;
151 }
ObjectGuid Target
Definition: CombatPackets.h:209
int32 Rank
Definition: CombatPackets.h:211
int32 Honor
Definition: CombatPackets.h:210
WorldPacket _worldPacket
Definition: Packet.h:43
int32_t int32
Definition: g3dmath.h:167

Member Data Documentation

int32 WorldPackets::Combat::PvPCredit::Honor = 0
int32 WorldPackets::Combat::PvPCredit::Rank = 0
ObjectGuid WorldPackets::Combat::PvPCredit::Target

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