2020-01-23 10:50:34 +00:00
|
|
|
#ifndef OPENMW_PROCESSOROBJECTRESTOCK_HPP
|
|
|
|
#define OPENMW_PROCESSOROBJECTRESTOCK_HPP
|
|
|
|
|
|
|
|
#include "BaseObjectProcessor.hpp"
|
|
|
|
|
|
|
|
namespace mwmp
|
|
|
|
{
|
|
|
|
class ProcessorObjectRestock final: public BaseObjectProcessor
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
ProcessorObjectRestock()
|
|
|
|
{
|
|
|
|
BPP_INIT(ID_OBJECT_RESTOCK)
|
|
|
|
}
|
|
|
|
|
|
|
|
virtual void Do(ObjectPacket &packet, ObjectList &objectList)
|
|
|
|
{
|
|
|
|
BaseObjectProcessor::Do(packet, objectList);
|
|
|
|
|
2020-06-06 20:11:16 +00:00
|
|
|
ptrCellStore = Main::get().getCellController()->getCellStore(objectList.cell);
|
|
|
|
|
|
|
|
if (!ptrCellStore) return;
|
|
|
|
|
2020-01-23 10:50:34 +00:00
|
|
|
objectList.restockObjects(ptrCellStore);
|
|
|
|
}
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif //OPENMW_PROCESSOROBJECTRESTOCK_HPP
|