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>
|
|
|
|
#include "Script/Script.hpp"
|
|
|
|
#include "Player.hpp"
|
|
|
|
|
|
|
|
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-12 21:42:24 +00:00
|
|
|
virtual void Do(ObjectPacket &packet, 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
|