1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-01-16 18:19:55 +00:00

ESSImport: document targeted scripts (not implemented yet)

This commit is contained in:
scrawl 2015-01-25 01:53:59 +01:00
parent 9d3f0b2ed5
commit 315f9a98ad
3 changed files with 7 additions and 8 deletions

View file

@ -10,7 +10,7 @@ namespace ESSImport
void convertSCPT(const SCPT &scpt, ESM::GlobalScript &out)
{
out.mId = Misc::StringUtils::lowerCase(scpt.mSCHD.mName.toString());
out.mRunning = scpt.mHasRNAM;
out.mRunning = scpt.mRunning;
convertSCRI(scpt.mSCRI, out.mLocals);
}

View file

@ -13,14 +13,14 @@ namespace ESSImport
mSCRI.load(esm);
mRNAM = -1;
mRefNum = -1;
if (esm.isNextSub("RNAM"))
{
mHasRNAM = true;
esm.getHT(mRNAM);
mRunning = true;
esm.getHT(mRefNum);
}
else
mHasRNAM = false;
mRunning = false;
}
}

View file

@ -14,7 +14,6 @@ namespace ESSImport
{
// A running global script
// TODO: test how targeted scripts are saved
struct SCPT
{
ESM::Script::SCHD mSCHD;
@ -22,8 +21,8 @@ namespace ESSImport
// values of local variables
SCRI mSCRI;
bool mHasRNAM;
int mRNAM; // unknown, seems to be -1 for some scripts, some huge integer for others
bool mRunning;
int mRefNum; // Targeted reference, -1: no reference
void load(ESM::ESMReader& esm);
};