openmw-tes3coop/apps/openmw/mwmp/processors/WorldProcessor.hpp

29 lines
730 B
C++
Raw Normal View History

//
// Created by koncord on 16.04.17.
//
#ifndef OPENMW_WORLDPROCESSSOR_HPP
#define OPENMW_WORLDPROCESSSOR_HPP
#include <components/openmw-mp/Log.hpp>
#include <components/openmw-mp/NetworkMessages.hpp>
#include <components/openmw-mp/Packets/World/WorldPacket.hpp>
2017-06-06 16:06:10 +00:00
#include "../WorldEvent.hpp"
#include "../LocalPlayer.hpp"
#include "../DedicatedPlayer.hpp"
2017-04-18 07:05:32 +00:00
#include "BaseClientPacketProcessor.hpp"
namespace mwmp
{
class WorldProcessor : public BasePacketProcessor<WorldProcessor>, public BaseClientPacketProcessor
{
public:
2017-04-18 03:35:50 +00:00
virtual void Do(WorldPacket &packet, WorldEvent &event) = 0;
2017-04-18 03:35:50 +00:00
static bool Process(RakNet::Packet &packet, WorldEvent &event);
};
}
#endif //OPENMW_WORLDPROCESSSOR_HPP