1
0
mirror of https://github.com/ppy/osu.git synced 2026-05-28 06:09:55 +08:00

Move local classes to their rightful location

This commit is contained in:
Dean Herbert
2023-06-13 02:12:23 +09:00
Unverified
parent e0ebb000d6
commit 385f6dbd84
2 changed files with 23 additions and 22 deletions
-22
View File
@@ -1192,26 +1192,4 @@ namespace osu.Game.Database
}
}
}
internal class FakeHit : HitObject
{
private readonly Judgement judgement;
public override Judgement CreateJudgement() => judgement;
public FakeHit(Judgement judgement)
{
this.judgement = judgement;
}
}
internal class FakeJudgement : Judgement
{
public override HitResult MaxResult { get; }
public FakeJudgement(HitResult result)
{
MaxResult = result;
}
}
}
@@ -5,6 +5,7 @@ using System.Collections.Generic;
using System.Linq;
using osu.Game.Beatmaps;
using osu.Game.Rulesets.Judgements;
using osu.Game.Rulesets.Objects;
using osu.Game.Rulesets.Scoring;
using osu.Game.Scoring;
@@ -149,5 +150,27 @@ namespace osu.Game.Database
return (long)(1000000 * (accuracyPortion * accuracyScore + (1 - accuracyPortion) * comboScore) + bonusScore);
}
private class FakeHit : HitObject
{
private readonly Judgement judgement;
public override Judgement CreateJudgement() => judgement;
public FakeHit(Judgement judgement)
{
this.judgement = judgement;
}
}
private class FakeJudgement : Judgement
{
public override HitResult MaxResult { get; }
public FakeJudgement(HitResult result)
{
MaxResult = result;
}
}
}
}