2010-11-20 10:37:14 +00:00
|
|
|
/* (c) Magnus Auvinen. See licence.txt in the root of the distribution for more information. */
|
|
|
|
/* If you are missing that file, acquire a complete release at teeworlds.com. */
|
2011-04-13 18:22:10 +00:00
|
|
|
#ifndef ENGINE_SHARED_CONFIG_H
|
|
|
|
#define ENGINE_SHARED_CONFIG_H
|
2010-05-29 07:25:38 +00:00
|
|
|
|
|
|
|
struct CConfiguration
|
2011-04-13 18:37:12 +00:00
|
|
|
{
|
2011-08-13 00:11:06 +00:00
|
|
|
#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
|
2010-05-29 07:25:38 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
extern CConfiguration g_Config;
|
|
|
|
|
|
|
|
enum
|
|
|
|
{
|
|
|
|
CFGFLAG_SAVE=1,
|
|
|
|
CFGFLAG_CLIENT=2,
|
2010-08-07 18:22:25 +00:00
|
|
|
CFGFLAG_SERVER=4,
|
2010-11-07 16:35:11 +00:00
|
|
|
CFGFLAG_STORE=8,
|
2011-01-24 12:06:55 +00:00
|
|
|
CFGFLAG_MASTER=16,
|
2011-12-30 18:12:31 +00:00
|
|
|
CFGFLAG_ECON=32,
|
2011-04-09 06:41:31 +00:00
|
|
|
// DDRace
|
2011-08-31 10:10:15 +00:00
|
|
|
|
2011-12-31 22:00:00 +00:00
|
|
|
CMDFLAG_TEST=64,
|
|
|
|
CFGFLAG_CHAT = 128
|
2010-05-29 07:25:38 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|