Example #1
0
 public NinthPlanetServer(
     GameInfo gameInfo,
     GameLobby gameLobby,
     GameRound gameRound,
     IGameRoundFactory gameRoundFactory,
     ILogger <NinthPlanetServer> logger)
     : this(gameInfo, gameLobby, gameRoundFactory, logger)
 {
     this.currentRound = gameRound;
 }
Example #2
0
 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)
 {
 }