12 override private void RegisterDiags()
16 super.RegisterDiags();
23 super.OnRPC(player, rpc_type, ctx);
27 case ERPCs.DEV_DIAGMENU_SUBSCRIBE:
32 int currentMask = m_Subscribers.Get(player);
34 if (newMask != currentMask)
38 m_Subscribers.Remove(player);
42 m_Subscribers.Set(player, newMask);
52 static void SendDataToSubscribersServer(
Object target, ESubscriberSystems system,
int rpc_type,
Param data,
bool guaranteed =
true)
54 for (
int i = 0; i < m_Subscribers.Count(); ++i)
56 Man man = m_Subscribers.GetKey(i);
59 int subscribedSystems = m_Subscribers.Get(man);
60 if (system & subscribedSystems)
62 GetGame().RPCSingleParam( target, rpc_type, data, guaranteed, man.GetIdentity() );
67 m_Subscribers.RemoveElement(i);