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

#include <ToyPackets.h>

Public Member Functions

 ToySetFavorite (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

uint32 ItemID = 0
 
bool Favorite = false
 

Additional Inherited Members

- Protected Attributes inherited from WorldPackets::Packet
WorldPacket _worldPacket
 

Constructor & Destructor Documentation

WorldPackets::Toy::ToySetFavorite::ToySetFavorite ( WorldPacket &&  packet)
inline
65 : ClientPacket(CMSG_TOY_SET_FAVORITE, std::move(packet)) { }
ClientPacket(WorldPacket &&packet)
Definition: Packet.h:62
Definition: Opcodes.h:682

Member Function Documentation

void WorldPackets::Toy::ToySetFavorite::Read ( )
overridevirtual

Implements WorldPackets::Packet.

52 {
55 }
WorldPacket _worldPacket
Definition: Packet.h:43
bool Favorite
Definition: ToyPackets.h:70
uint32 ItemID
Definition: ToyPackets.h:69
bool ReadBit()
Definition: ByteBuffer.h:186

Member Data Documentation

bool WorldPackets::Toy::ToySetFavorite::Favorite = false
uint32 WorldPackets::Toy::ToySetFavorite::ItemID = 0

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