An OpenMW mod that lets you play the whole Elder Scrolls III: Morrowind as a top-down isometric game — with full online co-op or MMO modes.
C++
#ifndef OPENMW_SYSTEMPACKETCONTROLLER_HPP
#define OPENMW_SYSTEMPACKETCONTROLLER_HPP
#include <RakPeerInterface.h>
#include "../Packets/System/SystemPacket.hpp"
#include <unordered_map>
#include <memory>
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<unsigned char, std::unique_ptr<SystemPacket> > packets_t;
private:
packets_t packets;
};
}
#endif //OPENMW_SYSTEMPACKETCONTROLLER_HPP