2015-09-20 22:28:25 +00:00
|
|
|
/*
|
|
|
|
* Author: commy2
|
|
|
|
* Get display classnames from config with given idd.
|
|
|
|
*
|
|
|
|
* Arguments:
|
|
|
|
* 0: Display ID (idd) <NUMBER>
|
|
|
|
*
|
|
|
|
* Return Value:
|
|
|
|
* Display Classnames <ARRAY>
|
|
|
|
*
|
|
|
|
* Public: Yes
|
|
|
|
*
|
|
|
|
* Note: Really slow due to iteration through whole config. Meant for debugging.
|
|
|
|
*/
|
2015-01-13 19:56:02 +00:00
|
|
|
#include "script_component.hpp"
|
2015-01-11 16:42:31 +00:00
|
|
|
|
2015-09-20 22:28:25 +00:00
|
|
|
params ["_idd"];
|
2015-01-11 16:42:31 +00:00
|
|
|
|
2015-12-12 15:48:54 +00:00
|
|
|
private _configNames = [];
|
2015-01-11 16:42:31 +00:00
|
|
|
|
|
|
|
for "_index" from 0 to (count configFile - 1) do {
|
2015-12-12 15:48:54 +00:00
|
|
|
private _config = configFile select _index;
|
2015-09-20 22:28:25 +00:00
|
|
|
|
|
|
|
if (isClass _config && {isNumber (_config >> "idd")} && {getNumber (_config >> "idd") == _idd}) then {
|
|
|
|
_configNames pushBack configName _config;
|
2015-05-14 18:06:06 +00:00
|
|
|
};
|
2015-01-11 16:42:31 +00:00
|
|
|
};
|
|
|
|
|
2015-09-20 22:28:25 +00:00
|
|
|
_configNames
|