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
|
|
|
|
{
|
|
|
|
|
|
|
|
// A running global script
|
|
|
|
// TODO: test how targeted scripts are saved
|
|
|
|
struct SCPT
|
|
|
|
{
|
|
|
|
ESM::Script::SCHD mSCHD;
|
|
|
|
|
|
|
|
// values of local variables
|
|
|
|
SCRI mSCRI;
|
|
|
|
|
2015-01-24 23:17:37 +00:00
|
|
|
bool mHasRNAM;
|
2015-01-22 02:54:33 +00:00
|
|
|
int mRNAM; // unknown, seems to be -1 for some scripts, some huge integer for others
|
|
|
|
|
|
|
|
void load(ESM::ESMReader& esm);
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif
|