1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-01-03 17:37:18 +00:00
OpenMW/apps/essimporter/importnpcc.cpp

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

20 lines
476 B
C++
Raw Normal View History

#include "importnpcc.hpp"
#include <components/esm3/esmreader.hpp>
namespace ESSImport
{
void NPCC::load(ESM::ESMReader& esm)
{
2023-12-17 13:03:45 +00:00
esm.getHNT("NPDT", mNPDT.mDisposition, mNPDT.unknown, mNPDT.mReputation, mNPDT.unknown2, mNPDT.mIndex);
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);
mInventory.load(esm);
}
}