#ifndef OPENMW_OBJECTPACKETCONTROLLER_HPP #define OPENMW_OBJECTPACKETCONTROLLER_HPP #include #include "../Packets/Object/ObjectPacket.hpp" #include #include namespace mwmp { class ObjectPacketController { public: ObjectPacketController(RakNet::RakPeerInterface *peer); ObjectPacket *GetPacket(RakNet::MessageID id); void SetStream(RakNet::BitStream *inStream, RakNet::BitStream *outStream); bool ContainsPacket(RakNet::MessageID id); typedef std::unordered_map > packets_t; private: packets_t packets; }; } #endif //OPENMW_OBJECTPACKETCONTROLLER_HPP