#ifndef OPENMW_PROCESSORPLAYERCELLSTATE_HPP #define OPENMW_PROCESSORPLAYERCELLSTATE_HPP #include "../PlayerProcessor.hpp" #include "apps/openmw-mp/Networking.hpp" #include namespace mwmp { class ProcessorPlayerCellState final: public PlayerProcessor { PlayerPacketController *playerController; public: ProcessorPlayerCellState() { BPP_INIT(ID_PLAYER_CELL_STATE) playerController = Networking::get().getPlayerPacketController(); } void Do(PlayerPacket &packet, const std::shared_ptr &player) override { LOG_MESSAGE_SIMPLE(Log::LOG_INFO, "Received %s from %s", strPacketID.c_str(), player->npc.mName.c_str()); CellController::get().update(player.get()); } }; } #endif //OPENMW_PROCESSORPLAYERCELLSTATE_HPP