mirror of
				https://github.com/TES3MP/openmw-tes3mp.git
				synced 2025-10-31 22:56:44 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			63 lines
		
	
	
	
		
			1.1 KiB
		
	
	
	
		
			C++
		
	
	
	
	
	
			
		
		
	
	
			63 lines
		
	
	
	
		
			1.1 KiB
		
	
	
	
		
			C++
		
	
	
	
	
	
| #ifndef _ESM_RACE_H
 | |
| #define _ESM_RACE_H
 | |
| 
 | |
| #include "esm_reader.hpp"
 | |
| #include "defs.hpp"
 | |
| 
 | |
| namespace ESM
 | |
| {
 | |
| 
 | |
| /*
 | |
|  * Race definition
 | |
|  */
 | |
| 
 | |
| struct Race
 | |
| {
 | |
|     struct SkillBonus
 | |
|     {
 | |
|         int skill; // SkillEnum
 | |
|         int bonus;
 | |
|     };
 | |
| 
 | |
|     struct MaleFemale
 | |
|     {
 | |
|         int male, female;
 | |
|     };
 | |
| 
 | |
|     struct MaleFemaleF
 | |
|     {
 | |
|         float male, female;
 | |
|     };
 | |
| 
 | |
|     enum Flags
 | |
|     {
 | |
|         Playable = 0x01,
 | |
|         Beast = 0x02
 | |
|     };
 | |
| 
 | |
|     struct RADTstruct
 | |
|     {
 | |
|         // List of skills that get a bonus
 | |
|         SkillBonus bonus[7];
 | |
| 
 | |
|         // Attribute values for male/female
 | |
|         MaleFemale strength, intelligence, willpower, agility, speed,
 | |
|                 endurance, personality, luck;
 | |
| 
 | |
|         // The actual eye level height (in game units) is (probably) given
 | |
|         // as 'height' times 128. This has not been tested yet.
 | |
|         MaleFemaleF height, weight;
 | |
| 
 | |
|         int flags; // 0x1 - playable, 0x2 - beast race
 | |
| 
 | |
|     }; // Size = 140 bytes
 | |
| 
 | |
|     RADTstruct data;
 | |
| 
 | |
|     std::string name, description;
 | |
|     SpellList powers;
 | |
| 
 | |
|     void load(ESMReader &esm);
 | |
| };
 | |
| }
 | |
| #endif
 |