#ifndef OPENMW_WORLDPACKETCONTROLLER_HPP #define OPENMW_WORLDPACKETCONTROLLER_HPP #include #include "../Packets/World/WorldPacket.hpp" #include #include namespace mwmp { class WorldPacketController { public: WorldPacketController(RakNet::RakPeerInterface *peer); WorldPacket *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_WORLDPACKETCONTROLLER_HPP