1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-01-25 04:23:50 +00:00
openmw-tes3mp/apps/openmw/mwmp/processors/object/ProcessorClientScriptLocal.hpp

30 lines
729 B
C++
Raw Normal View History

#ifndef OPENMW_PROCESSORCLIENTSCRIPTLOCAL_HPP
#define OPENMW_PROCESSORCLIENTSCRIPTLOCAL_HPP
2017-04-18 03:37:32 +00:00
#include "BaseObjectProcessor.hpp"
namespace mwmp
{
class ProcessorClientScriptLocal final: public BaseObjectProcessor
2017-04-18 03:37:32 +00:00
{
public:
ProcessorClientScriptLocal()
2017-04-18 03:37:32 +00:00
{
BPP_INIT(ID_CLIENT_SCRIPT_LOCAL)
2017-04-18 03:37:32 +00:00
}
virtual void Do(ObjectPacket &packet, ObjectList &objectList)
2017-04-18 03:37:32 +00:00
{
BaseObjectProcessor::Do(packet, objectList);
2017-04-18 03:37:32 +00:00
ptrCellStore = Main::get().getCellController()->getCellStore(objectList.cell);
if (!ptrCellStore) return;
objectList.setClientLocals(ptrCellStore);
2017-04-18 03:37:32 +00:00
}
};
}
#endif //OPENMW_PROCESSORCLIENTSCRIPTLOCAL_HPP