1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-01-19 23:53:52 +00:00
openmw-tes3mp/apps/openmw-mp/processors/player/ProcessorPlayerCast.hpp

29 lines
642 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)
}
void Do(PlayerPacket &packet, Player &player) override
{
DEBUG_PRINTF(strPacketID.c_str());
if (!player.creatureStats.mDead)
{
player.sendToLoaded(&packet);
}
}
};
}
#endif //OPENMW_PROCESSORPLAYERCAST_HPP