1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-01-16 08:49:55 +00:00
openmw-tes3mp/apps/openmw/mwmp/processors/ActorProcessor.hpp

37 lines
937 B
C++
Raw Normal View History

2017-04-18 05:53:02 +00:00
//
// Created by koncord on 18.04.17.
//
#ifndef OPENMW_ACTORPROCESSOR_HPP
#define OPENMW_ACTORPROCESSOR_HPP
#include <boost/unordered_map.hpp>
#include <boost/shared_ptr.hpp>
#include <components/openmw-mp/Log.hpp>
#include <components/openmw-mp/NetworkMessages.hpp>
#include <components/openmw-mp/Packets/Actor/ActorPacket.hpp>
2017-06-06 16:06:10 +00:00
#include "../WorldEvent.hpp"
#include "../ActorList.hpp"
2017-04-18 07:05:32 +00:00
#include "BaseClientPacketProcessor.hpp"
2017-04-18 05:53:02 +00:00
namespace mwmp
{
2017-04-18 07:05:32 +00:00
class ActorProcessor : public BaseClientPacketProcessor
2017-04-18 05:53:02 +00:00
{
public:
virtual void Do(ActorPacket &packet, ActorList &actorList) = 0;
static bool Process(RakNet::Packet &packet, ActorList &actorList);
static void AddProcessor(ActorProcessor *processor);
typedef boost::unordered_map<unsigned char, std::shared_ptr<ActorProcessor> > processors_t;
2017-04-18 05:53:02 +00:00
private:
static processors_t processors;
};
}
#endif //OPENMW_ACTORPROCESSOR_HPP