forked from mirror/openmw-tes3mp
28 lines
603 B
C++
28 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();
|
|
}
|
|
|
|
}
|