1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-01-20 16:53:52 +00:00
openmw-tes3mp/apps/openmw-mp/processors/player/ProcessorPlayerPosition.hpp
2017-12-09 15:03:06 +08:00

31 lines
680 B
C++

//
// Created by koncord on 31.03.17.
//
#ifndef OPENMW_PROCESSORPLAYERPOSITION_HPP
#define OPENMW_PROCESSORPLAYERPOSITION_HPP
#include "../PlayerProcessor.hpp"
namespace mwmp
{
class ProcessorPlayerPosition final: public PlayerProcessor
{
public:
ProcessorPlayerPosition()
{
BPP_INIT(ID_PLAYER_POSITION)
}
void Do(PlayerPacket &packet, const std::shared_ptr<Player> &player) override
{
//DEBUG_PRINTF(strPacketID);
if (!player->creatureStats.mDead)
{
player->sendToLoaded(packet);
}
}
};
}
#endif //OPENMW_PROCESSORPLAYERPOSITION_HPP