You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
openmw-tes3mp/apps/essimporter/importacdt.cpp

29 lines
603 B
C++

#include "importacdt.hpp"
#include <components/esm/esmreader.hpp>
namespace ESSImport
{
void ActorData::load(ESM::ESMReader &esm)
{
esm.getHNT(mACDT, "ACDT");
ACSC acsc;
esm.getHNOT(acsc, "ACSC");
esm.getHNOT(acsc, "ACSL");
if (esm.isNextSub("CHRD")) // npc only
esm.getHExact(mSkills, 27*2*sizeof(int));
if (esm.isNextSub("CRED")) // creature only
esm.getHExact(mCombatStats, 3*2*sizeof(int));
mScript = esm.getHNOString("SCRI");
if (esm.isNextSub("ND3D"))
esm.skipHSub();
}
}