Skip to content

Commit 84e82ef

Browse files
committed
Add XMLDocs to difficulty attribute properties
1 parent 74a0e00 commit 84e82ef

File tree

5 files changed

+75
-1
lines changed

5 files changed

+75
-1
lines changed

osu.Game.Rulesets.Catch/Difficulty/CatchDifficultyAttributes.cs

+6
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,12 @@ namespace osu.Game.Rulesets.Catch.Difficulty
99
{
1010
public class CatchDifficultyAttributes : DifficultyAttributes
1111
{
12+
/// <summary>
13+
/// The perceived approach rate inclusive of rate-adjusting mods (DT/HT/etc).
14+
/// </summary>
15+
/// <remarks>
16+
/// Rate-adjusting mods don't directly affect the approach rate difficulty value, but have a perceived effect as a result of adjusting audio timing.
17+
/// </remarks>
1218
[JsonProperty("approach_rate")]
1319
public double ApproachRate { get; set; }
1420

osu.Game.Rulesets.Mania/Difficulty/ManiaDifficultyAttributes.cs

+9
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,18 @@ namespace osu.Game.Rulesets.Mania.Difficulty
99
{
1010
public class ManiaDifficultyAttributes : DifficultyAttributes
1111
{
12+
/// <summary>
13+
/// The perceived hit window for a GREAT hit inclusive of rate-adjusting mods (DT/HT/etc).
14+
/// </summary>
15+
/// <remarks>
16+
/// Rate-adjusting mods don't directly affect the hit window, but have a perceived effect as a result of adjusting audio timing.
17+
/// </remarks>
1218
[JsonProperty("great_hit_window")]
1319
public double GreatHitWindow { get; set; }
1420

21+
/// <summary>
22+
/// The score multiplier applied via score-reducing mods.
23+
/// </summary>
1524
[JsonProperty("score_multiplier")]
1625
public double ScoreMultiplier { get; set; }
1726

osu.Game.Rulesets.Osu/Difficulty/OsuDifficultyAttributes.cs

+38
Original file line numberDiff line numberDiff line change
@@ -12,30 +12,68 @@ namespace osu.Game.Rulesets.Osu.Difficulty
1212
{
1313
public class OsuDifficultyAttributes : DifficultyAttributes
1414
{
15+
/// <summary>
16+
/// The difficulty corresponding to the aim skill.
17+
/// </summary>
1518
[JsonProperty("aim_difficulty")]
1619
public double AimDifficulty { get; set; }
1720

21+
/// <summary>
22+
/// The difficulty corresponding to the speed skill.
23+
/// </summary>
1824
[JsonProperty("speed_difficulty")]
1925
public double SpeedDifficulty { get; set; }
2026

27+
/// <summary>
28+
/// The difficulty corresponding to the flashlight skill.
29+
/// </summary>
2130
[JsonProperty("flashlight_difficulty")]
2231
public double FlashlightDifficulty { get; set; }
2332

33+
/// <summary>
34+
/// Describes how much of <see cref="AimDifficulty"/> is contributed to by hitcircles or sliders.
35+
/// A value closer to 1.0 indicates most of <see cref="AimDifficulty"/> is contributed by hitcircles.
36+
/// A value closer to 0.0 indicates most of <see cref="AimDifficulty"/> is contributed by sliders.
37+
/// </summary>
2438
[JsonProperty("slider_factor")]
2539
public double SliderFactor { get; set; }
2640

41+
/// <summary>
42+
/// The perceived approach rate inclusive of rate-adjusting mods (DT/HT/etc).
43+
/// </summary>
44+
/// <remarks>
45+
/// Rate-adjusting mods don't directly affect the approach rate difficulty value, but have a perceived effect as a result of adjusting audio timing.
46+
/// </remarks>
2747
[JsonProperty("approach_rate")]
2848
public double ApproachRate { get; set; }
2949

50+
/// <summary>
51+
/// The perceived overall difficulty inclusive of rate-adjusting mods (DT/HT/etc).
52+
/// </summary>
53+
/// <remarks>
54+
/// Rate-adjusting mods don't directly affect the overall difficulty value, but have a perceived effect as a result of adjusting audio timing.
55+
/// </remarks>
3056
[JsonProperty("overall_difficulty")]
3157
public double OverallDifficulty { get; set; }
3258

59+
/// <summary>
60+
/// The beatmap's drain rate. This doesn't scale with rate-adjusting mods.
61+
/// </summary>
3362
public double DrainRate { get; set; }
3463

64+
/// <summary>
65+
/// The number of hitcircles in the beatmap.
66+
/// </summary>
3567
public int HitCircleCount { get; set; }
3668

69+
/// <summary>
70+
/// The number of sliders in the beatmap.
71+
/// </summary>
3772
public int SliderCount { get; set; }
3873

74+
/// <summary>
75+
/// The number of spinners in the beatmap.
76+
/// </summary>
3977
public int SpinnerCount { get; set; }
4078

4179
public override IEnumerable<(int attributeId, object value)> ToDatabaseAttributes()

osu.Game.Rulesets.Taiko/Difficulty/TaikoDifficultyAttributes.cs

+21
Original file line numberDiff line numberDiff line change
@@ -9,18 +9,39 @@ namespace osu.Game.Rulesets.Taiko.Difficulty
99
{
1010
public class TaikoDifficultyAttributes : DifficultyAttributes
1111
{
12+
/// <summary>
13+
/// The difficulty corresponding to the stamina skill.
14+
/// </summary>
1215
[JsonProperty("stamina_difficulty")]
1316
public double StaminaDifficulty { get; set; }
1417

18+
/// <summary>
19+
/// The difficulty corresponding to the rhythm skill.
20+
/// </summary>
1521
[JsonProperty("rhythm_difficulty")]
1622
public double RhythmDifficulty { get; set; }
1723

24+
/// <summary>
25+
/// The difficulty corresponding to the colour skill.
26+
/// </summary>
1827
[JsonProperty("colour_difficulty")]
1928
public double ColourDifficulty { get; set; }
2029

30+
/// <summary>
31+
/// The perceived approach rate inclusive of rate-adjusting mods (DT/HT/etc).
32+
/// </summary>
33+
/// <remarks>
34+
/// Rate-adjusting mods don't directly affect the approach rate difficulty value, but have a perceived effect as a result of adjusting audio timing.
35+
/// </remarks>
2136
[JsonProperty("approach_rate")]
2237
public double ApproachRate { get; set; }
2338

39+
/// <summary>
40+
/// The perceived hit window for a GREAT hit inclusive of rate-adjusting mods (DT/HT/etc).
41+
/// </summary>
42+
/// <remarks>
43+
/// Rate-adjusting mods don't directly affect the hit window, but have a perceived effect as a result of adjusting audio timing.
44+
/// </remarks>
2445
[JsonProperty("great_hit_window")]
2546
public double GreatHitWindow { get; set; }
2647

osu.Game/Rulesets/Difficulty/DifficultyAttributes.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ public class DifficultyAttributes
3131
public Mod[] Mods { get; set; }
3232

3333
/// <summary>
34-
/// The combined star rating of all skill.
34+
/// The combined star rating of all skills.
3535
/// </summary>
3636
[JsonProperty("star_rating", Order = -3)]
3737
public double StarRating { get; set; }

0 commit comments

Comments
 (0)