6 #include "../common/util-pre.qh"
8 #include "../dpdefs/menudefs.qh"
9 #include "../dpdefs/keycodes.qh"
10 #include "sys-post.qh"
12 #include "../warpzonelib/mathlib.qh"
13 #include "../common/util.qh"
14 #include "../common/test.qh"
16 #include "../common/playerstats.qh"
17 #include "../common/teams.qh"
18 #include "../common/constants.qh"
19 #include "../common/mapinfo.qh"
20 #include "../common/campaign_common.qh"
21 #include "../common/weapons/weapons.qh"
22 #include "../common/counting.qh"
23 #include "../common/command/markup.qh"
24 #include "../common/command/rpn.qh"
25 #include "../common/command/generic.qh"
26 #include "../common/command/shared_defs.qh"
27 #include "../common/urllib.qh"
28 #include "../common/monsters/monsters.qh"
29 #include "command/menu_cmd.qh"
36 #define SKINVECTOR(name,def) vector SKIN##name = def
37 #define SKINFLOAT(name,def) float SKIN##name = def
38 //#define SKINSTRING(name,def) const string SKIN##name = def
39 #define SKINSTRING(name,def) string SKIN##name = def
41 #include "skin-customizables.inc"
48 #define SKINBEGIN void Skin_ApplySetting(string key, string value) { switch(key) {
49 #define SKINVECTOR(name,def) case #name: SKIN##name = stov(value); break
50 #define SKINFLOAT(name,def) case #name: SKIN##name = stof(value); break
51 //#define SKINSTRING(name,def) case #name: break
52 #define SKINSTRING(name,def) case #name: SKIN##name = strzone(value); break
53 // I know this leaks memory when skin is read multiple times. Screw it.
54 #define SKINEND case "": break; case "//": break; default: dprint("Invalid key in skin file: ", key, "\n"); } }
55 #include "skin-customizables.inc"