All pastes #587397 Raw Edit

Stuff

public text v1 · immutable
#587397 ·published 2007-06-24 15:28 UTC
rendered paste body
        private void ClientThread()
        {
            Chief.Game game = new Chief.Game();

            game.Attach(this.SelectedProcess);
            AppendText("Attached" + Environment.NewLine);

            System.Threading.Thread.Sleep(250);

            Thread thread = new Thread(new ThreadStart(GameEnterThread));
            thread.Start();
            this.Threads.Add(thread);

            ChiefBot bot = new ChiefBot();
            bot.Initiate(game);

            game.GameEnter += new StateChange(bot.GameEnter);
            game.GameExit += new StateChange(bot.GameExit);
        }