public GameEndBroadcast(GameOutcomeType outcome, ServerClient winner = null) { Outcome = outcome; if (winner != null) { Winner = winner.Identifier; } }
public GameOutcome(GameOutcomeType outcome, PlayerColour? winner) { Outcome = outcome; Winner = winner; }
public void OnGameEnd(ServerGame game, GameOutcomeType outcome, ServerClient winner = null) { ActiveGames.Remove(game); game.EndGame(new GameEndBroadcast(outcome, winner)); }