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

25 lines
559 B
C++

#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)
{
BaseObjectProcessor::Do(packet, objectList);
objectList.deleteObjects(ptrCellStore);
}
};
}
#endif //OPENMW_PROCESSOROBJECTDELETE_HPP