mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-31 21:45:33 +00:00
27 lines
749 B
C++
27 lines
749 B
C++
#ifndef OPENMW_PROCESSORPLAYERSHAPESHIFT_HPP
|
|
#define OPENMW_PROCESSORPLAYERSHAPESHIFT_HPP
|
|
|
|
#include "../PlayerProcessor.hpp"
|
|
|
|
namespace mwmp
|
|
{
|
|
class ProcessorPlayerShapeshift final: public PlayerProcessor
|
|
{
|
|
public:
|
|
ProcessorPlayerShapeshift()
|
|
{
|
|
BPP_INIT(ID_PLAYER_SHAPESHIFT)
|
|
}
|
|
|
|
void Do(PlayerPacket &packet, const std::shared_ptr<Player> &player) override
|
|
{
|
|
LOG_MESSAGE_SIMPLE(Log::LOG_INFO, "Received %s from %s", strPacketID.c_str(), player->npc.mName.c_str());
|
|
|
|
packet.Send(true);
|
|
|
|
Networking::get().getState().getEventCtrl().Call<CoreEvent::ON_PLAYER_SHAPESHIFT>(player.get());
|
|
}
|
|
};
|
|
}
|
|
|
|
#endif //OPENMW_PROCESSORPLAYERSHAPESHIFT_HPP
|