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)
|
|
|
|
{
|
2023-06-02 14:54:27 +00:00
|
|
|
esm.getHNTSized<52>(mSCHD, "SCHD");
|
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
|
|
|
}
|
|
|
|
|
|
|
|
}
|