// // Created by koncord on 01.04.17. // #ifndef OPENMW_PROCESSORPLAYERRESURRECT_HPP #define OPENMW_PROCESSORPLAYERRESURRECT_HPP #include "../PlayerProcessor.hpp" namespace mwmp { class ProcessorPlayerResurrect : public PlayerProcessor { public: ProcessorPlayerResurrect() { BPP_INIT(ID_PLAYER_RESURRECT) } void Do(PlayerPacket &packet, std::shared_ptr player) override { LOG_MESSAGE_SIMPLE(Log::LOG_VERBOSE, "Received %s from %s", strPacketID.c_str(), player->npc.mName.c_str()); player->creatureStats.mDead = false; packet.Send(true); Networking::get().getState().getEventCtrl().Call(player); } }; } #endif //OPENMW_PROCESSORPLAYERRESURRECT_HPP