1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-01-10 06:39:49 +00:00
OpenMW/apps/essimporter/importscpt.cpp

26 lines
545 B
C++
Raw Normal View History

#include "importscpt.hpp"
#include <components/esm3/esmreader.hpp>
namespace ESSImport
{
2022-09-22 18:26:05 +00:00
void SCPT::load(ESM::ESMReader& esm)
{
2023-12-17 13:03:45 +00:00
esm.getHNT("SCHD", mSCHD.mName.mData, mSCHD.mData.mNumShorts, mSCHD.mData.mNumLongs, mSCHD.mData.mNumFloats,
mSCHD.mData.mScriptDataSize, mSCHD.mData.mStringTableSize);
mSCRI.load(esm);
mRefNum = -1;
if (esm.isNextSub("RNAM"))
{
mRunning = true;
esm.getHT(mRefNum);
}
else
mRunning = false;
}
}