Optional server config file

This commit is contained in:
Glowbal 2015-03-27 20:35:44 +01:00
parent 7a091215e1
commit 9713b505ee
3 changed files with 37 additions and 0 deletions

View File

@ -0,0 +1,17 @@
#include "script_component.hpp"
class CfgPatches {
class ADDON {
units[] = {};
weapons[] = {};
requiredVersion = REQUIRED_VERSION;
requiredAddons[] = {"ace_common"};
author[] = {"Glowbal"};
authorUrl = "https://github.com/Glowbal/";
VERSION_CONFIG;
};
};
class ACE_ServerSettings {
#include "\userconfig\ace\serverconfig.hpp"
};

View File

@ -0,0 +1,12 @@
#define COMPONENT serverconfig
#include "\z\ace\Addons\main\script_mod.hpp"
#ifdef DEBUG_ENABLED_SERVERCONFIG
#define DEBUG_MODE_FULL
#endif
#ifdef DEBUG_SETTINGS_SERVERCONFIG
#define DEBUG_SETTINGS DEBUG_SETTINGS_SERVERCONFIG
#endif
#include "\z\ace\Addons\main\script_macros.hpp"

View File

@ -0,0 +1,8 @@
// TODO fill with all possible settings ?
// Example:
class ACE_common_forceAllSettings {
value = 0;
typeName = "BOOL";
};