@@ -26,15 +26,15 @@ public SchemaParser(IVDFConvert vdfConvert, IMapper mapper)
2626
2727 #region Dota Main Item Schema
2828
29- public SchemaModel GetDotaSchema ( IEnumerable < string > vdf )
29+ public Schema GetDotaSchema ( IEnumerable < string > vdf )
3030 {
3131 ValidateInput ( vdf ) ;
3232
3333 var schemaContainer = vdfConvert . DeserializeObject < DotaSchemaContainer > ( vdf . ToList ( ) ) ;
34- return mapper . Map < DotaSchema , SchemaModel > ( schemaContainer . Schema ) ;
34+ return mapper . Map < DotaSchema , Schema > ( schemaContainer . Schema ) ;
3535 }
3636
37- public IReadOnlyCollection < ItemAbilitySchemaItemModel > GetDotaItemAbilities ( IEnumerable < string > vdf )
37+ public IReadOnlyCollection < ItemAbility > GetDotaItemAbilities ( IEnumerable < string > vdf )
3838 {
3939 ValidateInput ( vdf ) ;
4040
@@ -44,8 +44,8 @@ public IReadOnlyCollection<ItemAbilitySchemaItemModel> GetDotaItemAbilities(IEnu
4444 if ( schema . TryGetValue ( "DOTAAbilities" , out item ) )
4545 {
4646 var itemAbilities = JsonConvert . DeserializeObject < IList < DotaItemAbilitySchemaItem > > ( item . ToString ( ) , new SchemaItemToDotaItemAbilityJsonConverter ( ) ) ;
47- var itemAbilityModels = mapper . Map < IList < DotaItemAbilitySchemaItem > , IList < ItemAbilitySchemaItemModel > > ( itemAbilities ) ;
48- return new ReadOnlyCollection < ItemAbilitySchemaItemModel > ( itemAbilityModels ) ;
47+ var itemAbilityModels = mapper . Map < IList < DotaItemAbilitySchemaItem > , IList < ItemAbility > > ( itemAbilities ) ;
48+ return new ReadOnlyCollection < ItemAbility > ( itemAbilityModels ) ;
4949 }
5050 else
5151 {
@@ -75,7 +75,7 @@ public IReadOnlyDictionary<string, string> GetDotaPublicLocalizationKeys(IEnumer
7575
7676 #region Dota Heroes
7777
78- public IReadOnlyCollection < AbilitySchemaItemModel > GetDotaHeroAbilities ( IEnumerable < string > vdf )
78+ public IReadOnlyCollection < HeroAbility > GetDotaHeroAbilities ( IEnumerable < string > vdf )
7979 {
8080 ValidateInput ( vdf ) ;
8181
@@ -85,16 +85,16 @@ public IReadOnlyCollection<AbilitySchemaItemModel> GetDotaHeroAbilities(IEnumera
8585 if ( schema . TryGetValue ( "DOTAAbilities" , out item ) )
8686 {
8787 var abilities = JsonConvert . DeserializeObject < IList < DotaAbilitySchemaItem > > ( item . ToString ( ) , new SchemaItemToDotaAbilityJsonConverter ( ) ) ;
88- var abilityModels = mapper . Map < IList < DotaAbilitySchemaItem > , IList < AbilitySchemaItemModel > > ( abilities ) ;
89- return new ReadOnlyCollection < AbilitySchemaItemModel > ( abilityModels ) ;
88+ var abilityModels = mapper . Map < IList < DotaAbilitySchemaItem > , IList < HeroAbility > > ( abilities ) ;
89+ return new ReadOnlyCollection < HeroAbility > ( abilityModels ) ;
9090 }
9191 else
9292 {
9393 throw new ArgumentException ( "You supplied a VDF file, but it wasn't the expected Dota Heroes Abilities schema file." ) ;
9494 }
9595 }
9696
97- public IReadOnlyCollection < HeroSchemaModel > GetDotaHeroes ( IEnumerable < string > vdf )
97+ public IReadOnlyCollection < Hero > GetDotaHeroes ( IEnumerable < string > vdf )
9898 {
9999 ValidateInput ( vdf ) ;
100100
@@ -104,16 +104,16 @@ public IReadOnlyCollection<HeroSchemaModel> GetDotaHeroes(IEnumerable<string> vd
104104 if ( schema . TryGetValue ( "DOTAHeroes" , out item ) )
105105 {
106106 var heroes = JsonConvert . DeserializeObject < IList < DotaHeroSchemaItem > > ( item . ToString ( ) , new SchemaItemToDotaHeroJsonConverter ( ) ) ;
107- var heroModels = mapper . Map < IList < DotaHeroSchemaItem > , IList < HeroSchemaModel > > ( heroes ) ;
108- return new ReadOnlyCollection < HeroSchemaModel > ( heroModels ) ;
107+ var heroModels = mapper . Map < IList < DotaHeroSchemaItem > , IList < Hero > > ( heroes ) ;
108+ return new ReadOnlyCollection < Hero > ( heroModels ) ;
109109 }
110110 else
111111 {
112112 throw new ArgumentException ( "You supplied a VDF file, but it wasn't the expected Dota Heroes schema file." ) ;
113113 }
114114 }
115115
116- public ItemBuildSchemaItemModel GetDotaItemBuild ( IEnumerable < string > vdf )
116+ public ItemBuild GetDotaItemBuild ( IEnumerable < string > vdf )
117117 {
118118 ValidateInput ( vdf ) ;
119119
@@ -123,7 +123,7 @@ public ItemBuildSchemaItemModel GetDotaItemBuild(IEnumerable<string> vdf)
123123 if ( schema . TryGetValue ( "itembuilds" , out item ) )
124124 {
125125 var itemBuild = item . ToObject < DotaItemBuildSchemaItem > ( ) ;
126- var itemBuildModel = mapper . Map < DotaItemBuildSchemaItem , ItemBuildSchemaItemModel > ( itemBuild ) ;
126+ var itemBuildModel = mapper . Map < DotaItemBuildSchemaItem , ItemBuild > ( itemBuild ) ;
127127 return itemBuildModel ;
128128 }
129129 else
@@ -238,7 +238,7 @@ private IReadOnlyCollection<DotaLeague> FlattenDotaSchemaItemLeagues(IReadOnlyCo
238238
239239 #endregion
240240
241- public IReadOnlyCollection < SchemaPrefabModel > GetDotaItemPrefabs ( IEnumerable < string > vdf )
241+ public IReadOnlyCollection < SchemaPrefab > GetDotaItemPrefabs ( IEnumerable < string > vdf )
242242 {
243243 ValidateInput ( vdf ) ;
244244
@@ -253,9 +253,9 @@ public IReadOnlyCollection<SchemaPrefabModel> GetDotaItemPrefabs(IEnumerable<str
253253
254254 var prefabs = JsonConvert . DeserializeObject < IList < DotaSchemaPrefab > > ( item . ToString ( ) , new DotaSchemaPrefabJsonConverter ( ) ) ;
255255
256- var prefabModels = mapper . Map < IList < DotaSchemaPrefab > , IList < SchemaPrefabModel > > ( prefabs ) ;
256+ var prefabModels = mapper . Map < IList < DotaSchemaPrefab > , IList < SchemaPrefab > > ( prefabs ) ;
257257
258- return new ReadOnlyCollection < SchemaPrefabModel > ( prefabModels ) ;
258+ return new ReadOnlyCollection < SchemaPrefab > ( prefabModels ) ;
259259 }
260260 else
261261 {
0 commit comments