openmw-tes3coop/apps/openmw/mwmp/processors/player/ProcessorPlayerMap.hpp
2017-07-03 09:28:27 +03:00

26 lines
546 B
C++

#ifndef OPENMW_PROCESSORPLAYERMAP_HPP
#define OPENMW_PROCESSORPLAYERMAP_HPP
#include "../PlayerProcessor.hpp"
namespace mwmp
{
class ProcessorPlayerMap : public PlayerProcessor
{
public:
ProcessorPlayerMap()
{
BPP_INIT(ID_PLAYER_MAP)
}
virtual void Do(PlayerPacket &packet, BasePlayer *player)
{
if (isLocal())
{
static_cast<LocalPlayer*>(player)->setMapExplored();
}
}
};
}
#endif //OPENMW_PROCESSORPLAYERMAP_HPP