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

◆ StoreTarget()

void ActionTargets::StoreTarget ( ActionTarget pActionTarget)
inlineprivate

inserts action into sorted array based on utility

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

437 {
438 int index = FindIndexForStoring(pActionTarget.GetUtility());
439 m_Targets.InsertAt(pActionTarget, index);
440 //Print("StoreTarget; object: " + pActionTarget.GetObject() + " | parent: " + pActionTarget.GetParent() + " | idx: " + index);
441 }
ref array< ref ActionTarget > m_Targets
selected & sorted targets by utility function
Определения ActionTargets.c:777
int FindIndexForStoring(float value)
binary search algorithm
Определения ActionTargets.c:444

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

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