mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-25 01:23:52 +00:00
9350e1d484
Create an entirely new PlayerCast packet for that purpose, but rename the already existing but unused ActorInteraction into ActorCast.
27 lines
652 B
C++
27 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
|