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