mirror of
				https://github.com/OpenMW/openmw.git
				synced 2025-11-04 12:56:39 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			23 lines
		
	
	
	
		
			419 B
		
	
	
	
		
			C++
		
	
	
	
	
	
			
		
		
	
	
			23 lines
		
	
	
	
		
			419 B
		
	
	
	
		
			C++
		
	
	
	
	
	
#include "loadsndg.hpp"
 | 
						|
 | 
						|
#include "esmreader.hpp"
 | 
						|
#include "esmwriter.hpp"
 | 
						|
 | 
						|
namespace ESM
 | 
						|
{
 | 
						|
 | 
						|
void SoundGenerator::load(ESMReader &esm)
 | 
						|
{
 | 
						|
  esm.getHNT(mType, "DATA", 4);
 | 
						|
 | 
						|
  mCreature = esm.getHNOString("CNAM");
 | 
						|
  mSound = esm.getHNOString("SNAM");
 | 
						|
}
 | 
						|
void SoundGenerator::save(ESMWriter &esm)
 | 
						|
{
 | 
						|
    esm.writeHNT("DATA", mType, 4);
 | 
						|
    esm.writeHNOCString("CNAM", mCreature);
 | 
						|
    esm.writeHNOCString("SNAM", mSound);
 | 
						|
}
 | 
						|
 | 
						|
}
 |