Make DrawableHitObject/ScoreProcessor support rewinding

This commit is contained in:
smoogipoo
2017-11-02 21:21:07 +09:00
parent 6883b3742f
commit fe00ac7e41
8 changed files with 107 additions and 43 deletions

View File

@ -104,6 +104,7 @@ namespace osu.Game.Rulesets.UI
where TObject : HitObject
{
public event Action<Judgement> OnJudgement;
public event Action<Judgement> OnJudgementRemoved;
/// <summary>
/// The Beatmap
@ -241,6 +242,8 @@ namespace osu.Game.Rulesets.UI
OnJudgement?.Invoke(j);
};
drawableObject.OnJudgementRemoved += (d, j) => { OnJudgementRemoved?.Invoke(j); };
Playfield.Add(drawableObject);
}