2015-01-16 23:11:36 +00:00
|
|
|
#include "importcrec.hpp"
|
|
|
|
|
2022-01-22 14:58:41 +00:00
|
|
|
#include <components/esm3/esmreader.hpp>
|
2015-01-16 23:11:36 +00:00
|
|
|
|
|
|
|
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-22 22:42:43 +00: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 11:25:52 +00:00
|
|
|
mAiPackages.add(esm);
|
2015-01-21 21:25:37 +00:00
|
|
|
|
2015-01-18 21:52:11 +00:00
|
|
|
mInventory.load(esm);
|
2015-01-16 23:11:36 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
}
|