forked from teamnwah/openmw-tes3coop
26 lines
650 B
C++
26 lines
650 B
C++
|
#ifndef OPENMW_WORLDPACKETCONTROLLER_HPP
|
||
|
#define OPENMW_WORLDPACKETCONTROLLER_HPP
|
||
|
|
||
|
|
||
|
#include <RakPeerInterface.h>
|
||
|
#include "../Packets/World/WorldPacket.hpp"
|
||
|
#include <map>
|
||
|
#include <boost/shared_ptr.hpp>
|
||
|
|
||
|
namespace mwmp
|
||
|
{
|
||
|
class WorldPacketController
|
||
|
{
|
||
|
public:
|
||
|
WorldPacketController(RakNet::RakPeerInterface *peer);
|
||
|
WorldPacket *GetPacket(RakNet::MessageID id);
|
||
|
void SetStream(RakNet::BitStream *inStream, RakNet::BitStream *outStream);
|
||
|
|
||
|
typedef std::map<unsigned char, boost::shared_ptr<WorldPacket> > packets_t;
|
||
|
private:
|
||
|
packets_t packets;
|
||
|
};
|
||
|
}
|
||
|
|
||
|
#endif //OPENMW_WORLDPACKETCONTROLLER_HPP
|