AzerothCore 3.3.5a
OpenSource WoW Emulator
Loading...
Searching...
No Matches
WorldPackets::Pet::PetLearnedSpell Class Referencefinal

#include "PetPackets.h"

Inheritance diagram for WorldPackets::Pet::PetLearnedSpell:
WorldPackets::ServerPacket WorldPackets::Packet

Public Member Functions

 PetLearnedSpell ()
 
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 SpellID = 0
 

Additional Inherited Members

- Protected Attributes inherited from WorldPackets::Packet
WorldPacket _worldPacket
 

Detailed Description

Constructor & Destructor Documentation

◆ PetLearnedSpell()

WorldPackets::Pet::PetLearnedSpell::PetLearnedSpell ( )
inline
@ SMSG_PET_LEARNED_SPELL
Definition: Opcodes.h:1207
ServerPacket(OpcodeServer opcode, std::size_t initialSize=200)
Definition: Packet.cpp:25

Member Function Documentation

◆ Write()

WorldPacket const * WorldPackets::Pet::PetLearnedSpell::Write ( )
overridevirtual

Implements WorldPackets::Packet.

43{
45 return &_worldPacket;
46}
std::uint32_t uint32
Definition: Define.h:107
WorldPacket _worldPacket
Definition: Packet.h:42
uint32 SpellID
Definition: PetPackets.h:77

Referenced by Pet::learnSpell().

Member Data Documentation

◆ SpellID

uint32 WorldPackets::Pet::PetLearnedSpell::SpellID = 0

Referenced by Pet::learnSpell().