#ifndef OPENMW_WORLDSTATEPACKETCONTROLLER_HPP #define OPENMW_WORLDSTATEPACKETCONTROLLER_HPP #include #include "../Packets/Worldstate/WorldstatePacket.hpp" #include #include namespace mwmp { class WorldstatePacketController { public: WorldstatePacketController(RakNet::RakPeerInterface *peer); WorldstatePacket *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_WORLDSTATEPACKETCONTROLLER_HPP