3 protected ref array<SCR_BaseDeployableSpawnPointComponent> m_aComponents = {};
6 override protected void OnUpdate(ESystemPoint point)
8 float timeSlice = GetWorld().GetFixedTimeSlice();
10 foreach (SCR_BaseDeployableSpawnPointComponent comp: m_aComponents)
12 comp.Update(timeSlice);
16 override void OnDiag(
float timeSlice)
18 DbgUI.Begin(
"SCR_DeployableSpawnPointSystem");
20 DbgUI.Text(
"Comps: " + m_aComponents.Count());
22 if (DbgUI.Button(
"Dump active components"))
24 foreach (SCR_BaseDeployableSpawnPointComponent comp: m_aComponents)
26 Print(comp.GetOwner(), LogLevel.ERROR);
33 void Register(SCR_BaseDeployableSpawnPointComponent component)
36 if (component.GetOwner().IsDeleted() || (component.GetOwner().GetFlags() & EntityFlags.USER5))
39 if (m_aComponents.Contains(component))
42 m_aComponents.Insert(component);
45 void Unregister(SCR_BaseDeployableSpawnPointComponent component)
47 m_aComponents.RemoveItem(component);