1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-01-16 00:19:56 +00:00
openmw-tes3mp/apps/openmw/mwmp/processors/player/ProcessorPlayerCellState.hpp
2019-10-24 22:16:17 +03:00

26 lines
610 B
C++

#ifndef OPENMW_PROCESSORPLAYERCELLSTATE_HPP
#define OPENMW_PROCESSORPLAYERCELLSTATE_HPP
#include "../PlayerProcessor.hpp"
namespace mwmp
{
class ProcessorPlayerCellState final: public PlayerProcessor
{
public:
ProcessorPlayerCellState()
{
BPP_INIT(ID_PLAYER_CELL_STATE)
avoidReading = true;
}
virtual void Do(PlayerPacket &packet, BasePlayer *player)
{
if (isLocal() && isRequest())
static_cast<LocalPlayer *>(player)->sendCellStates();
}
};
}
#endif //OPENMW_PROCESSORPLAYERCELLSTATE_HPP