Exemplo n.º 1
0
 public GameSession(TcpServer server, ChessGameManagerService gameManager) : base(server)
 {
     _gameManager = gameManager;
     _protocol    = new RemoteInstructionProtocol(gameManager.SharedGameState);
 }
 public GameConsoleService(ChessGameManagerService gameManager)
 {
     _gameManager = gameManager;
 }
Exemplo n.º 3
0
 public GameServer(IPAddress address, int port, ChessGameManagerService gameManager) : base(address, port)
 {
     _gameManager = gameManager;
 }
Exemplo n.º 4
0
 public GameServerService(ChessGameManagerService gameManager, IOptions <GameServerServiceOptions> options, ILogger <GameServerService> logger)
 {
     _logger     = logger;
     _gameServer = new GameServer(IPAddress.Any, options.Value.Port, gameManager);
     _logger.LogInformation($"Started on port {options.Value.Port}");
 }