Skip to content

Commit 2482b0e

Browse files
author
Justin
committed
Wrong public type on last commit
1 parent a1cccdd commit 2482b0e

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

src/SourceSchemaParser/DotaSchemaMapperProfile.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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>();

src/SourceSchemaParser/ISchemaParser.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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);

src/SourceSchemaParser/SchemaParser.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff 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
{

0 commit comments

Comments
 (0)