General - Use subcomponent macro (CBA 3.16.0) (#9375)

This commit is contained in:
jonpas 2023-09-12 20:40:38 +02:00 committed by GitHub
parent ebef82d10b
commit 7cbdb7f410
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
51 changed files with 170 additions and 174 deletions

View File

@ -1,7 +1,7 @@
#include "script_component.hpp"
class CfgPatches {
class ADDON {
class SUBADDON {
name = COMPONENT_NAME;
units[] = {};
weapons[] = {};

View File

@ -1,5 +1,3 @@
#include "\z\ace\addons\compat_csla\script_component.hpp"
#define SUBCOMPONENT explosives
#undef ADDON
#define ADDON TRIPLES(PREFIX,COMPONENT,SUBCOMPONENT)
#define SUBCOMPONENT_BEAUTIFIED Explosives
#include "\z\ace\addons\compat_csla\script_component.hpp"

View File

@ -1,8 +1,8 @@
#include "script_component.hpp"
class CfgPatches {
class ADDON {
addonRootClass = QUOTE(COMPONENT);
class SUBADDON {
name = COMPONENT_NAME;
units[] = {};
weapons[] = {};
requiredVersion = REQUIRED_VERSION;
@ -11,7 +11,12 @@ class CfgPatches {
"ace_explosives"
};
skipWhenMissingDependencies = 1;
author = ECSTRING(common,ACETeam);
authors[] = {};
url = ECSTRING(main,URL);
VERSION_CONFIG;
addonRootClass = QUOTE(ADDON);
};
};

View File

@ -1,5 +1,3 @@
#include "\z\ace\addons\compat_gm\script_component.hpp"
#define SUBCOMPONENT explosives
#undef ADDON
#define ADDON TRIPLES(PREFIX,COMPONENT,SUBCOMPONENT)
#define SUBCOMPONENT_BEAUTIFIED Explosives
#include "\z\ace\addons\compat_gm\script_component.hpp"

View File

@ -1,8 +1,8 @@
#include "script_component.hpp"
class CfgPatches {
class ADDON {
addonRootClass = QUOTE(COMPONENT);
class SUBADDON {
name = COMPONENT_NAME;
units[] = {};
weapons[] = {};
requiredVersion = REQUIRED_VERSION;
@ -11,7 +11,12 @@ class CfgPatches {
"ace_refuel"
};
skipWhenMissingDependencies = 1;
author = ECSTRING(common,ACETeam);
authors[] = {};
url = ECSTRING(main,URL);
VERSION_CONFIG;
addonRootClass = QUOTE(ADDON);
};
};

View File

@ -1,5 +1,3 @@
#include "\z\ace\addons\compat_gm\script_component.hpp"
#define SUBCOMPONENT refuel
#undef ADDON
#define ADDON TRIPLES(PREFIX,COMPONENT,SUBCOMPONENT)
#define SUBCOMPONENT_BEAUTIFIED Refuel
#include "\z\ace\addons\compat_gm\script_component.hpp"

View File

@ -1,11 +1,8 @@
#include "script_component.hpp"
// Config will be binerized, so this include is only required at build-time
#include "\z\ace\addons\csw\script_config_macros_csw.hpp"
class CfgPatches {
class ADDON {
name = QUOTE(COMPONENT);
class SUBADDON {
name = COMPONENT_NAME;
units[] = {};
weapons[] = {QGVAR(2b14_carry), QGVAR(nsv_carry), QGVAR(kord_carry), QGVAR(ags30_carry), QGVAR(spg9_carry), QGVAR(spg9m_carry), QGVAR(metis_carry), QGVAR(kornet_carry)};
requiredVersion = REQUIRED_VERSION;
@ -13,10 +10,10 @@ class CfgPatches {
"rhs_main_loadorder",
"ace_csw"
};
skipWhenMissingDependencies = 1;
author = ECSTRING(common,ACETeam);
authors[] = {"Ruthberg", "GitHawk", "BaerMitUmlaut", "commy2", "Skengman2"};
url = ECSTRING(main,URL);
skipWhenMissingDependencies = 1;
VERSION_CONFIG;
};
};

View File

@ -1,5 +1,5 @@
#define SUBCOMPONENT csw
#define SUBCOMPONENT_BEAUTIFIED Crew-Served Weapons
#include "\z\ace\addons\compat_rhs_afrf3\script_component.hpp"
#define SUBCOMPONENT csw
#undef ADDON
#define ADDON TRIPLES(PREFIX,COMPONENT,SUBCOMPONENT)
#include "\z\ace\addons\csw\script_config_macros_csw.hpp"

View File

@ -1,8 +1,8 @@
#include "script_component.hpp"
class CfgPatches {
class ADDON {
name = QUOTE(COMPONENT);
class SUBADDON {
name = COMPONENT_NAME;
units[] = {};
weapons[] = {};
requiredVersion = REQUIRED_VERSION;
@ -10,10 +10,10 @@ class CfgPatches {
"rhs_main_loadorder",
"ace_explosives"
};
skipWhenMissingDependencies = 1;
author = ECSTRING(common,ACETeam);
authors[] = {"Ruthberg", "GitHawk", "BaerMitUmlaut", "commy2", "Skengman2"};
url = ECSTRING(main,URL);
skipWhenMissingDependencies = 1;
VERSION_CONFIG;
};
};

View File

@ -1,5 +1,3 @@
#include "\z\ace\addons\compat_rhs_afrf3\script_component.hpp"
#define SUBCOMPONENT explosives
#undef ADDON
#define ADDON TRIPLES(PREFIX,COMPONENT,SUBCOMPONENT)
#define SUBCOMPONENT_BEAUTIFIED Explosives
#include "\z\ace\addons\compat_rhs_afrf3\script_component.hpp"

View File

@ -1,11 +1,8 @@
#include "script_component.hpp"
// Config will be binerized, so this include is only required at build-time
#include "\z\ace\addons\fastroping\script_macros.hpp"
class CfgPatches {
class ADDON {
name = QUOTE(COMPONENT);
class SUBADDON {
name = COMPONENT_NAME;
units[] = {};
weapons[] = {};
requiredVersion = REQUIRED_VERSION;
@ -15,6 +12,7 @@ class CfgPatches {
};
skipWhenMissingDependencies = 1;
author = ECSTRING(common,ACETeam);
authors[] = {};
url = ECSTRING(main,URL);
VERSION_CONFIG;
};

View File

@ -1,5 +1,5 @@
#define SUBCOMPONENT fastroping
#define SUBCOMPONENT_BEAUTIFIED Fastroping
#include "\z\ace\addons\compat_rhs_afrf3\script_component.hpp"
#define SUBCOMPONENT fastroping
#undef ADDON
#define ADDON TRIPLES(PREFIX,COMPONENT,SUBCOMPONENT)
#include "\z\ace\addons\fastroping\script_macros.hpp"

View File

@ -1,8 +1,8 @@
#include "script_component.hpp"
class CfgPatches {
class ADDON {
name = QUOTE(COMPONENT);
class SUBADDON {
name = COMPONENT_NAME;
units[] = {};
weapons[] = {};
requiredVersion = REQUIRED_VERSION;
@ -10,10 +10,10 @@ class CfgPatches {
"rhs_main_loadorder",
"ace_nightvision"
};
skipWhenMissingDependencies = 1;
author = ECSTRING(common,ACETeam);
authors[] = {"Ruthberg", "GitHawk", "BaerMitUmlaut", "commy2", "Skengman2"};
url = ECSTRING(main,URL);
skipWhenMissingDependencies = 1;
VERSION_CONFIG;
};
};

View File

@ -1,5 +1,3 @@
#include "\z\ace\addons\compat_rhs_afrf3\script_component.hpp"
#define SUBCOMPONENT nightvision
#undef ADDON
#define ADDON TRIPLES(PREFIX,COMPONENT,SUBCOMPONENT)
#define SUBCOMPONENT_BEUTIFIEID Night Vision
#include "\z\ace\addons\compat_rhs_afrf3\script_component.hpp"

View File

@ -1,8 +1,8 @@
#include "script_component.hpp"
class CfgPatches {
class ADDON {
name = QUOTE(COMPONENT);
class SUBADDON {
name = COMPONENT_NAME;
units[] = {};
weapons[] = {};
requiredVersion = REQUIRED_VERSION;
@ -10,10 +10,10 @@ class CfgPatches {
"rhs_main_loadorder",
"ace_refuel"
};
skipWhenMissingDependencies = 1;
author = ECSTRING(common,ACETeam);
authors[] = {"Ruthberg", "GitHawk", "BaerMitUmlaut", "commy2", "Skengman2"};
url = ECSTRING(main,URL);
skipWhenMissingDependencies = 1;
VERSION_CONFIG;
};
};

View File

@ -1,5 +1,3 @@
#include "\z\ace\addons\compat_rhs_afrf3\script_component.hpp"
#define SUBCOMPONENT refuel
#undef ADDON
#define ADDON TRIPLES(PREFIX,COMPONENT,SUBCOMPONENT)
#define SUBCOMPONENT_BEAUTIFIED Refuel
#include "\z\ace\addons\compat_rhs_afrf3\script_component.hpp"

View File

@ -1,8 +1,8 @@
#include "script_component.hpp"
class CfgPatches {
class ADDON {
name = QUOTE(COMPONENT);
class SUBADDON {
name = COMPONENT_NAME;
units[] = {};
weapons[] = {};
requiredVersion = REQUIRED_VERSION;
@ -10,10 +10,10 @@ class CfgPatches {
"rhs_main_loadorder",
"ace_scopes"
};
skipWhenMissingDependencies = 1;
author = ECSTRING(common,ACETeam);
authors[] = {"Ruthberg", "GitHawk", "BaerMitUmlaut", "commy2", "Skengman2"};
url = ECSTRING(main,URL);
skipWhenMissingDependencies = 1;
VERSION_CONFIG;
};
};

View File

@ -1,5 +1,3 @@
#include "\z\ace\addons\compat_rhs_afrf3\script_component.hpp"
#define SUBCOMPONENT scopes
#undef ADDON
#define ADDON TRIPLES(PREFIX,COMPONENT,SUBCOMPONENT)
#define SUBCOMPONENT_BEAUTIFIED Scopes
#include "\z\ace\addons\compat_rhs_afrf3\script_component.hpp"

View File

@ -1,11 +1,8 @@
#include "script_component.hpp"
// Config will be binerized, so this include is only required at build-time
#include "\z\ace\addons\csw\script_config_macros_csw.hpp"
class CfgPatches {
class ADDON {
name = QUOTE(COMPONENT);
class SUBADDON {
name = COMPONENT_NAME;
units[] = {};
weapons[] = {QGVAR(dshkm_carry)};
requiredVersion = REQUIRED_VERSION;
@ -15,6 +12,7 @@ class CfgPatches {
};
skipWhenMissingDependencies = 1;
author = ECSTRING(common,ACETeam);
authors[] = {};
url = ECSTRING(main,URL);
VERSION_CONFIG;
};

View File

@ -1,5 +1,5 @@
#define SUBCOMPONENT csw
#define SUBCOMPONENT_BEAUTIFIED Crew-Served Weapons
#include "\z\ace\addons\compat_rhs_gref3\script_component.hpp"
#define SUBCOMPONENT csw
#undef ADDON
#define ADDON TRIPLES(PREFIX,COMPONENT,SUBCOMPONENT)
#include "\z\ace\addons\csw\script_config_macros_csw.hpp"

View File

@ -1,8 +1,8 @@
#include "script_component.hpp"
class CfgPatches {
class ADDON {
name = QUOTE(COMPONENT);
class SUBADDON {
name = COMPONENT_NAME;
units[] = {};
weapons[] = {};
requiredVersion = REQUIRED_VERSION;
@ -12,6 +12,7 @@ class CfgPatches {
};
skipWhenMissingDependencies = 1;
author = ECSTRING(common,ACETeam);
authors[] = {};
url = ECSTRING(main,URL);
VERSION_CONFIG;
};

View File

@ -1,5 +1,3 @@
#include "\z\ace\addons\compat_rhs_gref3\script_component.hpp"
#define SUBCOMPONENT explosives
#undef ADDON
#define ADDON TRIPLES(PREFIX,COMPONENT,SUBCOMPONENT)
#define SUBCOMPONENT_BEAUTIFIED Explosives
#include "\z\ace\addons\compat_rhs_gref3\script_component.hpp"

View File

@ -1,11 +1,8 @@
#include "script_component.hpp"
// Config will be binerized, so this include is only required at build-time
#include "\z\ace\addons\fastroping\script_macros.hpp"
class CfgPatches {
class ADDON {
name = QUOTE(COMPONENT);
class SUBADDON {
name = COMPONENT_NAME;
units[] = {};
weapons[] = {};
requiredVersion = REQUIRED_VERSION;
@ -15,6 +12,7 @@ class CfgPatches {
};
skipWhenMissingDependencies = 1;
author = ECSTRING(common,ACETeam);
authors[] = {};
url = ECSTRING(main,URL);
VERSION_CONFIG;
};

View File

@ -1,5 +1,5 @@
#define SUBCOMPONENT fastroping
#define SUBCOMPONENT_BEAUTIFIED Fastroping
#include "\z\ace\addons\compat_rhs_gref3\script_component.hpp"
#define SUBCOMPONENT fastroping
#undef ADDON
#define ADDON TRIPLES(PREFIX,COMPONENT,SUBCOMPONENT)
#include "\z\ace\addons\fastroping\script_macros.hpp"

View File

@ -1,8 +1,8 @@
#include "script_component.hpp"
class CfgPatches {
class ADDON {
name = QUOTE(COMPONENT);
class SUBADDON {
name = COMPONENT_NAME;
units[] = {};
weapons[] = {};
requiredVersion = REQUIRED_VERSION;
@ -10,10 +10,10 @@ class CfgPatches {
"rhssaf_main_loadorder",
"ace_explosives"
};
skipWhenMissingDependencies = 1;
author = ECSTRING(common,ACETeam);
authors[] = {};
url = ECSTRING(main,URL);
skipWhenMissingDependencies = 1;
VERSION_CONFIG;
};
};

View File

@ -1,10 +1,3 @@
#define COMPONENT compat_rhs_saf3
#define COMPONENT_BEAUTIFIED RHS SAF Compatibility
#include "\z\ace\addons\main\script_mod.hpp"
#include "\z\ace\addons\main\script_macros.hpp"
#define SUBCOMPONENT explosives
#undef ADDON
#define ADDON TRIPLES(PREFIX,COMPONENT,SUBCOMPONENT)
#define SUBCOMPONENT_BEAUTIFIED Explosives
#include "\z\ace\addons\compat_rhs_saf3\script_component.hpp"

View File

@ -7,10 +7,10 @@ class CfgPatches {
weapons[] = {};
requiredVersion = REQUIRED_VERSION;
requiredAddons[] = {"rhssaf_main_loadorder"};
skipWhenMissingDependencies = 1;
author = ECSTRING(common,ACETeam);
authors[] = {};
url = ECSTRING(main,URL);
skipWhenMissingDependencies = 1;
VERSION_CONFIG;
};
};

View File

@ -1,11 +1,8 @@
#include "script_component.hpp"
// Config will be binerized, so this include is only required at build-time
#include "\z\ace\addons\csw\script_config_macros_csw.hpp"
class CfgPatches {
class ADDON {
addonRootClass = QUOTE(COMPONENT);
class SUBADDON {
name = COMPONENT_NAME;
units[] = {};
weapons[] = {QGVAR(m252_carry), QGVAR(m2_carry), QGVAR(mk19_carry), QGVAR(tow_carry)};
requiredVersion = REQUIRED_VERSION;
@ -14,7 +11,12 @@ class CfgPatches {
"ace_csw"
};
skipWhenMissingDependencies = 1;
author = ECSTRING(common,ACETeam);
authors[] = {};
url = ECSTRING(main,URL);
VERSION_CONFIG;
addonRootClass = QUOTE(ADDON);
};
};

View File

@ -1,5 +1,5 @@
#define SUBCOMPONENT csw
#define SUBCOMPONENT_BEAUTIFIED Crew-Served Weapons
#include "\z\ace\addons\compat_rhs_usf3\script_component.hpp"
#define SUBCOMPONENT csw
#undef ADDON
#define ADDON TRIPLES(PREFIX,COMPONENT,SUBCOMPONENT)
#include "\z\ace\addons\csw\script_config_macros_csw.hpp"

View File

@ -1,8 +1,8 @@
#include "script_component.hpp"
class CfgPatches {
class ADDON {
addonRootClass = QUOTE(COMPONENT);
class SUBADDON {
name = COMPONENT_NAME;
units[] = {};
weapons[] = {};
requiredVersion = REQUIRED_VERSION;
@ -11,7 +11,12 @@ class CfgPatches {
"ace_explosives"
};
skipWhenMissingDependencies = 1;
author = ECSTRING(common,ACETeam);
authors[] = {};
url = ECSTRING(main,URL);
VERSION_CONFIG;
addonRootClass = QUOTE(ADDON);
};
};

View File

@ -1,5 +1,3 @@
#include "\z\ace\addons\compat_rhs_usf3\script_component.hpp"
#define SUBCOMPONENT explosives
#undef ADDON
#define ADDON TRIPLES(PREFIX,COMPONENT,SUBCOMPONENT)
#define SUBCOMPONENT_BEAUTIFIED Explosives
#include "\z\ace\addons\compat_rhs_usf3\script_component.hpp"

View File

@ -1,11 +1,8 @@
#include "script_component.hpp"
// Config will be binerized, so this include is only required at build-time
#include "\z\ace\addons\fastroping\script_macros.hpp"
class CfgPatches {
class ADDON {
name = QUOTE(COMPONENT);
class SUBADDON {
name = COMPONENT_NAME;
units[] = {};
weapons[] = {};
requiredVersion = REQUIRED_VERSION;
@ -15,6 +12,7 @@ class CfgPatches {
};
skipWhenMissingDependencies = 1;
author = ECSTRING(common,ACETeam);
authors[] = {};
url = ECSTRING(main,URL);
VERSION_CONFIG;
};

View File

@ -1,5 +1,5 @@
#define SUBCOMPONENT fastroping
#define SUBCOMPONENT_BEAUTIFIED Fastroping
#include "\z\ace\addons\compat_rhs_usf3\script_component.hpp"
#define SUBCOMPONENT fastroping
#undef ADDON
#define ADDON TRIPLES(PREFIX,COMPONENT,SUBCOMPONENT)
#include "\z\ace\addons\fastroping\script_macros.hpp"

View File

@ -1,8 +1,8 @@
#include "script_component.hpp"
class CfgPatches {
class ADDON {
addonRootClass = QUOTE(COMPONENT);
class SUBADDON {
name = COMPONENT_NAME;
units[] = {};
weapons[] = {};
requiredVersion = REQUIRED_VERSION;
@ -11,7 +11,12 @@ class CfgPatches {
"ace_javelin"
};
skipWhenMissingDependencies = 1;
author = ECSTRING(common,ACETeam);
authors[] = {};
url = ECSTRING(main,URL);
VERSION_CONFIG;
addonRootClass = QUOTE(ADDON);
};
};

View File

@ -1,5 +1,3 @@
#include "\z\ace\addons\compat_rhs_usf3\script_component.hpp"
#define SUBCOMPONENT javelin
#undef ADDON
#define ADDON TRIPLES(PREFIX,COMPONENT,SUBCOMPONENT)
#define SUBCOMPONENT_BEAUTIFIED Javelin
#include "\z\ace\addons\compat_rhs_usf3\script_component.hpp"

View File

@ -1,8 +1,8 @@
#include "script_component.hpp"
class CfgPatches {
class ADDON {
addonRootClass = QUOTE(COMPONENT);
class SUBADDON {
name = COMPONENT_NAME;
units[] = {};
weapons[] = {};
requiredVersion = REQUIRED_VERSION;
@ -11,7 +11,12 @@ class CfgPatches {
"ace_nightvision"
};
skipWhenMissingDependencies = 1;
author = ECSTRING(common,ACETeam);
authors[] = {};
url = ECSTRING(main,URL);
VERSION_CONFIG;
addonRootClass = QUOTE(ADDON);
};
};

View File

@ -1,5 +1,3 @@
#include "\z\ace\addons\compat_rhs_usf3\script_component.hpp"
#define SUBCOMPONENT nightvision
#undef ADDON
#define ADDON TRIPLES(PREFIX,COMPONENT,SUBCOMPONENT)
#define SUBCOMPONENT_BEAUTIFIED Night Vision
#include "\z\ace\addons\compat_rhs_usf3\script_component.hpp"

View File

@ -1,8 +1,8 @@
#include "script_component.hpp"
class CfgPatches {
class ADDON {
addonRootClass = QUOTE(COMPONENT);
class SUBADDON {
name = COMPONENT_NAME;
units[] = {};
weapons[] = {};
requiredVersion = REQUIRED_VERSION;
@ -11,7 +11,12 @@ class CfgPatches {
"ace_refuel"
};
skipWhenMissingDependencies = 1;
author = ECSTRING(common,ACETeam);
authors[] = {};
url = ECSTRING(main,URL);
VERSION_CONFIG;
addonRootClass = QUOTE(ADDON);
};
};

View File

@ -1,5 +1,3 @@
#include "\z\ace\addons\compat_rhs_usf3\script_component.hpp"
#define SUBCOMPONENT refuel
#undef ADDON
#define ADDON TRIPLES(PREFIX,COMPONENT,SUBCOMPONENT)
#define SUBCOMPONENT_BEAUTIFIED Refuel
#include "\z\ace\addons\compat_rhs_usf3\script_component.hpp"

View File

@ -1,8 +1,8 @@
#include "script_component.hpp"
class CfgPatches {
class ADDON {
addonRootClass = QUOTE(COMPONENT);
class SUBADDON {
name = COMPONENT_NAME;
units[] = {};
weapons[] = {};
requiredVersion = REQUIRED_VERSION;
@ -11,7 +11,12 @@ class CfgPatches {
"ace_scopes"
};
skipWhenMissingDependencies = 1;
author = ECSTRING(common,ACETeam);
authors[] = {};
url = ECSTRING(main,URL);
VERSION_CONFIG;
addonRootClass = QUOTE(ADDON);
};
};

View File

@ -1,5 +1,3 @@
#include "\z\ace\addons\compat_rhs_usf3\script_component.hpp"
#define SUBCOMPONENT scopes
#undef ADDON
#define ADDON TRIPLES(PREFIX,COMPONENT,SUBCOMPONENT)
#define SUBCOMPONENT_BEAUTIFIED Scopes
#include "\z\ace\addons\compat_rhs_usf3\script_component.hpp"

View File

@ -7,10 +7,10 @@ class CfgPatches {
weapons[] = {};
requiredVersion = REQUIRED_VERSION;
requiredAddons[] = {"rhsusf_main_loadorder"};
skipWhenMissingDependencies = 1;
author = ECSTRING(common,ACETeam);
authors[] = {"Ruthberg", "GitHawk", "BaerMitUmlaut", "Fyuran"};
url = ECSTRING(main,URL);
skipWhenMissingDependencies = 1;
VERSION_CONFIG;
};
};

View File

@ -1,14 +1,12 @@
#include "script_component.hpp"
class CfgPatches {
class ADDON {
class SUBADDON {
name = COMPONENT_NAME;
units[] = {};
weapons[] = {};
requiredVersion = REQUIRED_VERSION;
requiredAddons[] = {
"loadorder_f_vietnam", "ace_trenches"
};
requiredAddons[] = {"loadorder_f_vietnam", "ace_trenches"};
skipWhenMissingDependencies = 1;
author = ECSTRING(common,ACETeam);
authors[] = {"BaerMitUmlaut", "veteran29"};

View File

@ -1,5 +1,3 @@
#include "\z\ace\addons\compat_sog\script_component.hpp"
#define SUBCOMPONENT trenches
#undef ADDON
#define ADDON TRIPLES(PREFIX,COMPONENT,SUBCOMPONENT)
#define SUBCOMPONENT_BEAUTIFIED Trenches
#include "\z\ace\addons\compat_sog\script_component.hpp"

View File

@ -1,14 +1,12 @@
#include "script_component.hpp"
class CfgPatches {
class ADDON {
class SUBADDON {
name = COMPONENT_NAME;
units[] = {};
weapons[] = {};
requiredVersion = REQUIRED_VERSION;
requiredAddons[] = {
"loadorder_f_vietnam", "ace_compat_sog_trenches", "grad_trenches_main"
};
requiredAddons[] = {"loadorder_f_vietnam", "ace_compat_sog_trenches", "grad_trenches_main"};
skipWhenMissingDependencies = 1;
author = ECSTRING(common,ACETeam);
authors[] = {"BaerMitUmlaut", "veteran29"};

View File

@ -1,5 +1,3 @@
#include "\z\ace\addons\compat_sog\script_component.hpp"
#define SUBCOMPONENT trenches_grad
#undef ADDON
#define ADDON TRIPLES(PREFIX,COMPONENT,SUBCOMPONENT)
#define SUBCOMPONENT_BEAUTIFIED Trenches GRAD
#include "\z\ace\addons\compat_sog\script_component.hpp"

View File

@ -1,7 +1,7 @@
#include "script_component.hpp"
class CfgPatches {
class ADDON {
class SUBADDON {
name = COMPONENT_NAME;
units[] = {};
weapons[] = {};

View File

@ -1,5 +1,3 @@
#include "\z\ace\addons\compat_ws\script_component.hpp"
#define SUBCOMPONENT nouniformrestrictions
#undef ADDON
#define ADDON TRIPLES(PREFIX,COMPONENT,SUBCOMPONENT)
#define SUBCOMPONENT_BEAUTIFIED No Uniform Restrictions
#include "\z\ace\addons\compat_ws\script_component.hpp"

View File

@ -1,9 +1,8 @@
#include "\z\ace\addons\huntir\script_component.hpp"
#undef COMPONENT
#define COMPONENT huntir_sub
#define SUBCOMPONENT sub
#include "..\script_component.hpp"
class CfgPatches {
class ADDON {
class SUBADDON {
name = COMPONENT_NAME;
units[] = {};
weapons[] = {};
@ -12,6 +11,8 @@ class CfgPatches {
author = ECSTRING(common,ACETeam);
url = ECSTRING(main,URL);
VERSION_CONFIG;
addonRootClass = QUOTE(ADDON);
};
};

View File

@ -13,8 +13,11 @@
#define REQUIRED_VERSION 2.14
#define REQUIRED_CBA_VERSION {3,15,7}
#ifdef COMPONENT_BEAUTIFIED
#define COMPONENT_NAME QUOTE(ACE3 - COMPONENT_BEAUTIFIED)
#else
#define COMPONENT_NAME QUOTE(ACE3 - COMPONENT)
#ifndef COMPONENT_BEAUTIFIED
#define COMPONENT_BEAUTIFIED COMPONENT
#endif
#ifdef SUBCOMPONENT_BEAUTIFIED
#define COMPONENT_NAME QUOTE(ACE3 - COMPONENT_BEAUTIFIED - SUBCOMPONENT_BEAUTIFIED)
#else
#define COMPONENT_NAME QUOTE(ACE3 - COMPONENT_BEAUTIFIED)
#endif

View File

@ -29,6 +29,10 @@
and include your mod's script_macros.hpp
In your scripts you can then include the addon's component.hpp with relative path)
use in subcomponents (subconfigs)
define SUBCOMPONENT and include parent component's script_component.hpp
currently only supported by SUBADDON, additional macros may be added in the future
TODO:
- Try only to use 1 string type " vs '
- Evaluate double functions, and simplification
@ -54,6 +58,10 @@
#define ADDON DOUBLES(PREFIX,COMPONENT)
#define MAIN_ADDON DOUBLES(PREFIX,main)
#ifdef SUBCOMPONENT
#define SUBADDON DOUBLES(ADDON,SUBCOMPONENT)
#endif
/* -------------------------------------------
Macro: VERSION_CONFIG
Define CBA Versioning System config entries.