forked from teamnwah/openmw-tes3coop
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
27 lines
650 B
C++
27 lines
650 B
C++
#ifndef OPENMW_PROCESSORPLAYERCELLSTATE_HPP
|
|
#define OPENMW_PROCESSORPLAYERCELLSTATE_HPP
|
|
|
|
#include "../PlayerProcessor.hpp"
|
|
|
|
namespace mwmp
|
|
{
|
|
class ProcessorPlayerCellState : public PlayerProcessor
|
|
{
|
|
public:
|
|
ProcessorPlayerCellState()
|
|
{
|
|
BPP_INIT(ID_PLAYER_CELL_STATE)
|
|
avoidReading = true; // -V519 (PVS Studio false-positive warning)
|
|
}
|
|
|
|
virtual void Do(PlayerPacket &packet, BasePlayer *player)
|
|
{
|
|
if (isLocal() && isRequest())
|
|
static_cast<LocalPlayer *>(player)->sendCellStates();
|
|
}
|
|
};
|
|
}
|
|
|
|
|
|
#endif //OPENMW_PROCESSORPLAYERCELLSTATE_HPP
|