Esempio n. 1
0
 public ShipsHub(IHubContext <ShipsHub> hubContext,
                 IGameHelper gameHelper,
                 IRoomService roomService,
                 IShipsService shipsService)
 {
     _hubContext   = hubContext;
     _gameHelper   = gameHelper;
     _shipsService = shipsService;
     _roomService  = roomService;
 }
Esempio n. 2
0
        public GameServer(IShipsService shipsService,
                          IGameMiddleware gameMiddleware,
                          IGameHelper gameHelper)
        {
            this.shipsService = shipsService;

            this.gameMiddleware = gameMiddleware;

            this.gameHelper = gameHelper;

            Thread thread = new Thread(StartServer);

            thread.Start();
        }
Esempio n. 3
0
 public ShipsController(IShipsService shipsService)
 {
     this._shipsService = shipsService;
 }