1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-01-24 12:53:52 +00:00
openmw-tes3mp/apps/openmw/mwmp/processors/player/ProcessorPlayerCast.hpp
2019-10-24 22:16:17 +03:00

27 lines
657 B
C++

#ifndef OPENMW_PROCESSORPLAYERCAST_HPP
#define OPENMW_PROCESSORPLAYERCAST_HPP
#include "apps/openmw/mwmp/Main.hpp"
#include "../PlayerProcessor.hpp"
#include "apps/openmw/mwmp/MechanicsHelper.hpp"
namespace mwmp
{
class ProcessorPlayerCast final: public PlayerProcessor
{
public:
ProcessorPlayerCast()
{
BPP_INIT(ID_PLAYER_CAST)
}
virtual void Do(PlayerPacket &packet, BasePlayer *player)
{
if (player != 0)
MechanicsHelper::processCast(player->cast, static_cast<DedicatedPlayer*>(player)->getPtr());
}
};
}
#endif //OPENMW_PROCESSORPLAYERCAST_HPP