Basic partial replay support.

This commit is contained in:
Dean Herbert
2017-02-28 20:14:48 +09:00
parent 327300e9a7
commit 58ae9e888d
19 changed files with 984 additions and 40 deletions

View File

@ -7,6 +7,7 @@ using System.Linq;
using osu.Framework.Allocation;
using osu.Framework.Graphics;
using osu.Framework.Graphics.Containers;
using osu.Framework.Input;
using osu.Game.Modes.Objects;
using osu.Game.Modes.Objects.Drawables;
using osu.Game.Beatmaps;
@ -19,6 +20,8 @@ namespace osu.Game.Modes.UI
public event Action OnAllJudged;
public InputManager InputManager;
protected void TriggerOnJudgement(JudgementInfo j)
{
OnJudgement?.Invoke(j);
@ -62,10 +65,10 @@ namespace osu.Game.Modes.UI
[BackgroundDependencyLoader]
private void load()
{
Children = new Drawable[]
{
Playfield = CreatePlayfield()
};
Playfield = CreatePlayfield();
Playfield.InputManager = InputManager;
Add(Playfield);
loadObjects();
}