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

◆ StoreTarget()

void ActionTargets::StoreTarget ( ActionTarget pActionTarget)
inlineprivate

inserts action into sorted array based on utility

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

378 {
379 int index = FindIndexForStoring(pActionTarget.GetUtility());
380 m_Targets.InsertAt(pActionTarget, index);
381 //Print("StoreTarget; object: " + pActionTarget.GetObject() + " | parent: " + pActionTarget.GetParent() + " | idx: " + index);
382 }
ref array< ref ActionTarget > m_Targets
selected & sorted targets by utility function
Определения ActionTargets.c:714
int FindIndexForStoring(float value)
binary search algorithm
Определения ActionTargets.c:385

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