mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
Optional server config file
This commit is contained in:
parent
7a091215e1
commit
9713b505ee
17
optionals/server/config.cpp
Normal file
17
optionals/server/config.cpp
Normal 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"
|
||||
};
|
12
optionals/server/script_component.hpp
Normal file
12
optionals/server/script_component.hpp
Normal 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"
|
8
optionals/userconfig/ace/serverconfig.hpp
Normal file
8
optionals/userconfig/ace/serverconfig.hpp
Normal file
@ -0,0 +1,8 @@
|
||||
|
||||
// TODO fill with all possible settings ?
|
||||
|
||||
// Example:
|
||||
class ACE_common_forceAllSettings {
|
||||
value = 0;
|
||||
typeName = "BOOL";
|
||||
};
|
Loading…
Reference in New Issue
Block a user