Example #1
0
        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);
            }
        }
Example #2
0
 public void ReceiveMessage(ECgCoroutineMessage msgType, string msg)
 {
     Messages_Recieved[msgType].Add(msg);
 }
Example #3
0
 public void AddMessage(ECgCoroutineMessage msgType, string msg)
 {
     StopMessages.Add(msg);
 }