mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-20 16:53:52 +00:00
29 lines
899 B
C++
29 lines
899 B
C++
#ifndef OPENMW_PROCESSORPLAYERCELLSTATE_HPP
|
|
#define OPENMW_PROCESSORPLAYERCELLSTATE_HPP
|
|
|
|
#include "../PlayerProcessor.hpp"
|
|
#include "apps/openmw-mp/Networking.hpp"
|
|
#include <components/openmw-mp/Controllers/PlayerPacketController.hpp>
|
|
|
|
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> &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
|