// // Created by koncord on 01.04.17. // #ifndef OPENMW_PROCESSORPLAYERATTRIBUTE_HPP #define OPENMW_PROCESSORPLAYERATTRIBUTE_HPP #include "../PlayerProcessor.hpp" namespace mwmp { class ProcessorPlayerAttribute : public PlayerProcessor { public: ProcessorPlayerAttribute() { BPP_INIT(ID_PLAYER_ATTRIBUTE) } void Do(PlayerPacket &packet, std::shared_ptr player) override { if (!player->creatureStats.mDead) { //myPacket->Send(player, true); player->sendToLoaded(&packet); Networking::get().getState().getEventCtrl().Call(player); } } }; } #endif //OPENMW_PROCESSORPLAYERATTRIBUTE_HPP