// // Created by koncord on 16.04.17. // #ifndef OPENMW_PROCESSORPLAYERCELLCHANGE_HPP #define OPENMW_PROCESSORPLAYERCELLCHANGE_HPP #include "../PlayerProcessor.hpp" namespace mwmp { class ProcessorPlayerCellChange : public PlayerProcessor { public: ProcessorPlayerCellChange() { BPP_INIT(ID_PLAYER_CELL_CHANGE) } virtual void Do(PlayerPacket &packet, BasePlayer *player) { if (isLocal()) { if (isRequest()) static_cast(player)->updateCell(true); else static_cast(player)->setCell(); } else if (player != 0) static_cast(player)->setCell(); } }; } #endif //OPENMW_PROCESSORPLAYERCELLCHANGE_HPP