mirror of
				https://github.com/TES3MP/TES3MP.git
				synced 2025-11-03 19:13:31 -05:00 
			
		
		
		
	
		
			
				
	
	
		
			21 lines
		
	
	
		
			392 B
		
	
	
	
		
			C++
		
	
	
	
	
	
			
		
		
	
	
			21 lines
		
	
	
		
			392 B
		
	
	
	
		
			C++
		
	
	
	
	
	
#include "loadacti.hpp"
 | 
						|
 | 
						|
namespace ESM
 | 
						|
{
 | 
						|
void Activator::load(ESMReader &esm)
 | 
						|
{
 | 
						|
    model = esm.getHNString("MODL");
 | 
						|
    name = esm.getHNString("FNAM");
 | 
						|
    script = esm.getHNOString("SCRI");
 | 
						|
}
 | 
						|
void Activator::save(ESMWriter &esm)
 | 
						|
{
 | 
						|
    esm.writeHNString("MODL", model);
 | 
						|
    esm.writeHNString("FNAM", name);
 | 
						|
    if (!script.empty())
 | 
						|
    {
 | 
						|
        esm.writeHNString("SCRI", script);
 | 
						|
    }
 | 
						|
}
 | 
						|
}
 |