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

◆ StoreTarget()

void ActionTargets::StoreTarget ( ActionTarget pActionTarget)
inlineprivate

inserts action into sorted array based on utility

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

462 {
463 int index = FindIndexForStoring(pActionTarget.GetUtility());
464 m_Targets.InsertAt(pActionTarget, index);
465 //Print("StoreTarget; object: " + pActionTarget.GetObject() + " | parent: " + pActionTarget.GetParent() + " | idx: " + index);
466 }
ref array< ref ActionTarget > m_Targets
selected & sorted targets by utility function
Определения ActionTargets.c:823
int FindIndexForStoring(float value)
binary search algorithm
Определения ActionTargets.c:469

Перекрестные ссылки ActionTarget(), FindIndexForStoring() и m_Targets.

Используется в Update().