3 protected ref array<SCR_CampaignMilitaryBaseComponent> m_Components = {};
6 override protected void OnUpdate(ESystemPoint point)
8 float timeSlice = GetWorld().GetFixedTimeSlice();
12 comp.Update(timeSlice);
17 override protected void OnDiag(
float timeSlice)
19 DbgUI.Begin(
"CampaignBasesSystem");
21 DbgUI.Text(
"Items: " + m_Components.Count());
23 if (DbgUI.Button(
"Dump active components"))
27 Print(comp.GetOwner(), LogLevel.ERROR);
39 if (component.GetOwner().IsDeleted() || (component.GetOwner().GetFlags() & EntityFlags.USER5))
42 if (m_Components.Find(component) != -1)
45 m_Components.Insert(component);
51 int idx = m_Components.Find(component);
55 m_Components.Remove(idx);