mirror of
				https://github.com/OpenMW/openmw.git
				synced 2025-10-31 21:26:41 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			57 lines
		
	
	
	
		
			834 B
		
	
	
	
		
			C++
		
	
	
	
	
	
			
		
		
	
	
			57 lines
		
	
	
	
		
			834 B
		
	
	
	
		
			C++
		
	
	
	
	
	
| #ifndef _ESM_CLOT_H
 | |
| #define _ESM_CLOT_H
 | |
| 
 | |
| #include "esm_reader.hpp"
 | |
| #include "loadarmo.hpp"
 | |
| 
 | |
| namespace ESM {
 | |
| 
 | |
| /*
 | |
|  * Clothing
 | |
|  */
 | |
| 
 | |
| struct Clothing
 | |
| {
 | |
|   enum Type
 | |
|     {
 | |
|       Pants	= 0,
 | |
|       Shoes	= 1,
 | |
|       Shirt	= 2,
 | |
|       Belt	= 3,
 | |
|       Robe	= 4,
 | |
|       RGlove	= 5,
 | |
|       LGlove	= 6,
 | |
|       Skirt	= 7,
 | |
|       Ring	= 8,
 | |
|       Amulet	= 9
 | |
|     };
 | |
| 
 | |
|   struct CTDTstruct
 | |
|   {
 | |
|     int type;
 | |
|     float weight;
 | |
|     short value;
 | |
|     short enchant;
 | |
|   };
 | |
|   CTDTstruct data;
 | |
| 
 | |
|   PartReferenceList parts;
 | |
| 
 | |
|   std::string name, model, icon, enchant, script;
 | |
| 
 | |
|   void load(ESMReader &esm)
 | |
|   {
 | |
|     model = esm.getHNString("MODL");
 | |
|     name = esm.getHNOString("FNAM");
 | |
|     esm.getHNT(data, "CTDT", 12);
 | |
| 
 | |
|     script = esm.getHNOString("SCRI");
 | |
|     icon = esm.getHNOString("ITEX");
 | |
| 
 | |
|     parts.load(esm);
 | |
| 
 | |
|     enchant = esm.getHNOString("ENAM");
 | |
|   }
 | |
| };
 | |
| }
 | |
| #endif
 |