mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-24 19:53:51 +00:00
30 lines
731 B
C++
30 lines
731 B
C++
|
#ifndef OPENMW_PROCESSORPLAYERCOOLDOWNS_HPP
|
||
|
#define OPENMW_PROCESSORPLAYERCOOLDOWNS_HPP
|
||
|
|
||
|
|
||
|
#include "../PlayerProcessor.hpp"
|
||
|
|
||
|
namespace mwmp
|
||
|
{
|
||
|
class ProcessorPlayerCooldowns final: public PlayerProcessor
|
||
|
{
|
||
|
public:
|
||
|
ProcessorPlayerCooldowns()
|
||
|
{
|
||
|
BPP_INIT(ID_PLAYER_COOLDOWNS)
|
||
|
}
|
||
|
|
||
|
virtual void Do(PlayerPacket &packet, BasePlayer *player)
|
||
|
{
|
||
|
if (!isLocal()) return;
|
||
|
|
||
|
LOG_MESSAGE_SIMPLE(TimedLog::LOG_INFO, "Received ID_PLAYER_COOLDOWNS about LocalPlayer from server");
|
||
|
|
||
|
LocalPlayer &localPlayer = static_cast<LocalPlayer&>(*player);
|
||
|
localPlayer.setCooldowns();
|
||
|
}
|
||
|
};
|
||
|
}
|
||
|
|
||
|
#endif //OPENMW_PROCESSORPLAYERCOOLDOWNS_HPP
|