1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-01-25 04:23:52 +00:00
openmw/apps/essimporter/importklst.cpp

23 lines
433 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
{
2022-09-22 18:26:05 +00:00
void KLST::load(ESM::ESMReader& esm)
2015-01-19 00:06:45 +00:00
{
while (esm.isNextSub("KNAM"))
{
std::string refId = esm.getHString();
int count;
esm.getHNT(count, "CNAM");
mKillCounter[refId] = count;
}
mWerewolfKills = 0;
esm.getHNOT(mWerewolfKills, "INTV");
}
}