mirror of
				https://github.com/OpenMW/openmw.git
				synced 2025-11-04 12:56:39 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			43 lines
		
	
	
	
		
			636 B
		
	
	
	
		
			C++
		
	
	
	
	
	
			
		
		
	
	
			43 lines
		
	
	
	
		
			636 B
		
	
	
	
		
			C++
		
	
	
	
	
	
#ifndef _ESM_APPA_H
 | 
						|
#define _ESM_APPA_H
 | 
						|
 | 
						|
#include "esm_reader.hpp"
 | 
						|
 | 
						|
namespace ESM {
 | 
						|
 | 
						|
/*
 | 
						|
 * Alchemist apparatus
 | 
						|
 */
 | 
						|
 | 
						|
struct Apparatus
 | 
						|
{
 | 
						|
  enum AppaType
 | 
						|
    {
 | 
						|
      MortarPestle	= 0,
 | 
						|
      Albemic		= 1,
 | 
						|
      Calcinator	= 2,
 | 
						|
      Retort		= 3
 | 
						|
    };
 | 
						|
 | 
						|
  struct AADTstruct
 | 
						|
  {
 | 
						|
    int type;
 | 
						|
    float quality;
 | 
						|
    float weight;
 | 
						|
    int value;
 | 
						|
  };
 | 
						|
 | 
						|
  AADTstruct data;
 | 
						|
  std::string model, icon, script, name;
 | 
						|
 | 
						|
  void load(ESMReader &esm)
 | 
						|
  {
 | 
						|
    model = esm.getHNString("MODL");
 | 
						|
    name = esm.getHNString("FNAM");
 | 
						|
    esm.getHNT(data, "AADT", 16);
 | 
						|
    script = esm.getHNOString("SCRI");
 | 
						|
    icon = esm.getHNString("ITEX");
 | 
						|
  }
 | 
						|
};
 | 
						|
}
 | 
						|
#endif
 |