public ShipsHub(IHubContext <ShipsHub> hubContext, IGameHelper gameHelper, IRoomService roomService, IShipsService shipsService) { _hubContext = hubContext; _gameHelper = gameHelper; _shipsService = shipsService; _roomService = roomService; }
public GameServer(IShipsService shipsService, IGameMiddleware gameMiddleware, IGameHelper gameHelper) { this.shipsService = shipsService; this.gameMiddleware = gameMiddleware; this.gameHelper = gameHelper; Thread thread = new Thread(StartServer); thread.Start(); }
public ShipsController(IShipsService shipsService) { this._shipsService = shipsService; }