File tree Expand file tree Collapse file tree 3 files changed +5
-5
lines changed
Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ public class DotaSchemaMapperProfile : Profile
88 {
99 public DotaSchemaMapperProfile ( )
1010 {
11- CreateMap < DotaHeroSchemaItem , Hero > ( ) ;
11+ CreateMap < DotaHeroSchemaItem , HeroSchema > ( ) ;
1212 CreateMap < DotaSchema , Schema > ( ) ;
1313 CreateMap < DotaSchemaGameInfo , SchemaGameInfo > ( ) ;
1414 CreateMap < DotaSchemaRarity , SchemaRarity > ( ) ;
Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ namespace SourceSchemaParser
66 public interface ISchemaParser
77 {
88 IReadOnlyCollection < HeroAbility > GetDotaHeroAbilities ( IEnumerable < string > vdf ) ;
9- IReadOnlyCollection < Hero > GetDotaHeroes ( IEnumerable < string > vdf ) ;
9+ IReadOnlyCollection < HeroSchema > GetDotaHeroes ( IEnumerable < string > vdf ) ;
1010 IReadOnlyCollection < ItemAbility > GetDotaItemAbilities ( IEnumerable < string > vdf ) ;
1111 ItemBuild GetDotaItemBuild ( IEnumerable < string > vdf ) ;
1212 IReadOnlyCollection < SchemaPrefab > GetDotaItemPrefabs ( IEnumerable < string > vdf ) ;
Original file line number Diff line number Diff line change @@ -94,7 +94,7 @@ public IReadOnlyCollection<HeroAbility> GetDotaHeroAbilities(IEnumerable<string>
9494 }
9595 }
9696
97- public IReadOnlyCollection < Hero > GetDotaHeroes ( IEnumerable < string > vdf )
97+ public IReadOnlyCollection < HeroSchema > GetDotaHeroes ( IEnumerable < string > vdf )
9898 {
9999 ValidateInput ( vdf ) ;
100100
@@ -104,8 +104,8 @@ public IReadOnlyCollection<Hero> GetDotaHeroes(IEnumerable<string> vdf)
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 < Hero > > ( heroes ) ;
108- return new ReadOnlyCollection < Hero > ( heroModels ) ;
107+ var heroModels = mapper . Map < IList < DotaHeroSchemaItem > , IList < HeroSchema > > ( heroes ) ;
108+ return new ReadOnlyCollection < HeroSchema > ( heroModels ) ;
109109 }
110110 else
111111 {
You can’t perform that action at this time.
0 commit comments