mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
17 lines
370 B
Plaintext
17 lines
370 B
Plaintext
#include "script_component.hpp"
|
|
|
|
private["_ret", "_parent"];
|
|
|
|
PARAMS_3(_mag,_type,_superclass);
|
|
|
|
_ret = false;
|
|
|
|
_parent = configName (inheritsFrom ( configFile >> _superClass >> _mag));
|
|
while { _parent != "" } do {
|
|
if (_parent == _type) exitWith {
|
|
_ret = true;
|
|
};
|
|
_parent = configName (inheritsFrom ( configFile >> _superClass >> _parent));
|
|
};
|
|
|
|
_ret |