Ejemplo n.º 1
0
        public void sendIf(string data, ShouldSend condition)
        {
            List <TAClient> targets = new List <TAClient>();

            foreach (var c in clients)
            {
                if (condition(c))
                {
                    targets.Add(c);
                }
            }
            sendMessage(data, targets.ToArray());
        }
Ejemplo n.º 2
0
 public TAAction(TAActor relevantActor)
 {
     this.sourceActor  = relevantActor;
     rcvBroadcastCheck = delegate(TAClient c) { return(true); };
 }