openmw-tes3coop/apps/openmw-mp/processors/player/ProcessorPlayerMap.hpp

28 lines
594 B
C++
Raw Normal View History

#ifndef OPENMW_PROCESSORPLAYERMAP_HPP
#define OPENMW_PROCESSORPLAYERMAP_HPP
#include "apps/openmw-mp/PlayerProcessor.hpp"
namespace mwmp
{
class ProcessorPlayerMap : public PlayerProcessor
{
public:
ProcessorPlayerMap()
{
BPP_INIT(ID_PLAYER_MAP)
}
void Do(PlayerPacket &packet, Player &player) override
{
DEBUG_PRINTF(strPacketID.c_str());
packet.Send(true);
Script::Call<Script::CallbackIdentity("OnPlayerMap")>(player.getId());
}
};
}
#endif //OPENMW_PROCESSORPLAYERMAP_HPP