mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
Add example blank module and EGVAR() QEGVAR()
This commit is contained in:
parent
876fa59a32
commit
2222bb721b
@ -171,4 +171,8 @@
|
|||||||
|
|
||||||
|
|
||||||
#define PREPF(fncName) FUNC(fncName) = compile preprocessFileLineNumbers QUOTE(PATHTOF(functions\DOUBLES(fnc,fncName).sqf))
|
#define PREPF(fncName) FUNC(fncName) = compile preprocessFileLineNumbers QUOTE(PATHTOF(functions\DOUBLES(fnc,fncName).sqf))
|
||||||
#define PREP_MODULE(folder) [] call compile preprocessFileLineNumbers QUOTE(PATHTOF(folder\__PREP__.sqf))
|
#define PREP_MODULE(folder) [] call compile preprocessFileLineNumbers QUOTE(PATHTOF(folder\__PREP__.sqf))
|
||||||
|
|
||||||
|
#define EGVAR(module,var) TRIPLES(PREFIX,module,var)
|
||||||
|
#define QEGVAR(module,var) QUOTE(EGVAR(module,var))
|
||||||
|
|
||||||
|
5
extras/blank_module/CfgEventHandlers.hpp
Normal file
5
extras/blank_module/CfgEventHandlers.hpp
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
class Extended_PreInit_EventHandlers {
|
||||||
|
class ADDON {
|
||||||
|
init = QUOTE( call compile preprocessFileLineNumbers PATHTOF(XEH_preInit.sqf) );
|
||||||
|
};
|
||||||
|
};
|
3
extras/blank_module/XEH_preInit.sqf
Normal file
3
extras/blank_module/XEH_preInit.sqf
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
#include "script_component.hpp"
|
||||||
|
|
||||||
|
PREPF(empty);
|
17
extras/blank_module/config.cpp
Normal file
17
extras/blank_module/config.cpp
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
#include "script_component.hpp"
|
||||||
|
|
||||||
|
class CfgPatches {
|
||||||
|
class ADDON {
|
||||||
|
units[] = {};
|
||||||
|
weapons[] = {};
|
||||||
|
requiredVersion = 0.60;
|
||||||
|
requiredAddons[] = {"AGM_Core", "AGM_Interaction"};
|
||||||
|
version = "0.95";
|
||||||
|
versionStr = "0.95";
|
||||||
|
versionAr[] = {0,95,0};
|
||||||
|
author[] = {""};
|
||||||
|
authorUrl = "";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
#include "CfgEventHandlers.hpp"
|
3
extras/blank_module/functions/fnc_empty.sqf
Normal file
3
extras/blank_module/functions/fnc_empty.sqf
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
#include "script_component.hpp"
|
||||||
|
|
||||||
|
diag_log text format["This is here as an example!!!"];
|
12
extras/blank_module/script_component.hpp
Normal file
12
extras/blank_module/script_component.hpp
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
#define COMPONENT blank
|
||||||
|
#include "\z\ace\Addons\main\script_mod.hpp"
|
||||||
|
|
||||||
|
#ifdef DEBUG_ENABLED_BLANK
|
||||||
|
#define DEBUG_MODE_FULL
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifdef DEBUG_SETTINGS_BLANK
|
||||||
|
#define DEBUG_SETTINGS DEBUG_SETTINGS_BLANK
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#include "\z\ace\Addons\main\script_macros.hpp"
|
Loading…
Reference in New Issue
Block a user