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

#include <TalentPackets.h>

Public Member Functions

 LearnTalents (WorldPacket &&packet)
 
void Read () override
 
- Public Member Functions inherited from WorldPackets::ClientPacket
 ClientPacket (WorldPacket &&packet)
 
 ClientPacket (OpcodeClient expectedOpcode, WorldPacket &&packet)
 
WorldPacket constWrite () overridefinal
 
OpcodeClient 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

std::vector< uint16Talents
 

Additional Inherited Members

- Protected Attributes inherited from WorldPackets::Packet
WorldPacket _worldPacket
 

Constructor & Destructor Documentation

WorldPackets::Talent::LearnTalents::LearnTalents ( WorldPacket &&  packet)
inline
64  : ClientPacket(std::move(packet))
65  {
66  ASSERT(packet.GetOpcode() == CMSG_LEARN_TALENTS);
67  }
uint32 GetOpcode() const
Definition: WorldPacket.h:79
Definition: Opcodes.h:363
#define ASSERT
Definition: Errors.h:55
ClientPacket(WorldPacket &&packet)
Definition: Packet.h:62

Member Function Documentation

void WorldPackets::Talent::LearnTalents::Read ( )
overridevirtual

Implements WorldPackets::Packet.

47 {
48  uint32 count;
49  _worldPacket >> count;
50 
51  for (uint32 i = 0; i < count; ++i)
52  {
53  uint16 talent;
54  _worldPacket >> talent;
55  Talents.push_back(talent);
56  }
57 }
WorldPacket _worldPacket
Definition: Packet.h:43
std::vector< uint16 > Talents
Definition: TalentPackets.h:70
uint32_t uint32
Definition: Define.h:150
uint16_t uint16
Definition: Define.h:151

Member Data Documentation

std::vector<uint16> WorldPackets::Talent::LearnTalents::Talents

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