mirror of
https://github.com/valmojr/armatak.git
synced 2026-06-13 13:13:29 +00:00
exploded main addon to divide componenets into addons for each feature
This commit is contained in:
23
addons/client/config.cpp
Normal file
23
addons/client/config.cpp
Normal file
@@ -0,0 +1,23 @@
|
||||
#include "script_component.hpp"
|
||||
|
||||
class CfgPatches {
|
||||
class ADDON {
|
||||
name = COMPONENT_NAME;
|
||||
units[] = {};
|
||||
weapons[] = {};
|
||||
requiredAddons[] = {
|
||||
"cba_main",
|
||||
"ace_main",
|
||||
"armatak_main"
|
||||
};
|
||||
requiredVersion = REQUIRED_VERSION;
|
||||
author = PROJECT_AUTHOR;
|
||||
url = "https://github.com/valmojr/armatak";
|
||||
};
|
||||
};
|
||||
|
||||
class Extended_PostInit_EventHandlers {
|
||||
class armatak_main {
|
||||
init = "call compileScript ['\armatak\armatak\armatak_client\initPlayerLocal.sqf']";
|
||||
};
|
||||
};
|
||||
17
addons/client/script_component.hpp
Normal file
17
addons/client/script_component.hpp
Normal file
@@ -0,0 +1,17 @@
|
||||
#define COMPONENT client
|
||||
#define COMPONENT_BEAUTIFIED WebSocket
|
||||
#include "\armatak\armatak\armatak_main\script_mod.hpp"
|
||||
|
||||
// #define DEBUG_MODE_FULL
|
||||
// #define DISABLE_COMPILE_CACHE
|
||||
// #define ENABLE_PERFORMANCE_COUNTERS
|
||||
|
||||
#ifdef DEBUG_ENABLED_MAIN
|
||||
#define DEBUG_MODE_FULL
|
||||
#endif
|
||||
|
||||
#ifdef DEBUG_SETTINGS_MAIN
|
||||
#define DEBUG_SETTINGS DEBUG_SETTINGS_MAIN
|
||||
#endif
|
||||
|
||||
#include "\z\ace\addons\main\script_macros.hpp"
|
||||
@@ -13,7 +13,7 @@ class CfgPatches {
|
||||
"ace_main"
|
||||
};
|
||||
requiredVersion = REQUIRED_VERSION;
|
||||
author = QUOTE(Valmo);
|
||||
author = PROJECT_AUTHOR;
|
||||
url = "https://github.com/valmojr/armatak";
|
||||
};
|
||||
};
|
||||
|
||||
17
addons/server/script_component.hpp
Normal file
17
addons/server/script_component.hpp
Normal file
@@ -0,0 +1,17 @@
|
||||
#define COMPONENT server
|
||||
#define COMPONENT_BEAUTIFIED TCP Socket
|
||||
#include "\armatak\armatak\armatak_main\script_mod.hpp"
|
||||
|
||||
// #define DEBUG_MODE_FULL
|
||||
// #define DISABLE_COMPILE_CACHE
|
||||
// #define ENABLE_PERFORMANCE_COUNTERS
|
||||
|
||||
#ifdef DEBUG_ENABLED_MAIN
|
||||
#define DEBUG_MODE_FULL
|
||||
#endif
|
||||
|
||||
#ifdef DEBUG_SETTINGS_MAIN
|
||||
#define DEBUG_SETTINGS DEBUG_SETTINGS_MAIN
|
||||
#endif
|
||||
|
||||
#include "\z\ace\addons\main\script_macros.hpp"
|
||||
Reference in New Issue
Block a user