1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-02-02 07:45:32 +00:00
openmw-tes3mp/apps/openmw-mp/processors/player/ProcessorPlayerCast.hpp
David Cernat 9350e1d484 [General] Split up Attack packets into Attack and Cast ones
Create an entirely new PlayerCast packet for that purpose, but rename the already existing but unused ActorInteraction into ActorCast.
2019-08-25 09:35:23 +03:00

30 lines
720 B
C++

#ifndef OPENMW_PROCESSORPLAYERCAST_HPP
#define OPENMW_PROCESSORPLAYERCAST_HPP
#include "../PlayerProcessor.hpp"
namespace mwmp
{
class ProcessorPlayerCast : public PlayerProcessor
{
PlayerPacketController *playerController;
public:
ProcessorPlayerCast()
{
BPP_INIT(ID_PLAYER_CAST)
playerController = Networking::get().getPlayerPacketController();
}
void Do(PlayerPacket &packet, Player &player) override
{
DEBUG_PRINTF(strPacketID.c_str());
if (!player.creatureStats.mDead)
{
player.sendToLoaded(&packet);
}
}
};
}
#endif //OPENMW_PROCESSORPLAYERCAST_HPP