mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-25 00:53:52 +00:00
28 lines
652 B
C++
28 lines
652 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 : 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
|