1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-01-21 11:23:51 +00:00
openmw-tes3mp/components/openmw-mp/PacketsController.hpp
2016-07-23 22:02:06 +08:00

70 lines
1.7 KiB
C++

//
// Created by koncord on 15.01.16.
//
#ifndef OPENMW_PACKETSCONTROLLER_HPP
#define OPENMW_PACKETSCONTROLLER_HPP
#include <RakPeerInterface.h>
#include "Packets/BasePacket.hpp"
namespace mwmp
{
class PacketPosition;
class PacketCell;
class PacketBaseInfo;
class PacketEquiped;
class PacketAttributesAndStats;
class PacketAttack;
class PacketMainStats;
class PacketResurrect;
class PacketDie;
class PacketDrawState;
class PacketSendMyID;
class PacketDisconnect;
class PacketChatMessage;
class PacketCharGen;
class PacketAttribute;
class PacketSkill;
class PacketHandshake;
class PacketGUIBoxes;
class PacketsController
{
public:
PacketsController(RakNet::RakPeerInterface *peer);
BasePacket *GetPacket(RakNet::MessageID id);
void SetStream(RakNet::BitStream *inStream, RakNet::BitStream *outStream);
private:
PacketPosition *packetPosition;
PacketCell *packetCell;
PacketBaseInfo *packetBaseInfo;
PacketEquiped *packetEquiped;
PacketAttributesAndStats *attributesAndStats;
PacketAttack *packetAttack;
PacketMainStats *packetMainStats;
PacketResurrect *packetResurrect;
PacketDie *packetDie;
PacketDrawState *packetDrawState;
PacketSendMyID *packetSendMyID;
PacketDisconnect *packetDisconnect;
PacketChatMessage *packetChatMessage;
PacketCharGen *packetCharGen;
PacketAttribute *packetAttribute;
PacketSkill *packetSkill;
PacketHandshake *packetHandshake;
PacketGUIBoxes *packetGUIBoxes;
};
}
#endif //OPENMW_PACKETSCONTROLLER_HPP