forked from mirror/openmw-tes3mp
Add and implement ID_WORLD_VIDEO_PLAY
parent
c54af2b02b
commit
b6111d16cc
@ -0,0 +1,17 @@
|
||||
#include <components/openmw-mp/NetworkMessages.hpp>
|
||||
#include "PacketVideoPlay.hpp"
|
||||
|
||||
using namespace mwmp;
|
||||
|
||||
PacketVideoPlay::PacketVideoPlay(RakNet::RakPeerInterface *peer) : WorldPacket(peer)
|
||||
{
|
||||
packetID = ID_WORLD_VIDEO_PLAY;
|
||||
}
|
||||
|
||||
void PacketVideoPlay::Packet(RakNet::BitStream *bs, WorldEvent *event, bool send)
|
||||
{
|
||||
WorldPacket::Packet(bs, event, send);
|
||||
|
||||
RW(event->video, send);
|
||||
RW(event->allowSkipping, send);
|
||||
}
|
@ -0,0 +1,17 @@
|
||||
#ifndef OPENMW_PACKETVIDEOPLAY_HPP
|
||||
#define OPENMW_PACKETVIDEOPLAY_HPP
|
||||
|
||||
#include <components/openmw-mp/Packets/World/WorldPacket.hpp>
|
||||
|
||||
namespace mwmp
|
||||
{
|
||||
class PacketVideoPlay : public WorldPacket
|
||||
{
|
||||
public:
|
||||
PacketVideoPlay(RakNet::RakPeerInterface *peer);
|
||||
|
||||
virtual void Packet(RakNet::BitStream *bs, WorldEvent *event, bool send);
|
||||
};
|
||||
}
|
||||
|
||||
#endif //OPENMW_PACKETVIDEOPLAY_HPP
|
Loading…
Reference in New Issue