Skip to content

Commit d60a23e

Browse files
author
Justin
committed
Update gitignore. Update to use dependency injection. Cleanup parser class.
1 parent f4f616c commit d60a23e

File tree

10 files changed

+562
-318
lines changed

10 files changed

+562
-318
lines changed

.gitignore

Lines changed: 357 additions & 76 deletions
Large diffs are not rendered by default.

src/SourceSchemaParser/AutoMapperConfiguration.cs

Lines changed: 0 additions & 67 deletions
This file was deleted.
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
using AutoMapper;
2+
using SourceSchemaParser.DOTA2;
3+
using Steam.Models.DOTA2;
4+
5+
namespace SourceSchemaParser
6+
{
7+
public class DotaSchemaMapperProfile : Profile
8+
{
9+
public DotaSchemaMapperProfile()
10+
{
11+
CreateMap<DotaHeroSchemaItem, HeroSchemaModel>();
12+
CreateMap<DotaSchema, Steam.Models.DOTA2.SchemaModel>();
13+
CreateMap<DotaSchemaGameInfo, SchemaGameInfoModel>();
14+
CreateMap<DotaSchemaRarity, SchemaRarityModel>();
15+
CreateMap<DotaSchemaColor, SchemaColorModel>();
16+
CreateMap<DotaSchemaItem, Steam.Models.DOTA2.SchemaItemModel>();
17+
CreateMap<DotaSchemaPrefab, SchemaPrefabModel>();
18+
CreateMap<DotaSchemaItemSet, Steam.Models.DOTA2.SchemaItemSetModel>();
19+
CreateMap<DotaSchemaPrefab, SchemaPrefabModel>();
20+
CreateMap<DotaSchemaItemAutograph, SchemaItemAutographModel>();
21+
CreateMap<DotaSchemaQuality, SchemaQualityModel>();
22+
CreateMap<DotaSchemaPrefabCapability, SchemaPrefabCapabilityModel>();
23+
CreateMap<DotaSchemaItemTool, SchemaItemToolModel>();
24+
CreateMap<DotaSchemaItemToolUsage, SchemaItemToolUsageModel>();
25+
CreateMap<DotaSchemaItemPriceInfo, SchemaItemPriceInfoModel>();
26+
CreateMap<DotaItemAbilitySchemaItem, ItemAbilitySchemaItemModel>();
27+
CreateMap<DotaAbilitySpecialSchemaItem, AbilitySpecialSchemaItemModel>();
28+
CreateMap<DotaAbilitySchemaItem, AbilitySchemaItemModel>();
29+
CreateMap<DotaItemBuildSchemaItem, ItemBuildSchemaItemModel>();
30+
CreateMap<DotaItemBuildGroupSchemaItem, ItemBuildGroupSchemaItemModel>();
31+
CreateMap<DotaLeague, LeagueModel>();
32+
}
33+
}
34+
}
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
using System.Collections.Generic;
2+
using Steam.Models.DOTA2;
3+
4+
namespace SourceSchemaParser
5+
{
6+
public interface ISchemaParser
7+
{
8+
IReadOnlyCollection<AbilitySchemaItemModel> GetDotaHeroAbilities(IEnumerable<string> vdf);
9+
IReadOnlyCollection<HeroSchemaModel> GetDotaHeroes(IEnumerable<string> vdf);
10+
IReadOnlyCollection<ItemAbilitySchemaItemModel> GetDotaItemAbilities(IEnumerable<string> vdf);
11+
ItemBuildSchemaItemModel GetDotaItemBuild(IEnumerable<string> vdf);
12+
IReadOnlyCollection<SchemaPrefabModel> GetDotaItemPrefabs(IEnumerable<string> vdf);
13+
IReadOnlyCollection<LeagueModel> GetDotaLeaguesFromFile(string itemSchemaFilePath, string localizationFilePath);
14+
IReadOnlyCollection<LeagueModel> GetDotaLeaguesFromText(IEnumerable<string> itemSchemaVdfText, IEnumerable<string> localizationVdfText);
15+
IReadOnlyDictionary<string, string> GetDotaPanoramaLocalizationKeys(IEnumerable<string> vdf);
16+
IReadOnlyDictionary<string, string> GetDotaPublicLocalizationKeys(IEnumerable<string> vdf);
17+
SchemaModel GetDotaSchema(IEnumerable<string> vdf);
18+
}
19+
}

src/SourceSchemaParser/Properties/AssemblyInfo.cs

Lines changed: 0 additions & 19 deletions
This file was deleted.

0 commit comments

Comments
 (0)