DayZ 1.27
DayZ Explorer by KGB
 
Загрузка...
Поиск...
Не найдено

◆ KindOf()

override bool InventoryItem::KindOf ( string tag)
inlineprivate

См. определение в файле ItemBase.c строка 2702

2703 {
2704 bool found = false;
2705 string item_name = this.GetType();
2706 ref TStringArray item_tag_array = new TStringArray;
2707 GetGame().ConfigGetTextArray("cfgVehicles " + item_name + " itemInfo", item_tag_array);
2708
2709 int array_size = item_tag_array.Count();
2710 for (int i = 0; i < array_size; i++)
2711 {
2712 if (item_tag_array.Get(i) == tag)
2713 {
2714 found = true;
2715 break;
2716 }
2717 }
2718 return found;
2719 }
eBleedingSourceType GetType()
Определения BleedingSource.c:63
proto native void ConfigGetTextArray(string path, out TStringArray values)
Get array of strings from config on path.
proto native CGame GetGame()
array< string > TStringArray
Определения EnScript.c:685

Перекрестные ссылки CGame::ConfigGetTextArray(), GetGame() и GetType().