2015-01-22 03:54:33 +01:00
|
|
|
#include "importscpt.hpp"
|
|
|
|
|
2022-01-22 15:58:41 +01:00
|
|
|
#include <components/esm3/esmreader.hpp>
|
2015-01-22 03:54:33 +01:00
|
|
|
|
|
|
|
namespace ESSImport
|
|
|
|
{
|
|
|
|
|
|
|
|
void SCPT::load(ESM::ESMReader& esm)
|
|
|
|
{
|
2024-06-17 22:46:13 +02:00
|
|
|
esm.getHNT("SCHD", mSCHD.mName.mData, mSCHD.mNumShorts, mSCHD.mNumLongs, mSCHD.mNumFloats,
|
|
|
|
mSCHD.mScriptDataSize, mSCHD.mStringTableSize);
|
2015-01-22 03:54:33 +01:00
|
|
|
|
|
|
|
mSCRI.load(esm);
|
|
|
|
|
2015-01-25 01:53:59 +01:00
|
|
|
mRefNum = -1;
|
2015-01-25 00:17:37 +01:00
|
|
|
if (esm.isNextSub("RNAM"))
|
|
|
|
{
|
2015-01-25 01:53:59 +01:00
|
|
|
mRunning = true;
|
|
|
|
esm.getHT(mRefNum);
|
2015-01-25 00:17:37 +01:00
|
|
|
}
|
|
|
|
else
|
2015-01-25 01:53:59 +01:00
|
|
|
mRunning = false;
|
2015-01-22 03:54:33 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
}
|