AzerothCore 3.3.5a
OpenSource WoW Emulator
Loading...
Searching...
No Matches
WorldPackets::Misc::Playsound Class Referencefinal

#include "MiscPackets.h"

Inheritance diagram for WorldPackets::Misc::Playsound:
WorldPackets::ServerPacket WorldPackets::Packet

Public Member Functions

 Playsound ()
 
 Playsound (uint32 soundKitID)
 
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 SoundKitID = 0
 

Additional Inherited Members

- Protected Attributes inherited from WorldPackets::Packet
WorldPacket _worldPacket
 

Detailed Description

Constructor & Destructor Documentation

◆ Playsound() [1/2]

WorldPackets::Misc::Playsound::Playsound ( )
inline
@ SMSG_PLAY_SOUND
Definition: Opcodes.h:752
ServerPacket(OpcodeServer opcode, std::size_t initialSize=200)
Definition: Packet.cpp:25

◆ Playsound() [2/2]

WorldPackets::Misc::Playsound::Playsound ( uint32  soundKitID)
inline
89: ServerPacket(SMSG_PLAY_SOUND, 4), SoundKitID(soundKitID) { }
uint32 SoundKitID
Definition: MiscPackets.h:93

Member Function Documentation

◆ Write()

WorldPacket const * WorldPackets::Misc::Playsound::Write ( )
overridevirtual

Implements WorldPackets::Packet.

64{
66
67 return &_worldPacket;
68}
WorldPacket _worldPacket
Definition: Packet.h:42

Member Data Documentation

◆ SoundKitID

uint32 WorldPackets::Misc::Playsound::SoundKitID = 0