Returns is object inherited from parent class name.
- Аргументы
-
object | Object |
cfg_parent_name | Parent Config Class name ("DZ_LightAI") |
- Возвращает
bool
is object inherited from parent class name
>> 1
bool IsKindOf(string cfg_class_name, string cfg_parent_name)
Returns is class name inherited from parent class name.
proto native CGame GetGame()
class array< Class T > PrintString
См. определение в файле Global/game.c строка 1446
1447 {
1450
1452
1453 for (int i = 0; i < full_path.Count(); i++)
1454 {
1455 string tmp = full_path.Get(i);
1457 if (tmp == cfg_parent_name)
1458 {
1459 return true;
1460 }
1461 }
1462
1463 return false;
1464 }
proto native void ConfigGetObjectFullPath(Object obj, out TStringArray full_path)
array< string > TStringArray
proto int ToLower()
Changes string to lowercase. Returns length.
Перекрестные ссылки ConfigGetObjectFullPath() и string::ToLower().
Используется в IEntity::IsKindOf().