예제 #1
0
 public GameEndBroadcast(GameOutcomeType outcome, ServerClient winner = null)
 {
     Outcome = outcome;
     if (winner != null)
     {
         Winner = winner.Identifier;
     }
 }
예제 #2
0
 public GameOutcome(GameOutcomeType outcome, PlayerColour? winner)
 {
     Outcome = outcome;
     Winner = winner;
 }
예제 #3
0
 public void OnGameEnd(ServerGame game, GameOutcomeType outcome, ServerClient winner = null)
 {
     ActiveGames.Remove(game);
     game.EndGame(new GameEndBroadcast(outcome, winner));
 }
예제 #4
0
 public void OnGameEnd(ServerGame game, GameOutcomeType outcome, ServerClient winner = null)
 {
     ActiveGames.Remove(game);
     game.EndGame(new GameEndBroadcast(outcome, winner));
 }