Esempio n. 1
0
        public void SendTimeLeft()
        {
            TimeLeft tl = dataOfThisGame.FormCommandOfTimeLeft();

            for (int i = 1; i < ClientCommand.nextID; i++)
            {
                if (clients.ContainsKey(i) && clients[i].CurrentStatus == status.on)
                {
                    clients[i].SendNewCommand(tl);
                    Thread.Sleep(100);
                }
            }
        }
Esempio n. 2
0
        public void SendTimeLeft()
        {
            TimeLeft tl = dataOfThisGame.FormCommandOfTimeLeft();

            for (int i = 1; i < ClientCommand.nextID; i++)
            {
                if (clients.ContainsKey(i) && clients[i].CurrentStatus == status.on)
                {
                    clients[i].SendNewCommand(tl);
                    //Console.WriteLine(i + " клиент уровень 1 - время");
                }
            }
        }