2017-04-02 21:32:49 +00:00
|
|
|
//
|
|
|
|
// Created by koncord on 03.04.17.
|
|
|
|
//
|
|
|
|
|
2018-05-15 19:07:06 +00:00
|
|
|
#ifndef OPENMW_OBJECTPROCESSOR_HPP
|
|
|
|
#define OPENMW_OBJECTPROCESSOR_HPP
|
2017-04-02 21:32:49 +00:00
|
|
|
|
|
|
|
|
|
|
|
#include <components/openmw-mp/Base/BasePacketProcessor.hpp>
|
|
|
|
#include <components/openmw-mp/Packets/BasePacket.hpp>
|
2018-05-12 16:40:00 +00:00
|
|
|
#include <components/openmw-mp/Packets/Object/ObjectPacket.hpp>
|
2017-04-02 21:32:49 +00:00
|
|
|
#include <components/openmw-mp/NetworkMessages.hpp>
|
2017-08-27 16:15:56 +00:00
|
|
|
#include "Players.hpp"
|
2017-04-02 21:32:49 +00:00
|
|
|
|
|
|
|
namespace mwmp
|
|
|
|
{
|
2018-05-15 19:07:06 +00:00
|
|
|
class ObjectProcessor : public BasePacketProcessor<ObjectProcessor>
|
2017-04-02 21:32:49 +00:00
|
|
|
{
|
|
|
|
public:
|
|
|
|
|
2018-05-13 00:20:01 +00:00
|
|
|
virtual void Do(ObjectPacket &packet, const std::shared_ptr<Player> &player, BaseObjectList &objectList);
|
2017-04-02 21:32:49 +00:00
|
|
|
|
2018-05-12 21:42:24 +00:00
|
|
|
static bool Process(RakNet::Packet &packet, BaseObjectList &objectList) noexcept;
|
2017-04-02 21:32:49 +00:00
|
|
|
};
|
|
|
|
}
|
|
|
|
|
2018-05-15 19:07:06 +00:00
|
|
|
#endif //OPENMW_OBJECTPROCESSOR_HPP
|