1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-12 20:22:55 +08:00

Merge pull request #13378 from Syriiin/diffcalc/refactor/auto-properties

Refactor DifficultyAttributes to use auto properties over public fields
This commit is contained in:
Dan Balasescu 2021-06-10 18:42:11 +09:00 committed by GitHub
commit 35d5632355
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 18 additions and 18 deletions

View File

@ -7,6 +7,6 @@ namespace osu.Game.Rulesets.Catch.Difficulty
{ {
public class CatchDifficultyAttributes : DifficultyAttributes public class CatchDifficultyAttributes : DifficultyAttributes
{ {
public double ApproachRate; public double ApproachRate { get; set; }
} }
} }

View File

@ -7,7 +7,7 @@ namespace osu.Game.Rulesets.Mania.Difficulty
{ {
public class ManiaDifficultyAttributes : DifficultyAttributes public class ManiaDifficultyAttributes : DifficultyAttributes
{ {
public double GreatHitWindow; public double GreatHitWindow { get; set; }
public double ScoreMultiplier; public double ScoreMultiplier { get; set; }
} }
} }

View File

@ -7,11 +7,11 @@ namespace osu.Game.Rulesets.Osu.Difficulty
{ {
public class OsuDifficultyAttributes : DifficultyAttributes public class OsuDifficultyAttributes : DifficultyAttributes
{ {
public double AimStrain; public double AimStrain { get; set; }
public double SpeedStrain; public double SpeedStrain { get; set; }
public double ApproachRate; public double ApproachRate { get; set; }
public double OverallDifficulty; public double OverallDifficulty { get; set; }
public int HitCircleCount; public int HitCircleCount { get; set; }
public int SpinnerCount; public int SpinnerCount { get; set; }
} }
} }

View File

@ -7,10 +7,10 @@ namespace osu.Game.Rulesets.Taiko.Difficulty
{ {
public class TaikoDifficultyAttributes : DifficultyAttributes public class TaikoDifficultyAttributes : DifficultyAttributes
{ {
public double StaminaStrain; public double StaminaStrain { get; set; }
public double RhythmStrain; public double RhythmStrain { get; set; }
public double ColourStrain; public double ColourStrain { get; set; }
public double ApproachRate; public double ApproachRate { get; set; }
public double GreatHitWindow; public double GreatHitWindow { get; set; }
} }
} }

View File

@ -8,11 +8,11 @@ namespace osu.Game.Rulesets.Difficulty
{ {
public class DifficultyAttributes public class DifficultyAttributes
{ {
public Mod[] Mods; public Mod[] Mods { get; set; }
public Skill[] Skills; public Skill[] Skills { get; set; }
public double StarRating; public double StarRating { get; set; }
public int MaxCombo; public int MaxCombo { get; set; }
public DifficultyAttributes() public DifficultyAttributes()
{ {