public void BroadcastMessage(FECgCoroutineSchedule schedule, ECgCoroutineMessage msgType, string msg, object owner = null) { int count = RoutinesRunning[schedule].Count; for (int i = 0; i < count; ++i) { FCgRoutine r = RoutinesRunning[schedule][i]; if (owner != null && owner != r.Owner.Get()) { continue; } r.ReceiveMessage(msgType, msg); } }
public void ReceiveMessage(ECgCoroutineMessage msgType, string msg) { Messages_Recieved[msgType].Add(msg); }
public void AddMessage(ECgCoroutineMessage msgType, string msg) { StopMessages.Add(msg); }