mirror of
				https://github.com/OpenMW/openmw.git
				synced 2025-10-31 13:56:38 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			44 lines
		
	
	
	
		
			734 B
		
	
	
	
		
			C++
		
	
	
	
	
	
			
		
		
	
	
			44 lines
		
	
	
	
		
			734 B
		
	
	
	
		
			C++
		
	
	
	
	
	
| #ifndef _ESM_LOCKS_H
 | |
| #define _ESM_LOCKS_H
 | |
| 
 | |
| #include "esm_reader.hpp"
 | |
| 
 | |
| namespace ESM
 | |
| {
 | |
| 
 | |
| /*
 | |
|  * This file covers lockpicks (LOCK), probes (PROB) and armor repair
 | |
|  * items (REPA). These have nearly identical data structures.
 | |
|  */
 | |
| 
 | |
| struct Tool
 | |
| {
 | |
|     struct Data
 | |
|     {
 | |
|         float weight;
 | |
|         int value;
 | |
| 
 | |
|         float quality; // And when I say nearly identical structure, I
 | |
|         int uses;      // mean perfectly identical except that these two
 | |
|                        // variables are swaped for repair items. Don't ask
 | |
|                        // me why.
 | |
|     }; // Size = 16
 | |
| 
 | |
|     Data data;
 | |
|     std::string name, model, icon, script;
 | |
| 
 | |
|     void load(ESMReader &esm);
 | |
| };
 | |
| 
 | |
| struct Probe: Tool
 | |
| {
 | |
| 
 | |
| };
 | |
| 
 | |
| struct Repair: Tool
 | |
| {
 | |
| 
 | |
| };
 | |
| 
 | |
| }
 | |
| #endif
 |