mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-15 17:19:56 +00:00
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");
|
||
|
}
|
||
|
|
||
|
}
|