2018-07-14 22:08:31 +00:00
|
|
|
#ifndef OPENMW_PROCESSOROBJECTACTIVATE_HPP
|
|
|
|
#define OPENMW_PROCESSOROBJECTACTIVATE_HPP
|
|
|
|
|
|
|
|
#include "BaseObjectProcessor.hpp"
|
|
|
|
|
|
|
|
namespace mwmp
|
|
|
|
{
|
2019-10-24 19:16:17 +00:00
|
|
|
class ProcessorObjectActivate final: public BaseObjectProcessor
|
2018-07-14 22:08:31 +00:00
|
|
|
{
|
|
|
|
public:
|
|
|
|
ProcessorObjectActivate()
|
|
|
|
{
|
|
|
|
BPP_INIT(ID_OBJECT_ACTIVATE)
|
|
|
|
}
|
|
|
|
|
|
|
|
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;
|
|
|
|
|
2018-07-15 00:16:04 +00:00
|
|
|
objectList.activateObjects(ptrCellStore);
|
2018-07-14 22:08:31 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif //OPENMW_PROCESSOROBJECTACTIVATE_HPP
|