2015-01-17 00:11:36 +01:00
|
|
|
#include "importnpcc.hpp"
|
|
|
|
|
2022-01-22 15:58:41 +01:00
|
|
|
#include <components/esm3/esmreader.hpp>
|
2015-01-17 00:11:36 +01:00
|
|
|
|
|
|
|
namespace ESSImport
|
|
|
|
{
|
|
|
|
|
2022-09-22 21:26:05 +03:00
|
|
|
void NPCC::load(ESM::ESMReader& esm)
|
2015-01-17 00:11:36 +01:00
|
|
|
{
|
|
|
|
esm.getHNT(mNPDT, "NPDT");
|
|
|
|
|
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")
|
2022-09-22 21:26:05 +03:00
|
|
|
|| esm.isNextSub("AI_A"))
|
2015-02-14 12:25:52 +01:00
|
|
|
mAiPackages.add(esm);
|
2015-01-18 22:52:11 +01:00
|
|
|
|
|
|
|
mInventory.load(esm);
|
2015-01-17 00:11:36 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
}
|