#ifndef OPENMW_SYSTEMPACKETCONTROLLER_HPP #define OPENMW_SYSTEMPACKETCONTROLLER_HPP #include #include "../Packets/System/SystemPacket.hpp" #include #include namespace mwmp { class SystemPacketController { public: SystemPacketController(RakNet::RakPeerInterface *peer); SystemPacket *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_SYSTEMPACKETCONTROLLER_HPP