mirror of
https://github.com/ppy/osu.git
synced 2025-01-13 09:23:06 +08:00
CreateJudgementResult -> CreateResult
This commit is contained in:
parent
754f3c8621
commit
ab642b563f
@ -68,6 +68,6 @@ namespace osu.Game.Rulesets.Osu.Objects.Drawables
|
||||
private OsuInputManager osuActionInputManager;
|
||||
internal OsuInputManager OsuActionInputManager => osuActionInputManager ?? (osuActionInputManager = GetContainingInputManager() as OsuInputManager);
|
||||
|
||||
protected override JudgementResult CreateJudgementResult(Judgement judgement) => new OsuJudgementResult(judgement);
|
||||
protected override JudgementResult CreateResult(Judgement judgement) => new OsuJudgementResult(judgement);
|
||||
}
|
||||
}
|
||||
|
@ -87,6 +87,6 @@ namespace osu.Game.Rulesets.Osu.Scoring
|
||||
}
|
||||
}
|
||||
|
||||
protected override JudgementResult CreateJudgementResult(Judgement judgement) => new OsuJudgementResult(judgement);
|
||||
protected override JudgementResult CreateResult(Judgement judgement) => new OsuJudgementResult(judgement);
|
||||
}
|
||||
}
|
||||
|
@ -95,10 +95,10 @@ namespace osu.Game.Rulesets.Objects.Drawables
|
||||
{
|
||||
if (HitObject.Judgement != null)
|
||||
{
|
||||
Result = CreateJudgementResult(HitObject.Judgement);
|
||||
Result = CreateResult(HitObject.Judgement);
|
||||
|
||||
if (Result == null)
|
||||
throw new InvalidOperationException($"{GetType().ReadableName()} must provide a {nameof(JudgementResult)} through {nameof(CreateJudgementResult)}.");
|
||||
throw new InvalidOperationException($"{GetType().ReadableName()} must provide a {nameof(JudgementResult)} through {nameof(CreateResult)}.");
|
||||
}
|
||||
|
||||
var samples = GetSamples().ToArray();
|
||||
@ -257,7 +257,7 @@ namespace osu.Game.Rulesets.Objects.Drawables
|
||||
/// Creates the <see cref="JudgementResult"/> that represents the scoring result for this <see cref="DrawableHitObject"/>.
|
||||
/// </summary>
|
||||
/// <param name="judgement">The <see cref="Judgement"/> that provides the scoring information.</param>
|
||||
protected virtual JudgementResult CreateJudgementResult(Judgement judgement) => new JudgementResult(judgement);
|
||||
protected virtual JudgementResult CreateResult(Judgement judgement) => new JudgementResult(judgement);
|
||||
}
|
||||
|
||||
public abstract class DrawableHitObject<TObject> : DrawableHitObject
|
||||
|
@ -236,7 +236,7 @@ namespace osu.Game.Rulesets.Scoring
|
||||
if (obj.Judgement == null)
|
||||
return;
|
||||
|
||||
var result = CreateJudgementResult(obj.Judgement);
|
||||
var result = CreateResult(obj.Judgement);
|
||||
result.Type = obj.Judgement.MaxResult;
|
||||
|
||||
applyResult(result);
|
||||
@ -367,7 +367,7 @@ namespace osu.Game.Rulesets.Scoring
|
||||
/// Creates the <see cref="JudgementResult"/> that represents the scoring result for a <see cref="HitObject"/>.
|
||||
/// </summary>
|
||||
/// <param name="judgement">The <see cref="Judgement"/> that provides the scoring information.</param>
|
||||
protected virtual JudgementResult CreateJudgementResult(Judgement judgement) => new JudgementResult(judgement);
|
||||
protected virtual JudgementResult CreateResult(Judgement judgement) => new JudgementResult(judgement);
|
||||
}
|
||||
|
||||
public enum ScoringMode
|
||||
|
Loading…
Reference in New Issue
Block a user