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

◆ GetComponentIndex()

static int GetComponentIndex ( array< Selection > pSelection,
string pCompName )
staticprotected

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

1818 {
1819 if (!MiscGameplayFunctions.IsComponentInSelection(pSelection, pCompName))
1820 {
1821 return INDEX_NOT_FOUND;
1822 }
1823
1824 for (int i = 0; i < pSelection.Count(); ++i)
1825 {
1826 pCompName.ToLower();
1827 if (pSelection[i] && pSelection[i].GetName() == pCompName)
1828 {
1829 return i;
1830 }
1831 }
1832
1833 return INDEX_NOT_FOUND;
1834 }
const int INDEX_NOT_FOUND
Определения gameplay.c:13
proto int ToLower()
Changes string to lowercase. Returns length.
proto native owned string GetName()
Test name getter. Strictly for UI porposes!
Определения SyncedValue.c:119

Перекрестные ссылки GetName(), INDEX_NOT_FOUND и string::ToLower().