mirror of
				https://github.com/OpenMW/openmw.git
				synced 2025-11-04 07:26:39 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			24 lines
		
	
	
	
		
			461 B
		
	
	
	
		
			C++
		
	
	
	
	
	
			
		
		
	
	
			24 lines
		
	
	
	
		
			461 B
		
	
	
	
		
			C++
		
	
	
	
	
	
#include "effectlist.hpp"
 | 
						|
 | 
						|
#include "esmreader.hpp"
 | 
						|
#include "esmwriter.hpp"
 | 
						|
 | 
						|
namespace ESM {
 | 
						|
 | 
						|
void EffectList::load(ESMReader &esm)
 | 
						|
{
 | 
						|
    ENAMstruct s;
 | 
						|
    while (esm.isNextSub("ENAM")) {
 | 
						|
        esm.getHT(s, 24);
 | 
						|
        mList.push_back(s);
 | 
						|
    }
 | 
						|
}
 | 
						|
 | 
						|
void EffectList::save(ESMWriter &esm)
 | 
						|
{
 | 
						|
    for (std::vector<ENAMstruct>::iterator it = mList.begin(); it != mList.end(); ++it) {
 | 
						|
        esm.writeHNT<ENAMstruct>("ENAM", *it, 24);
 | 
						|
    }
 | 
						|
}
 | 
						|
 | 
						|
} // end namespace
 |