4 protected ref array<SCR_MapMarkerManagerComponent> m_Components = {};
7 override protected void OnUpdate(ESystemPoint point)
9 float timeSlice = GetWorld().GetTimeSlice();
11 foreach (SCR_MapMarkerManagerComponent comp: m_Components)
13 comp.Update(timeSlice);
18 override protected void OnDiag(
float timeSlice)
20 DbgUI.Begin(
"SCR_MapMarkerManagerSystem");
22 DbgUI.Text(
"Items: " + m_Components.Count());
24 if (DbgUI.Button(
"Dump active components"))
26 foreach (SCR_MapMarkerManagerComponent comp: m_Components)
28 Print(comp.GetOwner(), LogLevel.ERROR);
36 void Register(SCR_MapMarkerManagerComponent component)
39 if (component.GetOwner().IsDeleted() || (component.GetOwner().GetFlags() & EntityFlags.USER5))
42 if (m_Components.Find(component) != -1)
45 m_Components.Insert(component);
49 void Unregister(SCR_MapMarkerManagerComponent component)
51 int idx = m_Components.Find(component);
55 m_Components.Remove(idx);