2017-03-31 18:36:24 +00:00
|
|
|
//
|
|
|
|
// Created by koncord on 31.03.17.
|
|
|
|
//
|
|
|
|
|
2017-04-25 19:11:33 +00:00
|
|
|
#ifndef OPENMW_PROCESSORPLAYERPOSITION_HPP
|
|
|
|
#define OPENMW_PROCESSORPLAYERPOSITION_HPP
|
2017-03-31 18:36:24 +00:00
|
|
|
|
2017-07-03 17:13:10 +00:00
|
|
|
#include "../PlayerProcessor.hpp"
|
2017-03-31 18:36:24 +00:00
|
|
|
|
|
|
|
namespace mwmp
|
|
|
|
{
|
2017-12-09 02:20:55 +00:00
|
|
|
class ProcessorPlayerPosition final: public PlayerProcessor
|
2017-03-31 18:36:24 +00:00
|
|
|
{
|
|
|
|
public:
|
2017-04-25 19:11:33 +00:00
|
|
|
ProcessorPlayerPosition()
|
2017-03-31 18:36:24 +00:00
|
|
|
{
|
2017-04-25 19:11:33 +00:00
|
|
|
BPP_INIT(ID_PLAYER_POSITION)
|
2017-03-31 18:36:24 +00:00
|
|
|
}
|
|
|
|
|
2017-12-07 23:32:39 +00:00
|
|
|
void Do(PlayerPacket &packet, const std::shared_ptr<Player> &player) override
|
2017-03-31 18:36:24 +00:00
|
|
|
{
|
|
|
|
//DEBUG_PRINTF(strPacketID);
|
2017-08-27 16:15:56 +00:00
|
|
|
if (!player->creatureStats.mDead)
|
2017-03-31 18:36:24 +00:00
|
|
|
{
|
2017-12-09 07:03:06 +00:00
|
|
|
player->sendToLoaded(packet);
|
2017-03-31 18:36:24 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
2017-04-25 19:11:33 +00:00
|
|
|
#endif //OPENMW_PROCESSORPLAYERPOSITION_HPP
|