OpenMW
components/esm/defs.hpp
Go to the documentation of this file.
00001 #ifndef OPENMW_ESM_DEFS_H
00002 #define OPENMW_ESM_DEFS_H
00003 
00004 #include <libs/platform/stdint.h>
00005 
00006 namespace ESM
00007 {
00008 
00009 // Pixel color value. Standard four-byte rr,gg,bb,aa format.
00010 typedef int32_t Color;
00011 
00012 enum Specialization
00013 {
00014     SPC_Combat = 0,
00015     SPC_Magic = 1,
00016     SPC_Stealth = 2
00017 };
00018 
00019 enum RangeType
00020 {
00021     RT_Self = 0,
00022     RT_Touch = 1,
00023     RT_Target = 2
00024 };
00025 
00026 #pragma pack(push)
00027 #pragma pack(1)
00028 
00029 // Position and rotation
00030 struct Position
00031 {
00032     float pos[3];
00033     float rot[3];
00034 };
00035 #pragma pack(pop)
00036 
00037 enum RecNameInts
00038 {
00039     // format 0 / legacy
00040     REC_ACTI = 0x49544341,
00041     REC_ALCH = 0x48434c41,
00042     REC_APPA = 0x41505041,
00043     REC_ARMO = 0x4f4d5241,
00044     REC_BODY = 0x59444f42,
00045     REC_BOOK = 0x4b4f4f42,
00046     REC_BSGN = 0x4e475342,
00047     REC_CELL = 0x4c4c4543,
00048     REC_CLAS = 0x53414c43,
00049     REC_CLOT = 0x544f4c43,
00050     REC_CNTC = 0x43544e43,
00051     REC_CONT = 0x544e4f43,
00052     REC_CREA = 0x41455243,
00053     REC_CREC = 0x43455243,
00054     REC_DIAL = 0x4c414944,
00055     REC_DOOR = 0x524f4f44,
00056     REC_ENCH = 0x48434e45,
00057     REC_FACT = 0x54434146,
00058     REC_GLOB = 0x424f4c47,
00059     REC_GMST = 0x54534d47,
00060     REC_INFO = 0x4f464e49,
00061     REC_INGR = 0x52474e49,
00062     REC_LAND = 0x444e414c,
00063     REC_LEVC = 0x4356454c,
00064     REC_LEVI = 0x4956454c,
00065     REC_LIGH = 0x4847494c,
00066     REC_LOCK = 0x4b434f4c,
00067     REC_LTEX = 0x5845544c,
00068     REC_MGEF = 0x4645474d,
00069     REC_MISC = 0x4353494d,
00070     REC_NPC_ = 0x5f43504e,
00071     REC_NPCC = 0x4343504e,
00072     REC_PGRD = 0x44524750,
00073     REC_PROB = 0x424f5250,
00074     REC_RACE = 0x45434152,
00075     REC_REGN = 0x4e474552,
00076     REC_REPA = 0x41504552,
00077     REC_SCPT = 0x54504353,
00078     REC_SKIL = 0x4c494b53,
00079     REC_SNDG = 0x47444e53,
00080     REC_SOUN = 0x4e554f53,
00081     REC_SPEL = 0x4c455053,
00082     REC_SSCR = 0x52435353,
00083     REC_STAT = 0x54415453,
00084     REC_WEAP = 0x50414557,
00085 
00086     // format 1
00087     REC_FILT = 0x544C4946
00088 };
00089 
00090 }
00091 #endif