2020-02-05 15:41:48 +00:00
|
|
|
#ifndef OPENMW_PROCESSORCLIENTSCRIPTLOCAL_HPP
|
|
|
|
#define OPENMW_PROCESSORCLIENTSCRIPTLOCAL_HPP
|
2017-04-18 03:37:32 +00:00
|
|
|
|
|
|
|
#include "BaseObjectProcessor.hpp"
|
|
|
|
|
|
|
|
namespace mwmp
|
|
|
|
{
|
2020-02-05 15:41:48 +00:00
|
|
|
class ProcessorClientScriptLocal final: public BaseObjectProcessor
|
2017-04-18 03:37:32 +00:00
|
|
|
{
|
|
|
|
public:
|
2020-02-05 15:41:48 +00:00
|
|
|
ProcessorClientScriptLocal()
|
2017-04-18 03:37:32 +00:00
|
|
|
{
|
2020-02-05 15:41:48 +00:00
|
|
|
BPP_INIT(ID_CLIENT_SCRIPT_LOCAL)
|
2017-04-18 03:37:32 +00:00
|
|
|
}
|
|
|
|
|
2018-05-12 21:42:24 +00:00
|
|
|
virtual void Do(ObjectPacket &packet, ObjectList &objectList)
|
2017-04-18 03:37:32 +00:00
|
|
|
{
|
2018-05-12 21:42:24 +00:00
|
|
|
BaseObjectProcessor::Do(packet, objectList);
|
2017-04-18 03:37:32 +00:00
|
|
|
|
2020-06-06 20:11:16 +00:00
|
|
|
ptrCellStore = Main::get().getCellController()->getCellStore(objectList.cell);
|
|
|
|
|
|
|
|
if (!ptrCellStore) return;
|
|
|
|
|
2020-02-10 05:58:35 +00:00
|
|
|
objectList.setClientLocals(ptrCellStore);
|
2017-04-18 03:37:32 +00:00
|
|
|
}
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
2020-02-05 15:41:48 +00:00
|
|
|
#endif //OPENMW_PROCESSORCLIENTSCRIPTLOCAL_HPP
|