major updates to fbcb2 diary stuff

This commit is contained in:
2024-02-01 15:19:30 -08:00
parent 2d6fbcfcef
commit a7550d374e
11 changed files with 261 additions and 166 deletions

View File

@@ -5,10 +5,21 @@ params [
if (isNull _cfg) exitWith {["Provided config is null!"] call BIS_fnc_error};
[_cfg] call _code;
// get children and recurse
private _childCfgs = _cfg call BIS_fnc_returnChildren;
{
[_x, _code] call milsim_fnc_recurseSubclasses;
} forEach _childCfgs;
private _recurseFnc = {
params ["_cfg", "_code", ["_recurseCounter", 0]];
[_cfg, _recurseCounter] call _code;
// get children and recurse
private _childCfgs = _cfg call BIS_fnc_returnChildren;
if (count _childCfgs isEqualTo 0) exitWith {false};
{
[_x, _code, _recurseCounter + 1] call _recurseFnc;
} forEach _childCfgs;
false;
};
private _continue = true;
while {_continue} do {
_continue = [_cfg, _code] call _recurseFnc;
};