2 #define SKINVECTOR(name,def) var vector SKIN##name = def
3 #define SKINFLOAT(name,def) var float SKIN##name = def
4 //#define SKINSTRING(name,def) const string SKIN##name = def
5 #define SKINSTRING(name,def) var string SKIN##name = def
7 #include "skin-customizables.inc"
14 #define SKINBEGIN void Skin_ApplySetting(string key, string value) { switch(key) {
15 #define SKINVECTOR(name,def) case #name: SKIN##name = stov(value); break
16 #define SKINFLOAT(name,def) case #name: SKIN##name = stof(value); break
17 //#define SKINSTRING(name,def) case #name: break
18 #define SKINSTRING(name,def) case #name: SKIN##name = strzone(value); break
19 // I know this leaks memory when skin is read multiple times. Screw it.
20 #define SKINEND case "": break; case "//": break; default: dprint("Invalid key in skin file: ", key, "\n"); } }
21 #include "skin-customizables.inc"