#ifndef OPENMW_PROCESSORDOORSTATE_HPP #define OPENMW_PROCESSORDOORSTATE_HPP #include "../WorldProcessor.hpp" namespace mwmp { class ProcessorDoorState : public WorldProcessor { public: ProcessorDoorState() { BPP_INIT(ID_DOOR_STATE) } void Do(WorldPacket &packet, std::shared_ptr player, BaseEvent &event) override { packet.Send(true); auto objCtrl = Networking::get().getState().getObjectCtrl(); auto objects = objCtrl.copyObjects(event); Networking::get().getState().getEventCtrl().Call(player, objects); objCtrl.sendObjects(player, objects, event.cell); } }; } #endif //OPENMW_PROCESSORDOORSTATE_HPP