1 /* (c) Magnus Auvinen. See licence.txt in the root of the distribution for more information. */
2 /* If you are missing that file, acquire a complete release at teeworlds.com. */
3 #ifndef ENGINE_CONFIG_H
4 #define ENGINE_CONFIG_H
8 class IConfig
: public IInterface
10 MACRO_INTERFACE("config", 0)
12 typedef void (*SAVECALLBACKFUNC
)(IConfig
*pConfig
, void *pUserData
);
14 virtual void Init() = 0;
15 virtual void Reset() = 0;
16 virtual void RestoreStrings() = 0;
17 virtual void Save() = 0;
19 virtual void RegisterCallback(SAVECALLBACKFUNC pfnFunc
, void *pUserData
) = 0;
21 virtual void WriteLine(const char *pLine
) = 0;
24 extern IConfig
*CreateConfig();