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)
|
|
|
|
}
|
|
|
|
|
|
|
|
void Do(PlayerPacket &packet, Player &player) override
|
|
|
|
{
|
|
|
|
LOG_MESSAGE_SIMPLE(Log::LOG_INFO, "Received %s from %s", strPacketID.c_str(), player.npc.mName.c_str());
|
|
|
|
|
|
|
|
packet.Send(true);
|
|
|
|
|
2019-01-16 15:52:22 +00:00
|
|
|
Plugin::Call<CallbackIndex("OnPlayerShapeshift")>(player.getId());
|
2017-07-15 06:02:19 +00:00
|
|
|
}
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif //OPENMW_PROCESSORPLAYERSHAPESHIFT_HPP
|