mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2024-12-29 03:19:44 +00:00
20 lines
399 B
C++
20 lines
399 B
C++
#include "importnpcc.hpp"
|
|
|
|
#include <components/esm3/esmreader.hpp>
|
|
|
|
namespace ESSImport
|
|
{
|
|
|
|
void NPCC::load(ESM::ESMReader& esm)
|
|
{
|
|
esm.getHNT(mNPDT, "NPDT");
|
|
|
|
while (esm.isNextSub("AI_W") || esm.isNextSub("AI_E") || esm.isNextSub("AI_T") || esm.isNextSub("AI_F")
|
|
|| esm.isNextSub("AI_A"))
|
|
mAiPackages.add(esm);
|
|
|
|
mInventory.load(esm);
|
|
}
|
|
|
|
}
|