2017-07-15 06:02:19 +00:00
|
|
|
#ifndef OPENMW_PROCESSORPLAYERSHAPESHIFT_HPP
|
|
|
|
#define OPENMW_PROCESSORPLAYERSHAPESHIFT_HPP
|
|
|
|
|
|
|
|
#include "../PlayerProcessor.hpp"
|
|
|
|
|
|
|
|
namespace mwmp
|
|
|
|
{
|
2017-12-09 02:18:17 +00:00
|
|
|
class ProcessorPlayerShapeshift final: public PlayerProcessor
|
2017-07-15 06:02:19 +00:00
|
|
|
{
|
|
|
|
public:
|
|
|
|
ProcessorPlayerShapeshift()
|
|
|
|
{
|
|
|
|
BPP_INIT(ID_PLAYER_SHAPESHIFT)
|
|
|
|
}
|
|
|
|
|
|
|
|
virtual void Do(PlayerPacket &packet, BasePlayer *player)
|
|
|
|
{
|
|
|
|
if (isLocal())
|
|
|
|
{
|
|
|
|
static_cast<LocalPlayer *>(player)->setShapeshift();
|
|
|
|
}
|
|
|
|
else if (player != 0)
|
|
|
|
{
|
|
|
|
static_cast<DedicatedPlayer *>(player)->setShapeshift();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif //OPENMW_PROCESSORPLAYERSHAPESHIFT_HPP
|