TrinityCore
WorldPackets::NPC::TrainerList Class Referencefinal

#include <NPCPackets.h>

+ Inheritance diagram for WorldPackets::NPC::TrainerList:

Public Member Functions

 TrainerList ()
 
WorldPacket const * Write () override
 
- Public Member Functions inherited from WorldPackets::ServerPacket
 ServerPacket (OpcodeServer opcode, size_t initialSize=200, ConnectionType connection=CONNECTION_TYPE_DEFAULT)
 
void Read () override 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
 
size_t GetSize () const
 
ConnectionType GetConnection () const
 

Public Attributes

ObjectGuid TrainerGUID
 
int32 TrainerType = 0
 
int32 TrainerID = 1
 
std::vector< TrainerListSpellSpells
 
std::string Greeting
 

Additional Inherited Members

- Protected Attributes inherited from WorldPackets::Packet
WorldPacket _worldPacket
 

Detailed Description

Definition at line 198 of file NPCPackets.h.

Constructor & Destructor Documentation

◆ TrainerList()

WorldPackets::NPC::TrainerList::TrainerList ( )
inline

Definition at line 201 of file NPCPackets.h.

Member Function Documentation

◆ Write()

WorldPacket const * WorldPackets::NPC::TrainerList::Write ( )
overridevirtual

Implements WorldPackets::Packet.

Definition at line 161 of file NPCPackets.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

Member Data Documentation

◆ Greeting

std::string WorldPackets::NPC::TrainerList::Greeting

Definition at line 209 of file NPCPackets.h.

◆ Spells

std::vector<TrainerListSpell> WorldPackets::NPC::TrainerList::Spells

Definition at line 208 of file NPCPackets.h.

◆ TrainerGUID

ObjectGuid WorldPackets::NPC::TrainerList::TrainerGUID

Definition at line 205 of file NPCPackets.h.

◆ TrainerID

int32 WorldPackets::NPC::TrainerList::TrainerID = 1

Definition at line 207 of file NPCPackets.h.

◆ TrainerType

int32 WorldPackets::NPC::TrainerList::TrainerType = 0

Definition at line 206 of file NPCPackets.h.


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