public GameController( ApplicationDbContext context, ICharacterItemsRepo characterItemsRepo, IItemRepo itemsRepo, IRarityRepo rarityRepo, IDbContextHelper contextHelper, ICharacterHelper characterHelper, IWebHostEnvironment hostEnv) { _context = context; _characterItemsRepo = characterItemsRepo; _itemsRepo = itemsRepo; _rarityRepo = rarityRepo; _contextHelper = contextHelper; _characterHelper = characterHelper; _hostingEnv = hostEnv; }
public FightGenerator(IAdvanceStats playerStats, IAdvanceStats opponentStats, Monster monster, IEnumerable <Item> items, IRarityRepo rarityRepo) { rand = new Random(); Raport = new RaportGenerator { Rounds = new List <Round>(), Reward = new Reward() }; Monster = monster; Items = items; _rarityRepo = rarityRepo; _playerStats = playerStats; _opponentStats = opponentStats; }