2015-01-22 02:54:33 +00:00
|
|
|
#ifndef OPENMW_ESSIMPORT_IMPORTSCPT_H
|
|
|
|
#define OPENMW_ESSIMPORT_IMPORTSCPT_H
|
|
|
|
|
|
|
|
#include "importscri.hpp"
|
|
|
|
|
|
|
|
#include <components/esm/loadscpt.hpp>
|
|
|
|
|
|
|
|
namespace ESM
|
|
|
|
{
|
|
|
|
class ESMReader;
|
|
|
|
}
|
|
|
|
|
|
|
|
namespace ESSImport
|
|
|
|
{
|
|
|
|
|
2019-12-05 20:42:12 +00:00
|
|
|
struct SCHD
|
|
|
|
{
|
|
|
|
ESM::NAME32 mName;
|
|
|
|
ESM::Script::SCHDstruct mData;
|
|
|
|
};
|
|
|
|
|
2015-01-22 02:54:33 +00:00
|
|
|
// A running global script
|
|
|
|
struct SCPT
|
|
|
|
{
|
2019-12-05 20:42:12 +00:00
|
|
|
SCHD mSCHD;
|
2015-01-22 02:54:33 +00:00
|
|
|
|
|
|
|
// values of local variables
|
|
|
|
SCRI mSCRI;
|
|
|
|
|
2015-01-25 00:53:59 +00:00
|
|
|
bool mRunning;
|
|
|
|
int mRefNum; // Targeted reference, -1: no reference
|
2015-01-22 02:54:33 +00:00
|
|
|
|
|
|
|
void load(ESM::ESMReader& esm);
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif
|