1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-01-31 21:45:33 +00:00
openmw-tes3mp/apps/openmw-mp/processors/player/ProcessorPlayerAttack.hpp
David Cernat 5858e05362 Merge pull request #378 from TES3MP/0.6.3 while resolving conflicts
Conflicts:
	apps/openmw-mp/CMakeLists.txt
	apps/openmw-mp/Script/ScriptFunctions.hpp
	components/CMakeLists.txt
2018-01-30 00:54:56 +02:00

30 lines
761 B
C++

#ifndef OPENMW_PROCESSORPLAYERATTACK_HPP
#define OPENMW_PROCESSORPLAYERATTACK_HPP
#include "../PlayerProcessor.hpp"
namespace mwmp
{
class ProcessorPlayerAttack final: public PlayerProcessor
{
PlayerPacketController *playerController;
public:
ProcessorPlayerAttack()
{
BPP_INIT(ID_PLAYER_ATTACK)
playerController = Networking::get().getPlayerPacketController();
}
void Do(PlayerPacket &packet, const std::shared_ptr<Player> &player) override
{
DEBUG_PRINTF(strPacketID.c_str());
if (!player->creatureStats.mDead)
{
player->sendToLoaded(packet);
}
}
};
}
#endif //OPENMW_PROCESSORPLAYERATTACK_HPP