An OpenMW mod that lets you play the whole Elder Scrolls III: Morrowind as a top-down isometric game — with full online co-op or MMO modes.
C++
#ifndef OPENMW_PROCESSORPLAYERCELLSTATE_HPP
#define OPENMW_PROCESSORPLAYERCELLSTATE_HPP
#include "../PlayerProcessor.hpp"
#include "apps/openmw-mp/Networking.hpp"
#include "apps/openmw-mp/Script/Script.hpp"
#include <components/openmw-mp/Controllers/PlayerPacketController.hpp>
namespace mwmp
{
class ProcessorPlayerCellState : public PlayerProcessor
{
PlayerPacketController *playerController;
public:
ProcessorPlayerCellState()
{
BPP_INIT(ID_PLAYER_CELL_STATE)
}
void Do(PlayerPacket &packet, Player &player) override
{
LOG_MESSAGE_SIMPLE(TimedLog::LOG_INFO, "Received %s from %s", strPacketID.c_str(), player.npc.mName.c_str());
CellController::get()->update(&player);
}
};
}
#endif //OPENMW_PROCESSORPLAYERCELLSTATE_HPP