2015-01-17 00:11:36 +01:00
|
|
|
#include "importcrec.hpp"
|
|
|
|
|
2022-01-22 15:58:41 +01:00
|
|
|
#include <components/esm3/esmreader.hpp>
|
2015-01-17 00:11:36 +01:00
|
|
|
|
|
|
|
namespace ESSImport
|
|
|
|
{
|
|
|
|
|
|
|
|
void CREC::load(ESM::ESMReader& esm)
|
|
|
|
{
|
|
|
|
esm.getHNT(mIndex, "INDX");
|
2015-01-18 22:52:11 +01: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-22 23:42:43 +01:00
|
|
|
while (esm.isNextSub("AI_W") || esm.isNextSub("AI_E") || esm.isNextSub("AI_T") || esm.isNextSub("AI_F")
|
|
|
|
|| esm.isNextSub("AI_A"))
|
2015-02-14 12:25:52 +01:00
|
|
|
mAiPackages.add(esm);
|
2015-01-21 22:25:37 +01:00
|
|
|
|
2015-01-18 22:52:11 +01:00
|
|
|
mInventory.load(esm);
|
2015-01-17 00:11:36 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
}
|