2015-01-16 23:11:36 +00:00
|
|
|
#include "importnpcc.hpp"
|
|
|
|
|
|
|
|
#include <components/esm/esmreader.hpp>
|
|
|
|
|
|
|
|
namespace ESSImport
|
|
|
|
{
|
|
|
|
|
|
|
|
void NPCC::load(ESM::ESMReader &esm)
|
|
|
|
{
|
|
|
|
esm.getHNT(mNPDT, "NPDT");
|
|
|
|
|
2015-01-21 21:25:37 +00:00
|
|
|
// FIXME: use AiPackageList, need to fix getSubName()
|
|
|
|
if (esm.isNextSub("AI_W"))
|
|
|
|
esm.skipHSub();
|
2015-01-18 21:52:11 +00:00
|
|
|
if (esm.isNextSub("AI_E"))
|
2015-01-18 18:59:29 +00:00
|
|
|
esm.skipHSub();
|
2015-01-18 21:52:11 +00:00
|
|
|
if (esm.isNextSub("AI_T"))
|
|
|
|
esm.skipHSub();
|
|
|
|
if (esm.isNextSub("AI_F"))
|
|
|
|
esm.skipHSub();
|
|
|
|
|
|
|
|
mInventory.load(esm);
|
2015-01-16 23:11:36 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
}
|