コード例 #1
0
ファイル: Game.cs プロジェクト: LeafyCoding/IRCBot.UNO
 public static void StartGame(string sendernick, string channel)
 {
     if (isRunning)
     {
         Tools.SemiColoredWrite(ConsoleColor.Red, "[UNO] ", "Game requested but already running.");
         Program.client.SendMessage(Messages.ALREADY_STARTED(isStartedBy), channel);
     }
     else
     {
         isRunning   = true;
         isStartedBy = sendernick;
         // TODO Get MySQL ready for a game.
         Tools.SemiColoredWrite(ConsoleColor.Green, "[UNO] ", $"Game started by {sendernick}.");
         Program.client.SendMessage(Messages.GAME_STARTED(sendernick), channel);
         StartGame();
     }
 }