#ifndef OPENMW_PROCESSORACTORATTACK_HPP #define OPENMW_PROCESSORACTORATTACK_HPP #include "apps/openmw-mp/ActorProcessor.hpp" namespace mwmp { class ProcessorActorAttack : public ActorProcessor { public: ProcessorActorAttack() { BPP_INIT(ID_ACTOR_ATTACK) } void Do(ActorPacket &packet, Player &player, BaseActorList &actorList) override { // Send only to players who have the cell loaded Cell *serverCell = CellController::get()->getCell(&actorList.cell); if (serverCell != nullptr) serverCell->sendToLoaded(&packet, &actorList); } }; } #endif //OPENMW_PROCESSORACTORATTACK_HPP