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

◆ KindOf()

override bool InventoryItem::KindOf ( string tag)
inlineprotected

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

2773 {
2774 bool found = false;
2775 string item_name = this.GetType();
2776 ref TStringArray item_tag_array = new TStringArray;
2777 GetGame().ConfigGetTextArray("cfgVehicles " + item_name + " itemInfo", item_tag_array);
2778
2779 int array_size = item_tag_array.Count();
2780 for (int i = 0; i < array_size; i++)
2781 {
2782 if (item_tag_array.Get(i) == tag)
2783 {
2784 found = true;
2785 break;
2786 }
2787 }
2788 return found;
2789 }
eBleedingSourceType GetType()
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:709

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