-
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
47 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
20 changes: 20 additions & 0 deletions
20
osu.Game.Rulesets.Touhosu/Difficulty/TouhosuPerformanceAttributes.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
using System.Collections.Generic; | ||
using Newtonsoft.Json; | ||
using osu.Game.Rulesets.Difficulty; | ||
|
||
namespace osu.Game.Rulesets.Touhosu.Difficulty | ||
{ | ||
public class TouhosuPerformanceAttributes : PerformanceAttributes | ||
{ | ||
[JsonProperty("accuracy")] | ||
public double Accuracy { get; set; } | ||
|
||
public override IEnumerable<PerformanceDisplayAttribute> GetAttributesForDisplay() | ||
{ | ||
foreach (var attribute in base.GetAttributesForDisplay()) | ||
yield return attribute; | ||
|
||
yield return new PerformanceDisplayAttribute(nameof(Accuracy), "Accuracy", Accuracy); | ||
} | ||
} | ||
} |
21 changes: 21 additions & 0 deletions
21
osu.Game.Rulesets.Touhosu/Difficulty/TouhosuPerformanceCalculator.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
using osu.Game.Rulesets.Difficulty; | ||
using osu.Game.Scoring; | ||
|
||
namespace osu.Game.Rulesets.Touhosu.Difficulty | ||
{ | ||
public class TouhosuPerformanceCalculator : PerformanceCalculator | ||
{ | ||
public TouhosuPerformanceCalculator(Ruleset ruleset, DifficultyAttributes attributes, ScoreInfo score) | ||
: base(ruleset, attributes, score) | ||
{ | ||
} | ||
public override PerformanceAttributes Calculate() | ||
{ | ||
double accuracyValue = 0.0; | ||
return new TouhosuPerformanceAttributes | ||
{ | ||
Accuracy = accuracyValue | ||
}; | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters