Skip to content

Commit 158b401

Browse files
author
Justin
committed
Reorganizing Dota 2 models
1 parent b7723f9 commit 158b401

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

66 files changed

+118
-92
lines changed

src/Steam.Models/DOTA2/HeroAbilityDetailModel.cs renamed to src/Steam.Models/DOTA2/Cleaned/HeroAbilityDetail.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@
44

55
namespace Steam.Models.DOTA2
66
{
7-
public class HeroAbilityDetailModel
7+
public class HeroAbilityDetail
88
{
99
public uint Id { get; set; }
1010
public string Name { get; set; }
1111
public string AvatarImagePath { get; set; }
1212
public string Description { get; set; }
13-
public IReadOnlyCollection<HeroAbilitySpecialDetailModel> Attributes { get; set; }
13+
public IReadOnlyCollection<HeroAbilitySpecialDetail> AbilitySpecials { get; set; }
1414
public string Behaviors { get; set; }
1515
public string TeamTargets { get; set; }
1616
public string TargetTypes { get; set; }
@@ -35,7 +35,7 @@ public bool HasLinkedSpecialBonus
3535
{
3636
get
3737
{
38-
return Attributes.Any(x => !String.IsNullOrWhiteSpace(x.LinkedSpecialBonus));
38+
return AbilitySpecials.Any(x => !String.IsNullOrWhiteSpace(x.LinkedSpecialBonus));
3939
}
4040
}
4141
}

src/Steam.Models/DOTA2/HeroAbilitySpecialDetailModel.cs renamed to src/Steam.Models/DOTA2/Cleaned/HeroAbilitySpecialDetail.cs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,13 @@
11
namespace Steam.Models.DOTA2
22
{
3-
public class HeroAbilitySpecialDetailModel
3+
public class HeroAbilitySpecialDetail
44
{
55
public string Name { get; set; }
6+
67
public string Value { get; set; }
8+
79
public string RawName { get; set; }
10+
811
public string LinkedSpecialBonus { get; set; }
912
}
1013
}

src/Steam.Models/DOTA2/HeroDetailModel.cs renamed to src/Steam.Models/DOTA2/Cleaned/HeroDetail.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
namespace Steam.Models.DOTA2
55
{
6-
public class HeroDetailModel
6+
public class HeroDetail
77
{
88
private const int baseHealth = 150;
99
private const int healthPerStrength = 19;
@@ -38,7 +38,7 @@ public class HeroDetailModel
3838
public bool IsEnabled { get; set; }
3939

4040
public IReadOnlyCollection<HeroRoleModel> Roles { get; set; }
41-
public IReadOnlyCollection<HeroAbilityDetailModel> Abilities { get; set; }
41+
public IReadOnlyCollection<HeroAbilityDetail> Abilities { get; set; }
4242

4343
public double GetBaseHealth()
4444
{
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,15 @@
11
namespace Steam.Models.DOTA2
22
{
3-
public class RarityModel
3+
public class Rarity
44
{
55
public string Name { get; set; }
6+
67
public uint Id { get; set; }
8+
79
public uint Order { get; set; }
10+
811
public string Color { get; set; }
12+
913
public string LocalizedName { get; set; }
1014
}
1115
}
File renamed without changes.
File renamed without changes.
File renamed without changes.

src/Steam.Models/DOTA2/DotaHeroAbilityBehaviorType.cs renamed to src/Steam.Models/DOTA2/Enums/DotaHeroAbilityBehaviorType.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ public sealed class DotaHeroAbilityBehaviorType : DotaEnumType
3030
public static readonly DotaHeroAbilityBehaviorType DONT_CANCEL_MOVEMENT = new DotaHeroAbilityBehaviorType("DOTA_ABILITY_BEHAVIOR_DONT_CANCEL_MOVEMENT", "Does Not Cancel Movement", "This ability does not stop hero movement.");
3131
public static readonly DotaHeroAbilityBehaviorType OPTIONAL_UNIT_TARGET = new DotaHeroAbilityBehaviorType("DOTA_ABILITY_BEHAVIOR_OPTIONAL_UNIT_TARGET", "Optional Unit Target", "Unknown.");
3232
public static readonly DotaHeroAbilityBehaviorType SUPPRESS_ASSOCIATED_CONSUMABLE = new DotaHeroAbilityBehaviorType("DOTA_ABILITY_BEHAVIOR_SUPPRESS_ASSOCIATED_CONSUMABLE", "Suppress Associated Consumable", "Unknown.");
33+
public static readonly DotaHeroAbilityBehaviorType SHOW_IN_GUIDES = new DotaHeroAbilityBehaviorType("DOTA_ABILITY_BEHAVIOR_SHOW_IN_GUIDES", "Show in Guides", "Unknown.");
3334

3435
public DotaHeroAbilityBehaviorType(string key, string displayName, string description)
3536
: base(key, displayName, description)
File renamed without changes.

src/Steam.Models/DOTA2/DotaHeroPrimaryAttributeType.cs renamed to src/Steam.Models/DOTA2/Enums/DotaHeroPrimaryAttributeType.cs

File renamed without changes.

0 commit comments

Comments
 (0)