openmw-tes3coop/apps/openmw/mwmp/processors/object/ProcessorObjectDelete.hpp

26 lines
559 B
C++
Raw Normal View History

2017-04-18 03:37:32 +00:00
#ifndef OPENMW_PROCESSOROBJECTDELETE_HPP
#define OPENMW_PROCESSOROBJECTDELETE_HPP
#include "BaseObjectProcessor.hpp"
namespace mwmp
{
class ProcessorObjectDelete : public BaseObjectProcessor
{
public:
ProcessorObjectDelete()
{
BPP_INIT(ID_OBJECT_DELETE)
}
virtual void Do(ObjectPacket &packet, ObjectList &objectList)
2017-04-18 03:37:32 +00:00
{
BaseObjectProcessor::Do(packet, objectList);
2017-04-18 03:37:32 +00:00
objectList.deleteObjects(ptrCellStore);
2017-04-18 03:37:32 +00:00
}
};
}
#endif //OPENMW_PROCESSOROBJECTDELETE_HPP