about summary refs log tree commit diff
path: root/src/engine/shared/config.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/engine/shared/config.h')
-rw-r--r--src/engine/shared/config.h22
1 files changed, 22 insertions, 0 deletions
diff --git a/src/engine/shared/config.h b/src/engine/shared/config.h
new file mode 100644
index 00000000..10a54004
--- /dev/null
+++ b/src/engine/shared/config.h
@@ -0,0 +1,22 @@
+#ifndef ENGINE_SHARED_E_CONFIG_H
+#define ENGINE_SHARED_E_CONFIG_H
+
+struct CConfiguration
+{ 
+    #define MACRO_CONFIG_INT(Name,ScriptName,Def,Min,Max,Save,Desc) int m_##Name;
+    #define MACRO_CONFIG_STR(Name,ScriptName,Len,Def,Save,Desc) char m_##Name[Len]; // Flawfinder: ignore
+    #include "config_variables.h" 
+    #undef MACRO_CONFIG_INT 
+    #undef MACRO_CONFIG_STR 
+};
+
+extern CConfiguration g_Config;
+
+enum
+{
+	CFGFLAG_SAVE=1,
+	CFGFLAG_CLIENT=2,
+	CFGFLAG_SERVER=4
+};
+
+#endif