2020-05-15 10:29:30 +00:00
|
|
|
#ifndef OPENMW_PROCESSOROBJECTMISCELLANEOUS_HPP
|
|
|
|
#define OPENMW_PROCESSOROBJECTMISCELLANEOUS_HPP
|
|
|
|
|
2020-05-15 23:51:11 +00:00
|
|
|
#include "BaseObjectProcessor.hpp"
|
2020-05-15 10:29:30 +00:00
|
|
|
|
|
|
|
namespace mwmp
|
|
|
|
{
|
2020-05-15 23:51:11 +00:00
|
|
|
class ProcessorObjectMiscellaneous final: public BaseObjectProcessor
|
2020-05-15 10:29:30 +00:00
|
|
|
{
|
|
|
|
public:
|
|
|
|
ProcessorObjectMiscellaneous()
|
|
|
|
{
|
|
|
|
BPP_INIT(ID_OBJECT_MISCELLANEOUS)
|
|
|
|
}
|
|
|
|
|
|
|
|
virtual void Do(ObjectPacket &packet, ObjectList &objectList)
|
|
|
|
{
|
2020-05-15 23:51:11 +00:00
|
|
|
BaseObjectProcessor::Do(packet, objectList);
|
|
|
|
|
2020-06-06 20:11:16 +00:00
|
|
|
ptrCellStore = Main::get().getCellController()->getCellStore(objectList.cell);
|
|
|
|
|
|
|
|
if (!ptrCellStore) return;
|
|
|
|
|
2020-05-15 23:51:11 +00:00
|
|
|
objectList.setGoldPoolsForObjects(ptrCellStore);
|
2020-05-15 10:29:30 +00:00
|
|
|
}
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif //OPENMW_PROCESSOROBJECTMISCELLANEOUS_HPP
|