1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-01-07 12:54:00 +00:00
OpenMW/apps/essimporter/importklst.cpp

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

23 lines
437 B
C++
Raw Normal View History

2015-01-19 00:06:45 +00:00
#include "importklst.hpp"
#include <components/esm3/esmreader.hpp>
2015-01-19 00:06:45 +00:00
namespace ESSImport
{
void KLST::load(ESM::ESMReader& esm)
{
while (esm.isNextSub("KNAM"))
{
std::string refId = esm.getHString();
2023-12-17 13:03:45 +00:00
int32_t count;
2015-01-19 00:06:45 +00:00
esm.getHNT(count, "CNAM");
mKillCounter[refId] = count;
}
mWerewolfKills = 0;
esm.getHNOT(mWerewolfKills, "INTV");
}
}