mirror of
				https://github.com/OpenMW/openmw.git
				synced 2025-11-04 12:26:39 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			87 lines
		
	
	
	
		
			1.7 KiB
		
	
	
	
		
			C++
		
	
	
	
	
	
			
		
		
	
	
			87 lines
		
	
	
	
		
			1.7 KiB
		
	
	
	
		
			C++
		
	
	
	
	
	
#ifndef OPENMW_ESM_DEFS_H
 | 
						|
#define OPENMW_ESM_DEFS_H
 | 
						|
 | 
						|
#include <libs/platform/stdint.h>
 | 
						|
 | 
						|
namespace ESM
 | 
						|
{
 | 
						|
 | 
						|
// Pixel color value. Standard four-byte rr,gg,bb,aa format.
 | 
						|
typedef int32_t Color;
 | 
						|
 | 
						|
enum Specialization
 | 
						|
{
 | 
						|
    SPC_Combat = 0,
 | 
						|
    SPC_Magic = 1,
 | 
						|
    SPC_Stealth = 2
 | 
						|
};
 | 
						|
 | 
						|
enum RangeType
 | 
						|
{
 | 
						|
    RT_Self = 0,
 | 
						|
    RT_Touch = 1,
 | 
						|
    RT_Target = 2
 | 
						|
};
 | 
						|
 | 
						|
#pragma pack(push)
 | 
						|
#pragma pack(1)
 | 
						|
 | 
						|
// Position and rotation
 | 
						|
struct Position
 | 
						|
{
 | 
						|
    float pos[3];
 | 
						|
    float rot[3];
 | 
						|
};
 | 
						|
#pragma pack(pop)
 | 
						|
 | 
						|
enum RecNameInts
 | 
						|
{
 | 
						|
    REC_ACTI = 0x49544341,
 | 
						|
    REC_ALCH = 0x48434c41,
 | 
						|
    REC_APPA = 0x41505041,
 | 
						|
    REC_ARMO = 0x4f4d5241,
 | 
						|
    REC_BODY = 0x59444f42,
 | 
						|
    REC_BOOK = 0x4b4f4f42,
 | 
						|
    REC_BSGN = 0x4e475342,
 | 
						|
    REC_CELL = 0x4c4c4543,
 | 
						|
    REC_CLAS = 0x53414c43,
 | 
						|
    REC_CLOT = 0x544f4c43,
 | 
						|
    REC_CNTC = 0x43544e43,
 | 
						|
    REC_CONT = 0x544e4f43,
 | 
						|
    REC_CREA = 0x41455243,
 | 
						|
    REC_CREC = 0x43455243,
 | 
						|
    REC_DIAL = 0x4c414944,
 | 
						|
    REC_DOOR = 0x524f4f44,
 | 
						|
    REC_ENCH = 0x48434e45,
 | 
						|
    REC_FACT = 0x54434146,
 | 
						|
    REC_GLOB = 0x424f4c47,
 | 
						|
    REC_GMST = 0x54534d47,
 | 
						|
    REC_INFO = 0x4f464e49,
 | 
						|
    REC_INGR = 0x52474e49,
 | 
						|
    REC_LAND = 0x444e414c,
 | 
						|
    REC_LEVC = 0x4356454c,
 | 
						|
    REC_LEVI = 0x4956454c,
 | 
						|
    REC_LIGH = 0x4847494c,
 | 
						|
    REC_LOCK = 0x4b434f4c,
 | 
						|
    REC_LTEX = 0x5845544c,
 | 
						|
    REC_MGEF = 0x4645474d,
 | 
						|
    REC_MISC = 0x4353494d,
 | 
						|
    REC_NPC_ = 0x5f43504e,
 | 
						|
    REC_NPCC = 0x4343504e,
 | 
						|
    REC_PGRD = 0x44524750,
 | 
						|
    REC_PROB = 0x424f5250,
 | 
						|
    REC_RACE = 0x45434152,
 | 
						|
    REC_REGN = 0x4e474552,
 | 
						|
    REC_REPA = 0x41504552,
 | 
						|
    REC_SCPT = 0x54504353,
 | 
						|
    REC_SKIL = 0x4c494b53,
 | 
						|
    REC_SNDG = 0x47444e53,
 | 
						|
    REC_SOUN = 0x4e554f53,
 | 
						|
    REC_SPEL = 0x4c455053,
 | 
						|
    REC_SSCR = 0x52435353,
 | 
						|
    REC_STAT = 0x54415453,
 | 
						|
    REC_WEAP = 0x50414557
 | 
						|
};
 | 
						|
 | 
						|
}
 | 
						|
#endif
 |