openmw-tes3coop/apps/openmw-mp/processors/player/ProcessorPlayerInteraction.hpp
2018-01-29 22:32:51 +02:00

25 lines
606 B
C++

#ifndef OPENMW_PROCESSORPLAYERINTERACTION_HPP
#define OPENMW_PROCESSORPLAYERINTERACTION_HPP
#include "../PlayerProcessor.hpp"
namespace mwmp
{
class ProcessorPlayerInteraction : public PlayerProcessor
{
public:
ProcessorPlayerInteraction()
{
BPP_INIT(ID_PLAYER_INTERACTION)
}
void Do(PlayerPacket &packet, Player &player) override
{
DEBUG_PRINTF(strPacketID.c_str());
Script::Call<Script::CallbackIdentity("OnPlayerInteraction")>(player.getId());
}
};
}
#endif //OPENMW_PROCESSORPLAYERINTERACTION_HPP