コード例 #1
0
        /// <summary>
        /// The main entry point for the application.
        /// </summary> 
        static void Main(string[] args)
        {
            using (RetardedGame game = new RetardedGame("127.0.0.1", 8001))
            {
            mForm = new MainForm(game);
            mForm.Show();

                game.Run();
            }
        }
コード例 #2
0
 static void MainFormThread()
 {
     while (true)
     {
         if (mForm.username != null && mForm.password != null)
         {
             using (RetardedGame game = new RetardedGame("127.0.0.1", 8001))
             {
                 game.Run();
             }
         }
         System.Threading.Thread.Sleep(1000);
     }
 }
コード例 #3
0
 public MainForm(RetardedGame game)
 {
     InitializeComponent();
     this.rGame = game;
 }