예제 #1
0
 void StartGame_Click(object sender, EventArgs e)
 {
     if (!game.Running)
     {
         game.Start(Player.Console, "", int.MaxValue);
     }
     UpdateButtons();
 }
예제 #2
0
        protected virtual void HandleStart(Player p, RoundsGame game, string[] args)
        {
            if (game.Running)
            {
                p.Message("{0} is already running", game.GameName); return;
            }

            string map = args.Length > 1 ? args[1] : "";

            game.Start(p, map, int.MaxValue);
        }