mirror of
				https://github.com/OpenMW/openmw.git
				synced 2025-11-01 13:56:38 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			22 lines
		
	
	
	
		
			432 B
		
	
	
	
		
			C++
		
	
	
	
	
	
			
		
		
	
	
			22 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");
 | |
|     }
 | |
| 
 | |
| }
 |