2018-05-16 21:08:37 +00:00
|
|
|
#ifndef OPENMW_OBJECTPROCESSSOR_HPP
|
|
|
|
#define OPENMW_OBJECTPROCESSSOR_HPP
|
2017-04-16 06:58:40 +00:00
|
|
|
|
|
|
|
#include <components/openmw-mp/Log.hpp>
|
|
|
|
#include <components/openmw-mp/NetworkMessages.hpp>
|
2018-05-12 16:40:00 +00:00
|
|
|
#include <components/openmw-mp/Packets/Object/ObjectPacket.hpp>
|
2018-05-12 21:42:24 +00:00
|
|
|
#include "../ObjectList.hpp"
|
2017-06-06 16:06:10 +00:00
|
|
|
#include "../LocalPlayer.hpp"
|
|
|
|
#include "../DedicatedPlayer.hpp"
|
2017-04-18 07:05:32 +00:00
|
|
|
#include "BaseClientPacketProcessor.hpp"
|
2017-04-16 06:58:40 +00:00
|
|
|
|
|
|
|
namespace mwmp
|
|
|
|
{
|
2018-05-15 19:56:47 +00:00
|
|
|
class ObjectProcessor : public BasePacketProcessor<ObjectProcessor>, public BaseClientPacketProcessor
|
2017-04-16 06:58:40 +00:00
|
|
|
{
|
|
|
|
public:
|
2018-05-12 21:42:24 +00:00
|
|
|
virtual void Do(ObjectPacket &packet, ObjectList &objectList) = 0;
|
2017-04-16 06:58:40 +00:00
|
|
|
|
2018-05-12 21:42:24 +00:00
|
|
|
static bool Process(RakNet::Packet &packet, ObjectList &objectList);
|
2017-04-16 06:58:40 +00:00
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2018-05-16 21:08:37 +00:00
|
|
|
#endif //OPENMW_OBJECTPROCESSSOR_HPP
|