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

◆ GetComponentIndex()

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

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

1805 {
1806 if (!MiscGameplayFunctions.IsComponentInSelection(pSelection, pCompName))
1807 {
1808 return INDEX_NOT_FOUND;
1809 }
1810
1811 for (int i = 0; i < pSelection.Count(); ++i)
1812 {
1813 pCompName.ToLower();
1814 if (pSelection[i] && pSelection[i].GetName() == pCompName)
1815 {
1816 return i;
1817 }
1818 }
1819
1820 return INDEX_NOT_FOUND;
1821 }
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().