mirror of
				https://github.com/OpenMW/openmw.git
				synced 2025-10-31 18:26:38 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			22 lines
		
	
	
	
		
			404 B
		
	
	
	
		
			C++
		
	
	
	
	
	
			
		
		
	
	
			22 lines
		
	
	
	
		
			404 B
		
	
	
	
		
			C++
		
	
	
	
	
	
| #ifndef _ESM_DOOR_H
 | |
| #define _ESM_DOOR_H
 | |
| 
 | |
| #include "esm_reader.hpp"
 | |
| 
 | |
| namespace ESM {
 | |
| 
 | |
| struct Door
 | |
| {
 | |
|   std::string name, model, script, openSound, closeSound;
 | |
| 
 | |
|   void load(ESMReader &esm)
 | |
|   {
 | |
|     model = esm.getHNString("MODL");
 | |
|     name = esm.getHNOString("FNAM");
 | |
|     script = esm.getHNOString("SCRI");
 | |
|     openSound = esm.getHNOString("SNAM");
 | |
|     closeSound = esm.getHNOString("ANAM");
 | |
|   }
 | |
| };
 | |
| }
 | |
| #endif
 |