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

◆ ProcessUpdateQueues()

static void ConstructionManagerStatic::ProcessUpdateQueues ( )
inlinestaticprotected

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

61 {
62 int batchCounter = UPDATE_QUEUE_BATCH_SIZE_DEFAULT;
63 int count;
64
65 foreach (ConstructionBase con, array<ConstructionPart> updatePartsArray : m_QueueConstructionMap)
66 {
67 if (batchCounter == 0)
68 break;
69
70 count = updatePartsArray.Count();
71 for (int i = count - 1; i > -1; --i)
72 {
73 if (batchCounter == 0)
74 break;
75
76 ConstructionPart part = updatePartsArray[i];
77 con.UpdateSpecificPartPhysics(part);
79 con.UpdateSpecificPartVisuals(part);
80
81 updatePartsArray.Remove(i);
82 --batchCounter;
83
84 if (updatePartsArray.Count() == 0)
85 {
86 m_CleanupQueue.Insert(con);
87 break;
88 }
89 }
90 }
91
92 foreach (ConstructionBase cleanupCon : m_CleanupQueue)
93 {
95 cleanupCon.UpdateNavmesh();
96 m_QueueConstructionMap.Remove(cleanupCon);
97 }
98
99 m_CleanupQueue.Clear();
100
101 if (m_QueueConstructionMap.Count() == 0 && m_UpdateQueue.Count(ProcessUpdateQueues) > 0)
102 {
105 }
106 }
void ConstructionBase(EntityAI parent)
Определения ConstructionBase.c:58
void ConstructionPart(string name, string part_name, string main_part_name, int id, bool is_built, bool is_base, bool is_gate, array< string > required_parts)
Определения ConstructionPart.c:531
static ref map< ConstructionBase, ref array< ConstructionPart > > m_QueueConstructionMap
Определения ConstructionManagerStatic.c:10
static void ProcessUpdateQueues()
Определения ConstructionManagerStatic.c:60
static bool m_IsServerBatchProcessing
Определения ConstructionManagerStatic.c:8
static const int UPDATE_QUEUE_BATCH_SIZE_DEFAULT
Определения ConstructionManagerStatic.c:5
static ScriptInvoker m_UpdateQueue
Определения ConstructionManagerStatic.c:9
static ref array< ConstructionBase > m_CleanupQueue
Определения ConstructionManagerStatic.c:11

Перекрестные ссылки ConstructionBase(), m_CleanupQueue, m_IsServerBatchProcessing, m_QueueConstructionMap, m_UpdateQueue, ProcessUpdateQueues() и UPDATE_QUEUE_BATCH_SIZE_DEFAULT.

Используется в AddPartToProcess() и ProcessUpdateQueues().