forked from teamnwah/openmw-tes3coop
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.
23 lines
432 B
C++
23 lines
432 B
C++
#include "importklst.hpp"
|
|
|
|
#include <components/esm/esmreader.hpp>
|
|
|
|
namespace ESSImport
|
|
{
|
|
|
|
void KLST::load(ESM::ESMReader &esm)
|
|
{
|
|
while (esm.isNextSub("KNAM"))
|
|
{
|
|
std::string refId = esm.getHString();
|
|
int count;
|
|
esm.getHNT(count, "CNAM");
|
|
mKillCounter[refId] = count;
|
|
}
|
|
|
|
mWerewolfKills = 0;
|
|
esm.getHNOT(mWerewolfKills, "INTV");
|
|
}
|
|
|
|
}
|