Пример #1
0
        public async Task <List <Area> > GetAreas(AreaQuery query)
        {
            var content = await RepositoryParser.ParseRepository <List <Area> >(filePaths.Areas);

            var queryedItems = FilterAreas(content, query);

            return(queryedItems);
        }
Пример #2
0
        public async Task <List <Game> > GetGames(GameQuery query)
        {
            var content = await RepositoryParser.ParseRepository <List <Game> >(filePaths.Games);

            var queryedItems = FilterGames(content, query);

            return(queryedItems);
        }
Пример #3
0
        public async Task <List <Character> > GetCharacters(CharacterQuery query)
        {
            var contents = await RepositoryParser.ParseRepository <List <Character> >(filePaths.Characters);

            var queryedItems = FilterCharacters(contents, query);

            return(queryedItems);
        }
Пример #4
0
        public async Task <List <Transformation> > GetTransformations(TransformationQuery query)
        {
            var content = await RepositoryParser.ParseRepository <List <Transformation> >(filePaths.Transformations);

            var queryedItems = FilterTransformations(content, query);

            return(queryedItems);
        }
        public async Task <List <Ability> > GetAbilities(AbilityQuery query)
        {
            var content = await RepositoryParser.ParseRepository <List <Ability> >(filePaths.Abilities);

            var queryedItems = FilterAbilites(content, query);

            return(queryedItems);
        }
Пример #6
0
        public async Task <List <Level> > GetLevels(LevelQuery query)
        {
            var content = await RepositoryParser.ParseRepository <List <Level> >(filePaths.Levels);

            var queryedItems = FilterLevels(content, query);

            return(queryedItems);
        }
        public async Task<List<Enemy>> GetEnemies(EnemyQuery query)
        {
            var content = await RepositoryParser.ParseRepository<List<Enemy>>(filePaths.Enemies);

            var queryedItems = FilterEnemies(content, query);

            return queryedItems;
        }
Пример #8
0
        public async Task <List <Collectable> > GetCollectables(CollectableQuery query)
        {
            var content = await RepositoryParser.ParseRepository <List <Collectable> >(filePaths.Collectables);

            var queryedItems = FilterCollectables(content, query);

            return(content);
        }