mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-15 22:49:55 +00:00
31 lines
663 B
C++
31 lines
663 B
C++
//
|
|
// Created by koncord on 31.03.17.
|
|
//
|
|
|
|
#ifndef OPENMW_PROCESSORPLAYERPOSITION_HPP
|
|
#define OPENMW_PROCESSORPLAYERPOSITION_HPP
|
|
|
|
#include "apps/openmw-mp/PlayerProcessor.hpp"
|
|
|
|
namespace mwmp
|
|
{
|
|
class ProcessorPlayerPosition : public PlayerProcessor
|
|
{
|
|
public:
|
|
ProcessorPlayerPosition()
|
|
{
|
|
BPP_INIT(ID_PLAYER_POSITION)
|
|
}
|
|
|
|
void Do(PlayerPacket &packet, Player &player) override
|
|
{
|
|
//DEBUG_PRINTF(strPacketID);
|
|
if (!player.creatureStats.mDead)
|
|
{
|
|
player.sendToLoaded(&packet);
|
|
}
|
|
}
|
|
};
|
|
}
|
|
|
|
#endif //OPENMW_PROCESSORPLAYERPOSITION_HPP
|