public NinthPlanetServer( GameInfo gameInfo, GameLobby gameLobby, GameRound gameRound, IGameRoundFactory gameRoundFactory, ILogger <NinthPlanetServer> logger) : this(gameInfo, gameLobby, gameRoundFactory, logger) { this.currentRound = gameRound; }
public NinthPlanetServer( GameInfo gameInfo, GameLobby playerLobby, IGameRoundFactory gameRoundFactory, ILogger <NinthPlanetServer> logger) { this.GameInfo = gameInfo ?? throw new ArgumentNullException(nameof(gameInfo)); this.playerLobby = playerLobby ?? throw new ArgumentNullException(nameof(playerLobby)); this.gameRoundFactory = gameRoundFactory ?? throw new ArgumentNullException(nameof(gameRoundFactory)); this.logger = logger ?? NullLogger <NinthPlanetServer> .Instance; }
public GameServerFactory(IGameRoundFactory gameRoundFactory, ILoggerFactory loggerFactory) { this.gameRoundFactory = gameRoundFactory ?? throw new ArgumentNullException(nameof(gameRoundFactory)); this.loggerFactory = loggerFactory ?? NullLoggerFactory.Instance; }
public GameServerFactory(IGameRoundFactory gameRoundFactory) : this(gameRoundFactory, null) { }