#ifndef OPENMW_PROCESSORPLAYERMISCELLANEOUS_HPP #define OPENMW_PROCESSORPLAYERMISCELLANEOUS_HPP #include "../PlayerProcessor.hpp" namespace mwmp { class ProcessorPlayerMiscellaneous : public PlayerProcessor { public: ProcessorPlayerMiscellaneous() { BPP_INIT(ID_PLAYER_MISCELLANEOUS) } virtual void Do(PlayerPacket &packet, BasePlayer *player) { if (!isLocal()) return; LOG_MESSAGE_SIMPLE(Log::LOG_INFO, "Received ID_PLAYER_MISCELLANEOUS about LocalPlayer from server"); if (!isRequest()) { LocalPlayer &localPlayer = static_cast(*player); if (player->miscellaneousChangeType == mwmp::MISCELLANEOUS_CHANGE_TYPE::MARK_LOCATION) localPlayer.setMarkLocation(); else if (player->miscellaneousChangeType == mwmp::MISCELLANEOUS_CHANGE_TYPE::SELECTED_SPELL) localPlayer.setSelectedSpell(); } } }; } #endif //OPENMW_PROCESSORPLAYERMISCELLANEOUS_HPP