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()
void PrintString(string s)
Helper for printing out string expression. Example: PrintString("Hello " + var);.
См. определение в файле Game.c строка 1391
1392 {
1395
1397
1398 for (int i = 0; i < full_path.Count(); i++)
1399 {
1400 string tmp = full_path.Get(i);
1402 if (tmp == cfg_parent_name)
1403 {
1404 return true;
1405 }
1406 }
1407
1408 return false;
1409 }
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().