2019-08-25 06:35:23 +00:00
|
|
|
#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
|
|
|
|
{
|
2019-10-24 19:16:17 +00:00
|
|
|
class ProcessorPlayerCast final: public PlayerProcessor
|
2019-08-25 06:35:23 +00:00
|
|
|
{
|
|
|
|
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
|