mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-01-04 02:41:19 +00:00
26 lines
461 B
C++
26 lines
461 B
C++
#include "importnpcc.hpp"
|
|
|
|
#include <components/esm/esmreader.hpp>
|
|
|
|
namespace ESSImport
|
|
{
|
|
|
|
void NPCC::load(ESM::ESMReader &esm)
|
|
{
|
|
mIndex = 0;
|
|
esm.getHNOT(mIndex, "INDX");
|
|
|
|
esm.getHNT(mNPDT, "NPDT");
|
|
|
|
if (esm.isNextSub("AI_E"))
|
|
esm.skipHSub();
|
|
if (esm.isNextSub("AI_T"))
|
|
esm.skipHSub();
|
|
if (esm.isNextSub("AI_F"))
|
|
esm.skipHSub();
|
|
|
|
mInventory.load(esm);
|
|
}
|
|
|
|
}
|