-
Notifications
You must be signed in to change notification settings - Fork 54
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Rework pylon loadout attribute (#454)
* A bunch of performance improvement * Re-add gunner stuff * Edit header * review stuff * It is nothing * Address reviews
- Loading branch information
Showing
2 changed files
with
56 additions
and
63 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
39 changes: 19 additions & 20 deletions
39
@AresModAchillesExpansion/addons/functions_f_achilles/functions/common/fn_returnChildren.sqf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,21 @@ | ||
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// | ||
// AUTHOR: Kex | ||
// DATE: 12/26/17 | ||
// VERSION: AMAE.1.0.0 | ||
// DESCRIPTION: Similar to BIS_fnc_returnChildren, but more efficient and depth is always 0. | ||
// | ||
// ARGUMENTS: 0: CONFIG - Parent config. | ||
// | ||
// RETURNS: ARRAY - List of configs of all children | ||
// | ||
// Example: (configFile >> "CfgVehicles") call Achilles_fnc_returnChildren; | ||
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// | ||
/* | ||
Authors: | ||
NeilZar | ||
params [["_parent_cfg",configFile,[configFile]]]; | ||
private _cfg_list = []; | ||
DESCRIPTION: | ||
Similar to BIS_fnc_returnChildren, but more efficient and depth is always 0. | ||
for "_i" from 0 to (count _parent_cfg - 1) do | ||
{ | ||
private _child_cfg = _parent_cfg select _i; | ||
if(isClass _child_cfg) then {_cfg_list pushBack _child_cfg}; | ||
}; | ||
_cfg_list; | ||
Parameters: | ||
_this: CONFIG - Parent config. | ||
Returns: | ||
ARRAY - List of configs of all children | ||
Examples: | ||
(begin example) | ||
(configFile >> "CfgVehicles") call Achilles_fnc_returnChildren; | ||
(end) | ||
*/ | ||
params [["_parentCfg", configFile, [configFile]]]; | ||
|
||
configProperties [_parentCfg, "isClass _x"]; |