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

◆ HasSelection()

bool IEntity::HasSelection ( string selection)
inlineprivate

Returns true if the given selection was found in the p3d file. False if otherwise.

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

406 {
407 TStringArray selections = new TStringArray;
408 GetSelectionList( selections );
409
410 for ( int i = 0; i < selections.Count(); ++i )
411 {
412 if ( selections.Get( i ) == selection )
413 {
414 return true;
415 }
416 }
417
418 return false;
419 }
proto native void GetSelectionList(out TStringArray selectionList)
class array< Class T > TStringArray

Перекрестные ссылки GetSelectionList() и TStringArray.