2017-05-29 01:43:52 +00:00
|
|
|
#ifndef OPENMW_PROCESSORPLAYERANIMPLAY_HPP
|
|
|
|
#define OPENMW_PROCESSORPLAYERANIMPLAY_HPP
|
|
|
|
|
2017-06-06 16:06:10 +00:00
|
|
|
#include "../PlayerProcessor.hpp"
|
2017-05-29 01:43:52 +00:00
|
|
|
|
|
|
|
namespace mwmp
|
|
|
|
{
|
2019-10-24 19:16:17 +00:00
|
|
|
class ProcessorPlayerAnimPlay final: public PlayerProcessor
|
2017-05-29 01:43:52 +00:00
|
|
|
{
|
|
|
|
public:
|
|
|
|
ProcessorPlayerAnimPlay()
|
|
|
|
{
|
|
|
|
BPP_INIT(ID_PLAYER_ANIM_PLAY)
|
|
|
|
}
|
|
|
|
|
|
|
|
virtual void Do(PlayerPacket &packet, BasePlayer *player)
|
|
|
|
{
|
2017-10-27 06:10:29 +00:00
|
|
|
if (isLocal())
|
|
|
|
{
|
2019-08-19 18:39:33 +00:00
|
|
|
LOG_MESSAGE_SIMPLE(TimedLog::LOG_INFO, "Received ID_PLAYER_ANIM_PLAY about LocalPlayer from server");
|
2017-10-27 06:10:29 +00:00
|
|
|
static_cast<LocalPlayer*>(player)->playAnimation();
|
|
|
|
}
|
|
|
|
else if (player != 0)
|
|
|
|
static_cast<DedicatedPlayer*>(player)->playAnimation();
|
2017-05-29 01:43:52 +00:00
|
|
|
}
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif //OPENMW_PROCESSORPLAYERANIMPLAY_HPP
|