1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2024-12-28 00:15:06 +00:00
OpenMW/apps/essimporter/importklst.cpp
2022-09-22 21:35:26 +03:00

23 lines
433 B
C++

#include "importklst.hpp"
#include <components/esm3/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");
}
}