DDraceNetwork Docs
config.h File Reference
#include <base/detect.h>
#include <engine/config.h>
#include <engine/console.h>
#include <engine/shared/memheap.h>
#include <vector>
#include <engine/shared/protocol.h>
#include "config_variables.h"
Include dependency graph for config.h:

Go to the source code of this file.

Classes

class  CConfig
 
struct  SConfigVariable
 
struct  SIntConfigVariable
 
struct  SColorConfigVariable
 
struct  SStringConfigVariable
 
class  CConfigManager
 
struct  CConfigManager::SCallback
 

Macros

#define CONFIG_FILE   "settings_ddnet.cfg"
 
#define AUTOEXEC_FILE   "autoexec.cfg"
 
#define AUTOEXEC_CLIENT_FILE   "autoexec_client.cfg"
 
#define AUTOEXEC_SERVER_FILE   "autoexec_server.cfg"
 
#define MACRO_CONFIG_INT(Name, ScriptName, Def, Min, Max, Flags, Desc)
 
#define MACRO_CONFIG_COL(Name, ScriptName, Def, Flags, Desc)
 
#define MACRO_CONFIG_STR(Name, ScriptName, Len, Def, Flags, Desc)
 

Enumerations

enum  {
  CFGFLAG_SAVE = 1 << 0 , CFGFLAG_CLIENT = 1 << 1 , CFGFLAG_SERVER = 1 << 2 , CFGFLAG_STORE = 1 << 3 ,
  CFGFLAG_MASTER = 1 << 4 , CFGFLAG_ECON = 1 << 5 , CMDFLAG_TEST = 1 << 6 , CFGFLAG_CHAT = 1 << 7 ,
  CFGFLAG_GAME = 1 << 8 , CFGFLAG_NONTEEHISTORIC = 1 << 9 , CFGFLAG_COLLIGHT = 1 << 10 , CFGFLAG_COLLIGHT7 = 1 << 11 ,
  CFGFLAG_COLALPHA = 1 << 12 , CFGFLAG_INSENSITIVE = 1 << 13 , CMDFLAG_PRACTICE = 1 << 14
}
 

Variables

CConfig g_Config
 

Macro Definition Documentation

◆ AUTOEXEC_CLIENT_FILE

#define AUTOEXEC_CLIENT_FILE   "autoexec_client.cfg"

◆ AUTOEXEC_FILE

#define AUTOEXEC_FILE   "autoexec.cfg"

◆ AUTOEXEC_SERVER_FILE

#define AUTOEXEC_SERVER_FILE   "autoexec_server.cfg"

◆ CONFIG_FILE

#define CONFIG_FILE   "settings_ddnet.cfg"

◆ MACRO_CONFIG_COL

#define MACRO_CONFIG_COL (   Name,
  ScriptName,
  Def,
  Flags,
  Desc 
)
Value:
static constexpr unsigned ms_##Name = Def; \
unsigned m_##Name;

◆ MACRO_CONFIG_INT

#define MACRO_CONFIG_INT (   Name,
  ScriptName,
  Def,
  Min,
  Max,
  Flags,
  Desc 
)
Value:
static constexpr int ms_##Name = Def; \
int m_##Name;

◆ MACRO_CONFIG_STR

#define MACRO_CONFIG_STR (   Name,
  ScriptName,
  Len,
  Def,
  Flags,
  Desc 
)
Value:
static constexpr const char *ms_p##Name = Def; \
char m_##Name[Len];

Enumeration Type Documentation

◆ anonymous enum

anonymous enum
Enumerator
CFGFLAG_SAVE 
CFGFLAG_CLIENT 
CFGFLAG_SERVER 
CFGFLAG_STORE 
CFGFLAG_MASTER 
CFGFLAG_ECON 
CMDFLAG_TEST 
CFGFLAG_CHAT 
CFGFLAG_GAME 
CFGFLAG_NONTEEHISTORIC 
CFGFLAG_COLLIGHT 
CFGFLAG_COLLIGHT7 
CFGFLAG_COLALPHA 
CFGFLAG_INSENSITIVE 
CMDFLAG_PRACTICE 

Variable Documentation

◆ g_Config

CConfig g_Config
extern