mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-21 11:53:51 +00:00
28 lines
701 B
C++
28 lines
701 B
C++
|
#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);
|
||
|
|
||
|
Script::Call<Script::CallbackIdentity("OnPlayerShapeshift")>(player.getId());
|
||
|
}
|
||
|
};
|
||
|
}
|
||
|
|
||
|
#endif //OPENMW_PROCESSORPLAYERSHAPESHIFT_HPP
|