Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Provide dummy performance calculator #308

Merged
merged 2 commits into from
Mar 10, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions osu.Game.Rulesets.Sentakki/SentakkiPerformanceCalculator.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
using osu.Game.Rulesets.Difficulty;
using osu.Game.Scoring;

namespace osu.Game.Rulesets.Sentakki
{
public class SentakkiPerformanceCalculator : PerformanceCalculator
{
public SentakkiPerformanceCalculator(SentakkiRuleset ruleset, DifficultyAttributes attributes, ScoreInfo score)
: base(ruleset, attributes, score)
{
}

// TODO: Create an actual performance calculator
public override PerformanceAttributes Calculate() => new PerformanceAttributes { Total = 0 };
}
}
3 changes: 3 additions & 0 deletions osu.Game.Rulesets.Sentakki/SentakkiRuleset.cs
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,9 @@ public override DifficultyCalculator CreateDifficultyCalculator(IWorkingBeatmap

public override IConvertibleReplayFrame CreateConvertibleReplayFrame() => new SentakkiReplayFrame();

public override PerformanceCalculator CreatePerformanceCalculator(DifficultyAttributes attributes, ScoreInfo score) =>
new SentakkiPerformanceCalculator(this, attributes, score);

public override IEnumerable<Mod> GetModsFor(ModType type)
{
switch (type)
Expand Down