openmw-tes3coop/apps/openmw-mp/processors/world/ProcessorObjectDelete.hpp

30 lines
661 B
C++
Raw Normal View History

//
// Created by koncord on 03.04.17.
//
#ifndef OPENMW_PROCESSOROBJECTDELETE_HPP
#define OPENMW_PROCESSOROBJECTDELETE_HPP
#include "apps/openmw-mp/WorldProcessor.hpp"
namespace mwmp
{
class ProcessorObjectDelete : public WorldProcessor
{
public:
ProcessorObjectDelete()
{
BPP_INIT(ID_OBJECT_DELETE)
}
void Do(WorldPacket &packet, Player &player, BaseEvent &event) override
{
packet.Send(true);
Script::Call<Script::CallbackIdentity("OnObjectDelete")>(player.getId(), event.cell.getDescription().c_str());
}
};
}
#endif //OPENMW_PROCESSOROBJECTDELETE_HPP