2018-07-14 21:36:07 +00:00
|
|
|
#ifndef OPENMW_PROCESSORPLAYERINPUT_HPP
|
|
|
|
#define OPENMW_PROCESSORPLAYERINPUT_HPP
|
2018-01-29 20:32:51 +00:00
|
|
|
|
|
|
|
#include "apps/openmw/mwmp/Main.hpp"
|
|
|
|
#include "../PlayerProcessor.hpp"
|
|
|
|
#include "apps/openmw/mwmp/MechanicsHelper.hpp"
|
|
|
|
|
|
|
|
namespace mwmp
|
|
|
|
{
|
2019-10-24 19:16:17 +00:00
|
|
|
class ProcessorPlayerInput final: public PlayerProcessor
|
2018-01-29 20:32:51 +00:00
|
|
|
{
|
|
|
|
public:
|
2018-07-14 21:36:07 +00:00
|
|
|
ProcessorPlayerInput()
|
2018-01-29 20:32:51 +00:00
|
|
|
{
|
2018-07-14 21:36:07 +00:00
|
|
|
BPP_INIT(ID_PLAYER_INPUT)
|
2018-01-29 20:32:51 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
virtual void Do(PlayerPacket &packet, BasePlayer *player)
|
|
|
|
{
|
|
|
|
//if (player != 0)
|
|
|
|
// MechanicsHelper::processInteraction(player->interaction, static_cast<DedicatedPlayer*>(player)->getPtr());
|
|
|
|
}
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2018-07-14 21:36:07 +00:00
|
|
|
#endif //OPENMW_PROCESSORPLAYERINPUT_HPP
|