mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-16 10:49:57 +00:00
31 lines
723 B
C++
31 lines
723 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)
|
||
|
}
|
||
|
|
||
|
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
|