ddnet/src/engine/config.h

28 lines
775 B
C
Raw Normal View History

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. */
2010-05-29 07:25:38 +00:00
#ifndef ENGINE_CONFIG_H
#define ENGINE_CONFIG_H
#include "kernel.h"
class IConfigManager : public IInterface
2010-05-29 07:25:38 +00:00
{
MACRO_INTERFACE("config", 0)
public:
typedef void (*SAVECALLBACKFUNC)(IConfigManager *pConfig, void *pUserData);
2010-05-29 07:25:38 +00:00
virtual void Init() = 0;
virtual void Reset() = 0;
virtual void Reset(const char *pScriptName) = 0;
virtual bool Save() = 0;
virtual class CConfig *Values() = 0;
2010-05-29 07:25:38 +00:00
virtual void RegisterCallback(SAVECALLBACKFUNC pfnFunc, void *pUserData) = 0;
2010-05-29 07:25:38 +00:00
virtual void WriteLine(const char *pLine) = 0;
};
extern IConfigManager *CreateConfigManager();
2010-05-29 07:25:38 +00:00
#endif