forked from teamnwah/openmw-tes3coop
Add and implement ID_MUSIC_PLAY
parent
f9ca98498d
commit
ae39daf76a
@ -0,0 +1,16 @@
|
||||
#include <components/openmw-mp/NetworkMessages.hpp>
|
||||
#include "PacketMusicPlay.hpp"
|
||||
|
||||
using namespace mwmp;
|
||||
|
||||
PacketMusicPlay::PacketMusicPlay(RakNet::RakPeerInterface *peer) : WorldPacket(peer)
|
||||
{
|
||||
packetID = ID_VIDEO_PLAY;
|
||||
}
|
||||
|
||||
void PacketMusicPlay::Packet(RakNet::BitStream *bs, WorldEvent *event, bool send)
|
||||
{
|
||||
WorldPacket::Packet(bs, event, send);
|
||||
|
||||
RW(event->filename, send);
|
||||
}
|
@ -0,0 +1,17 @@
|
||||
#ifndef OPENMW_PACKETMUSICPLAY_HPP
|
||||
#define OPENMW_PACKETMUSICPLAY_HPP
|
||||
|
||||
#include <components/openmw-mp/Packets/World/WorldPacket.hpp>
|
||||
|
||||
namespace mwmp
|
||||
{
|
||||
class PacketMusicPlay : public WorldPacket
|
||||
{
|
||||
public:
|
||||
PacketMusicPlay(RakNet::RakPeerInterface *peer);
|
||||
|
||||
virtual void Packet(RakNet::BitStream *bs, WorldEvent *event, bool send);
|
||||
};
|
||||
}
|
||||
|
||||
#endif //OPENMW_PACKETMUSICPLAY_HPP
|
Loading…
Reference in New Issue