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

◆ ProcessBatch()

bool BunkerBroadcastHandler::ProcessBatch ( )
inlineprotected

returns 'true' when all the batches are finished

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

465 {
466 int count = m_RegisteredBunkers.Count();
467 int target = (int)Math.Clamp(m_NextToProcessIdx + UPDATE_BATCH_SIZE, 0, count);
468
469 TIntArray indices = m_RegisteredBunkers.GetKeyArray();
470
472 {
473 if (m_RegisteredBunkers.Contains(indices[m_NextToProcessIdx]))
474 {
477 component.OnUpdate(m_UpdateTimer);
478 }
479 }
480
481 bool returnValue = target == count;
482 if (returnValue)
484
485 return returnValue;
486 }
ActionOverrideData int
void BunkerBroadcastComponentBase(notnull EntityAI parent)
Определения BunkerBroadcastComponent.c:171
class BoxCollidingParams component
ComponentInfo for BoxCollidingResult.
ref map< int, ref BunkerBroadcastComponentBase > m_RegisteredBunkers
how often is update called [seconds]
Определения BunkerBroadcastHandler.c:100
const int UPDATE_BATCH_SIZE
how many of previously generated codes are stored (prevents the reuse)
Определения BunkerBroadcastHandler.c:97
array< int > TIntArray
Определения EnScript.c:733

Перекрестные ссылки Math::Clamp(), component, int, m_NextToProcessIdx, m_RegisteredBunkers, m_UpdateTimer и UPDATE_BATCH_SIZE.

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