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

◆ GetComponentIndex()

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

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

1812 {
1813 if (!MiscGameplayFunctions.IsComponentInSelection(pSelection, pCompName))
1814 {
1815 return INDEX_NOT_FOUND;
1816 }
1817
1818 for (int i = 0; i < pSelection.Count(); ++i)
1819 {
1820 pCompName.ToLower();
1821 if (pSelection[i] && pSelection[i].GetName() == pCompName)
1822 {
1823 return i;
1824 }
1825 }
1826
1827 return INDEX_NOT_FOUND;
1828 }
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().