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.
32 lines
663 B
C++
32 lines
663 B
C++
7 years ago
|
//
|
||
|
// Created by koncord on 31.03.17.
|
||
|
//
|
||
|
|
||
7 years ago
|
#ifndef OPENMW_PROCESSORPLAYERPOSITION_HPP
|
||
|
#define OPENMW_PROCESSORPLAYERPOSITION_HPP
|
||
7 years ago
|
|
||
7 years ago
|
#include "apps/openmw-mp/PlayerProcessor.hpp"
|
||
7 years ago
|
|
||
|
namespace mwmp
|
||
|
{
|
||
7 years ago
|
class ProcessorPlayerPosition : public PlayerProcessor
|
||
7 years ago
|
{
|
||
|
public:
|
||
7 years ago
|
ProcessorPlayerPosition()
|
||
7 years ago
|
{
|
||
7 years ago
|
BPP_INIT(ID_PLAYER_POSITION)
|
||
7 years ago
|
}
|
||
|
|
||
|
void Do(PlayerPacket &packet, Player &player) override
|
||
|
{
|
||
|
//DEBUG_PRINTF(strPacketID);
|
||
|
if (!player.creatureStats.mDead)
|
||
|
{
|
||
|
player.sendToLoaded(&packet);
|
||
|
}
|
||
|
}
|
||
|
};
|
||
|
}
|
||
|
|
||
7 years ago
|
#endif //OPENMW_PROCESSORPLAYERPOSITION_HPP
|