2015-01-16 23:11:36 +00:00
|
|
|
#include "importcrec.hpp"
|
|
|
|
|
|
|
|
#include <components/esm/esmreader.hpp>
|
|
|
|
|
|
|
|
namespace ESSImport
|
|
|
|
{
|
|
|
|
|
|
|
|
void CREC::load(ESM::ESMReader &esm)
|
|
|
|
{
|
|
|
|
esm.getHNT(mIndex, "INDX");
|
2015-01-18 21:52:11 +00:00
|
|
|
|
|
|
|
// equivalent of ESM::Creature XSCL? probably don't have to convert this,
|
|
|
|
// since the value can't be changed
|
|
|
|
float scale;
|
|
|
|
esm.getHNOT(scale, "XSCL");
|
|
|
|
|
2015-01-21 21:25:37 +00:00
|
|
|
// FIXME: use AiPackageList, need to fix getSubName()
|
|
|
|
if (esm.isNextSub("AI_W"))
|
|
|
|
esm.skipHSub();
|
|
|
|
if (esm.isNextSub("AI_E"))
|
|
|
|
esm.skipHSub();
|
|
|
|
if (esm.isNextSub("AI_T"))
|
|
|
|
esm.skipHSub();
|
|
|
|
if (esm.isNextSub("AI_F"))
|
|
|
|
esm.skipHSub();
|
|
|
|
|
2015-01-18 21:52:11 +00:00
|
|
|
mInventory.load(esm);
|
2015-01-16 23:11:36 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
}
|