示例#1
0
 public void OnKeepAlive()
 {
     foreach (string msg in Chatlist)
     {
         client.SendChatMessage(msg);
     }
 }
示例#2
0
 public void OnGameJoin()
 {
     Console.WriteLine("[Player] " + playername + " Join the game");
     alivetime  = DateTime.Now;
     chatthread = new Thread(new ThreadStart(() =>
     {
         while (Tcp != null && Tcp.Connected)
         {
             for (int l = 0; l < Chatlist.Count; l++)
             {
                 Thread.Sleep(2000);
                 client.SendChatMessage(Chatlist[l].ToString());
             }
         }
     }));
     chatthread.IsBackground = true;
     chatthread.Start();
 }
示例#3
0
 public void OnGameJoin()
 {
     ConsoleIO.AddMsgSeq(playername + " Join the game", "Player");
     if (Setting.sendsetting)
     {
         client.SendClientSettings("en_US", 9, 0, 0, false, 65, 0);
     }
     alivetime = DateTime.Now;
     chatMsg   = new Thread(new ThreadStart(() =>
     {
         while (Tcp != null && Tcp.Connected)
         {
             for (int l = 0; l < Chatlist.Count; l++)
             {
                 Thread.Sleep(2000);
                 client.SendChatMessage(Chatlist[l].ToString());
             }
         }
     }));
     chatMsg.IsBackground = true;
     chatMsg.Start();
 }