// // Created by koncord on 18.04.17. // #ifndef OPENMW_ACTORPROCESSOR_HPP #define OPENMW_ACTORPROCESSOR_HPP #include #include #include #include #include #include "WorldEvent.hpp" #include "ActorList.hpp" #include "BaseClientPacketProcessor.hpp" namespace mwmp { class ActorProcessor : public BaseClientPacketProcessor { 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 > processors_t; private: static processors_t processors; }; } #endif //OPENMW_ACTORPROCESSOR_HPP