wip, fbcb2_assets, init, util

This commit is contained in:
2024-02-04 22:18:06 -08:00
parent 4cfa159ee9
commit f450f4611b
32 changed files with 2066 additions and 100 deletions

View File

@@ -1,3 +1,5 @@
#include "..\script_component.hpp"
params [["_playerObj", objNull], ["_arrayToModify", [], [[]]]];
if (isNull _playerObj) exitWith {_arrayToModify};

View File

@@ -1,3 +1,5 @@
#include "..\script_component.hpp"
params [["_base", objNull, [objNull]]];
if (_base == objNull) exitWith {""};

View File

@@ -1,3 +1,5 @@
#include "..\script_component.hpp"
params [["_object", objNull, [objNull]]];
if (isNull _object) exitWith {objNull};

View File

@@ -9,6 +9,7 @@
1: STRING - message to log.
2: ARRAY - Key value pairs of data to log.
*/
#include "..\script_component.hpp"
params [
["_component", "", [""]],
@@ -23,6 +24,6 @@ _message regexReplace ["\[", "("];
_message regexReplace ["\]", ")"];
private _json = [_hash] call CBA_fnc_encodeJSON;
_log = format ["[milsim] [%1] [%2] [%3] :: %4", _component, _fnc_scriptNameParent, _message, _json];
_log = format ["[%1] [%2] [%3] [%4] :: %5", QUOTE(PREFIX), _component, _fnc_scriptNameParent, _message, _json];
diag_log text _log;

View File

@@ -1,5 +1,7 @@
#include "..\script_component.hpp"
[
"init",
QUOTE(COMPONENT),
"MISSION INFO",
[
["serverName", serverName],
@@ -20,4 +22,4 @@
["LOGIC", playableSlotsNumber sideLogic] // 5 is LOGIC side
]]
]
] call milsim_util_fnc_log;
] call FUNC(log);

View File

@@ -1,3 +1,5 @@
#include "..\script_component.hpp"
params [
["_text", "", [""]],
["_padSide", "left", ["left", "right"]],

View File

@@ -1,3 +1,5 @@
#include "..\script_component.hpp"
params [
["_cfg", configNull, [configNull]],
["_code", {}, [{}]]

View File

@@ -0,0 +1,3 @@
#define COMPONENT util
#define COMPONENT_BEAUTIFIED Utilities
#include "../script_mod.hpp"