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

◆ IsComponentInSelection()

static bool IsComponentInSelection ( array< Selection > pSelection,
string pCompName )
staticprotected

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

1793 {
1794 if (pSelection.Count() == 0 || pCompName.Length() == 0)
1795 {
1796 return false;
1797 }
1798
1799 for (int i = 0; i < pSelection.Count(); ++i)
1800 {
1801 pCompName.ToLower();
1802 if (pSelection[i] && pSelection[i].GetName() == pCompName)
1803 {
1804 return true;
1805 }
1806 }
1807
1808 return false;
1809 }
proto native int Length()
Returns length of string.
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(), string::Length() и string::ToLower().