You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
openmw/apps/essimporter/importscpt.cpp

26 lines
515 B
C++

#include "importscpt.hpp"
#include <components/esm3/esmreader.hpp>
namespace ESSImport
{
void SCPT::load(ESM::ESMReader& esm)
{
esm.getHNT("SCHD", mSCHD.mName.mData, mSCHD.mNumShorts, mSCHD.mNumLongs, mSCHD.mNumFloats,
mSCHD.mScriptDataSize, mSCHD.mStringTableSize);
mSCRI.load(esm);
mRefNum = -1;
if (esm.isNextSub("RNAM"))
{
mRunning = true;
esm.getHT(mRefNum);
}
else
mRunning = false;
}
}