예제 #1
0
 void StopGame_Click(object sender, EventArgs e)
 {
     if (game.Running)
     {
         game.End();
     }
     UpdateButtons();
 }
예제 #2
0
 protected void HandleStop(Player p, RoundsGame game)
 {
     if (!game.Running)
     {
         p.Message("{0} is not running", game.GameName);
     }
     else
     {
         game.End();
         Chat.MessageGlobal(game.GameName + " has ended! We hope you had fun!");
     }
 }