openmw-tes3coop/apps/openmw/mwmp/processors/world/ProcessorVideoPlay.hpp
2017-06-07 00:06:10 +08:00

24 lines
535 B
C++

#ifndef OPENMW_PROCESSORVIDEOPLAY_HPP
#define OPENMW_PROCESSORVIDEOPLAY_HPP
#include "../WorldProcessor.hpp"
namespace mwmp
{
class ProcessorVideoPlay : public WorldProcessor
{
public:
ProcessorVideoPlay()
{
BPP_INIT(ID_VIDEO_PLAY)
}
virtual void Do(WorldPacket &packet, WorldEvent &event)
{
LOG_MESSAGE_SIMPLE(Log::LOG_VERBOSE, "Received %s", strPacketID.c_str());
event.playVideo();
}
};
}
#endif //OPENMW_PROCESSORVIDEOPLAY_HPP