forked from teamnwah/openmw-tes3coop
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
652 B
C++
26 lines
652 B
C++
8 years ago
|
#ifndef OPENMW_PLAYERPACKETCONTROLLER_HPP
|
||
|
#define OPENMW_PLAYERPACKETCONTROLLER_HPP
|
||
9 years ago
|
|
||
|
|
||
|
#include <RakPeerInterface.h>
|
||
8 years ago
|
#include "../Packets/PlayerPacket.hpp"
|
||
8 years ago
|
#include <map>
|
||
|
#include <boost/shared_ptr.hpp>
|
||
9 years ago
|
|
||
|
namespace mwmp
|
||
|
{
|
||
8 years ago
|
class PlayerPacketController
|
||
9 years ago
|
{
|
||
|
public:
|
||
8 years ago
|
PlayerPacketController(RakNet::RakPeerInterface *peer);
|
||
8 years ago
|
PlayerPacket *GetPacket(RakNet::MessageID id);
|
||
9 years ago
|
void SetStream(RakNet::BitStream *inStream, RakNet::BitStream *outStream);
|
||
|
|
||
8 years ago
|
typedef std::map<unsigned char, boost::shared_ptr<PlayerPacket> > packets_t;
|
||
9 years ago
|
private:
|
||
8 years ago
|
packets_t packets;
|
||
9 years ago
|
};
|
||
|
}
|
||
|
|
||
8 years ago
|
#endif //OPENMW_PLAYERPACKETCONTROLLER_HPP
|