61 {
63 int count;
64
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
77 con.UpdateSpecificPartPhysics(part);
79 con.UpdateSpecificPartVisuals(part);
80
81 updatePartsArray.Remove(i);
82 --batchCounter;
83
84 if (updatePartsArray.Count() == 0)
85 {
87 break;
88 }
89 }
90 }
91
93 {
95 cleanupCon.UpdateNavmesh();
97 }
98
100
102 {
105 }
106 }
void ConstructionBase(EntityAI parent)
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)
static ref map< ConstructionBase, ref array< ConstructionPart > > m_QueueConstructionMap
static void ProcessUpdateQueues()
static bool m_IsServerBatchProcessing
static const int UPDATE_QUEUE_BATCH_SIZE_DEFAULT
static ScriptInvoker m_UpdateQueue
static ref array< ConstructionBase > m_CleanupQueue