mirror of
				https://github.com/OpenMW/openmw.git
				synced 2025-11-04 06:56:39 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			22 lines
		
	
	
	
		
			406 B
		
	
	
	
		
			C++
		
	
	
	
	
	
			
		
		
	
	
			22 lines
		
	
	
	
		
			406 B
		
	
	
	
		
			C++
		
	
	
	
	
	
#include "spelllist.hpp"
 | 
						|
 | 
						|
#include "esmreader.hpp"
 | 
						|
#include "esmwriter.hpp"
 | 
						|
 | 
						|
namespace ESM {
 | 
						|
 | 
						|
void SpellList::load(ESMReader &esm)
 | 
						|
{
 | 
						|
    while (esm.isNextSub("NPCS")) {
 | 
						|
        mList.push_back(esm.getHString());
 | 
						|
    }
 | 
						|
}
 | 
						|
 | 
						|
void SpellList::save(ESMWriter &esm)
 | 
						|
{
 | 
						|
    for (std::vector<std::string>::iterator it = mList.begin(); it != mList.end(); ++it) {
 | 
						|
        esm.writeHNString("NPCS", *it, 32);
 | 
						|
    }
 | 
						|
}
 | 
						|
 | 
						|
}
 |