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

◆ GetComponentIndex()

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

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

1951 {
1952 if (!MiscGameplayFunctions.IsComponentInSelection(pSelection, pCompName))
1953 {
1954 return INDEX_NOT_FOUND;
1955 }
1956
1957 for (int i = 0; i < pSelection.Count(); ++i)
1958 {
1959 pCompName.ToLower();
1960 if (pSelection[i] && pSelection[i].GetName() == pCompName)
1961 {
1962 return i;
1963 }
1964 }
1965
1966 return INDEX_NOT_FOUND;
1967 }
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().