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

#include "MiscPackets.h"

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

Public Member Functions

 PlayObjectSound ()
 
 PlayObjectSound (ObjectGuid const &sourceObjectGUID, 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

ObjectGuid SourceObjectGUID
 
uint32 SoundKitID = 0
 

Additional Inherited Members

- Protected Attributes inherited from WorldPackets::Packet
WorldPacket _worldPacket
 

Detailed Description

Constructor & Destructor Documentation

◆ PlayObjectSound() [1/2]

WorldPackets::Misc::PlayObjectSound::PlayObjectSound ( )
inline
@ SMSG_PLAY_OBJECT_SOUND
Definition: Opcodes.h:662
ServerPacket(OpcodeServer opcode, std::size_t initialSize=200)
Definition: Packet.cpp:25

◆ PlayObjectSound() [2/2]

WorldPackets::Misc::PlayObjectSound::PlayObjectSound ( ObjectGuid const &  sourceObjectGUID,
uint32  soundKitID 
)
inline
75 : ServerPacket(SMSG_PLAY_OBJECT_SOUND, 4 + 8), SourceObjectGUID(sourceObjectGUID), SoundKitID(soundKitID) { }
uint32 SoundKitID
Definition: MiscPackets.h:80
ObjectGuid SourceObjectGUID
Definition: MiscPackets.h:79

Member Function Documentation

◆ Write()

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

Implements WorldPackets::Packet.

56{
59
60 return &_worldPacket;
61}
WorldPacket _worldPacket
Definition: Packet.h:42

Member Data Documentation

◆ SoundKitID

uint32 WorldPackets::Misc::PlayObjectSound::SoundKitID = 0

◆ SourceObjectGUID

ObjectGuid WorldPackets::Misc::PlayObjectSound::SourceObjectGUID