mirror of
https://github.com/osukey/osukey.git
synced 2025-07-03 01:09:57 +09:00
Split out judgement definition from judgement result
This commit is contained in:
@ -182,8 +182,8 @@ namespace osu.Game.Rulesets.UI
|
||||
public abstract class RulesetContainer<TObject> : RulesetContainer
|
||||
where TObject : HitObject
|
||||
{
|
||||
public event Action<Judgement> OnJudgement;
|
||||
public event Action<Judgement> OnJudgementRemoved;
|
||||
public event Action<JudgementResult> OnJudgement;
|
||||
public event Action<JudgementResult> OnJudgementRemoved;
|
||||
|
||||
/// <summary>
|
||||
/// The Beatmap
|
||||
@ -290,8 +290,8 @@ namespace osu.Game.Rulesets.UI
|
||||
if (drawableObject == null)
|
||||
continue;
|
||||
|
||||
drawableObject.OnJudgement += (d, j) => OnJudgement?.Invoke(j);
|
||||
drawableObject.OnJudgementRemoved += (d, j) => OnJudgementRemoved?.Invoke(j);
|
||||
drawableObject.OnJudgement += (_, r) => OnJudgement?.Invoke(r);
|
||||
drawableObject.OnJudgementRemoved += (_, r) => OnJudgementRemoved?.Invoke(r);
|
||||
|
||||
Playfield.Add(drawableObject);
|
||||
}
|
||||
|
Reference in New Issue
Block a user