#ifndef OPENMW_PROCESSORACTOREQUIPMENT_HPP #define OPENMW_PROCESSORACTOREQUIPMENT_HPP #include #include "../ActorProcessor.hpp" namespace mwmp { class ProcessorActorEquipment : public ActorProcessor { public: ProcessorActorEquipment() { BPP_INIT(ID_ACTOR_EQUIPMENT) } void Do(ActorPacket &packet, std::shared_ptr player, BaseActorList &actorList) override { std::vector> actors; for (auto &baseActor : actorList.baseActors) { Actor *actor = new Actor; actor->actor = baseActor; actors.emplace_back(actor); } Networking::get().getState().getEventCtrl().Call(player, actors); Networking::get().getState().getActorCtrl().sendActors(player, actors, true); } }; } #endif //OPENMW_PROCESSORACTOREQUIPMENT_HPP