2017-07-15 06:02:19 +00:00
|
|
|
#ifndef OPENMW_PROCESSORPLAYERSHAPESHIFT_HPP
|
|
|
|
#define OPENMW_PROCESSORPLAYERSHAPESHIFT_HPP
|
|
|
|
|
|
|
|
#include "../PlayerProcessor.hpp"
|
|
|
|
|
|
|
|
namespace mwmp
|
|
|
|
{
|
|
|
|
class ProcessorPlayerShapeshift : public PlayerProcessor
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
ProcessorPlayerShapeshift()
|
|
|
|
{
|
|
|
|
BPP_INIT(ID_PLAYER_SHAPESHIFT)
|
|
|
|
}
|
|
|
|
|
2017-08-27 16:15:56 +00:00
|
|
|
void Do(PlayerPacket &packet, std::shared_ptr<Player> player) override
|
2017-07-15 06:02:19 +00:00
|
|
|
{
|
2017-08-27 16:15:56 +00:00
|
|
|
LOG_MESSAGE_SIMPLE(Log::LOG_INFO, "Received %s from %s", strPacketID.c_str(), player->npc.mName.c_str());
|
2017-07-15 06:02:19 +00:00
|
|
|
|
|
|
|
packet.Send(true);
|
|
|
|
|
2017-08-27 16:15:56 +00:00
|
|
|
Networking::get().getState().getEventCtrl().Call<CoreEvent::ON_PLAYER_SHAPESHIFT>(player);
|
2017-07-15 06:02:19 +00:00
|
|
|
}
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif //OPENMW_PROCESSORPLAYERSHAPESHIFT_HPP
|