mirror of
				https://github.com/OpenMW/openmw.git
				synced 2025-10-31 16:26:38 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			27 lines
		
	
	
	
		
			479 B
		
	
	
	
		
			C++
		
	
	
	
	
	
			
		
		
	
	
			27 lines
		
	
	
	
		
			479 B
		
	
	
	
		
			C++
		
	
	
	
	
	
| #include "loadbsgn.hpp"
 | |
| 
 | |
| #include "esmreader.hpp"
 | |
| #include "esmwriter.hpp"
 | |
| 
 | |
| namespace ESM
 | |
| {
 | |
| 
 | |
| void BirthSign::load(ESMReader &esm)
 | |
| {
 | |
|     mName = esm.getHNString("FNAM");
 | |
|     mTexture = esm.getHNOString("TNAM");
 | |
|     mDescription = esm.getHNOString("DESC");
 | |
| 
 | |
|     mPowers.load(esm);
 | |
| }
 | |
| 
 | |
| void BirthSign::save(ESMWriter &esm)
 | |
| {
 | |
|     esm.writeHNCString("FNAM", mName);
 | |
|     esm.writeHNOCString("TNAM", mTexture);
 | |
|     esm.writeHNOCString("DESC", mDescription);
 | |
| 
 | |
|     mPowers.save(esm);
 | |
| }
 | |
| 
 | |
| }
 |