Пример #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));
 }