mirror of
https://github.com/osukey/osukey.git
synced 2025-07-01 16:29:58 +09:00
GetInputHandler -> CreateInputHandler.
This commit is contained in:
@ -46,7 +46,7 @@ namespace osu.Game.Modes
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public override ReplayInputHandler GetInputHandler() => new LegacyReplayInputHandler(Frames);
|
public override ReplayInputHandler CreateInputHandler() => new LegacyReplayInputHandler(Frames);
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// The ReplayHandler will take a replay and handle the propagation of updates to the input stack.
|
/// The ReplayHandler will take a replay and handle the propagation of updates to the input stack.
|
||||||
|
@ -157,7 +157,7 @@ namespace osu.Game.Modes.Mods
|
|||||||
|
|
||||||
public void Apply(HitRenderer<T> hitRenderer)
|
public void Apply(HitRenderer<T> hitRenderer)
|
||||||
{
|
{
|
||||||
hitRenderer.InputManager.ReplayInputHandler = CreateReplayScore(hitRenderer.Beatmap)?.Replay?.GetInputHandler();
|
hitRenderer.InputManager.ReplayInputHandler = CreateReplayScore(hitRenderer.Beatmap)?.Replay?.CreateInputHandler();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -7,6 +7,6 @@ namespace osu.Game.Modes
|
|||||||
{
|
{
|
||||||
public abstract class Replay
|
public abstract class Replay
|
||||||
{
|
{
|
||||||
public virtual ReplayInputHandler GetInputHandler() => null;
|
public virtual ReplayInputHandler CreateInputHandler() => null;
|
||||||
}
|
}
|
||||||
}
|
}
|
@ -126,7 +126,7 @@ namespace osu.Game
|
|||||||
|
|
||||||
Beatmap.Value = BeatmapDatabase.GetWorkingBeatmap(s.Beatmap);
|
Beatmap.Value = BeatmapDatabase.GetWorkingBeatmap(s.Beatmap);
|
||||||
|
|
||||||
menu.Push(new PlayerLoader(new Player { ReplayInputHandler = s.Replay.GetInputHandler() }));
|
menu.Push(new PlayerLoader(new Player { ReplayInputHandler = s.Replay.CreateInputHandler() }));
|
||||||
}
|
}
|
||||||
|
|
||||||
protected override void LoadComplete()
|
protected override void LoadComplete()
|
||||||
|
Reference in New Issue
Block a user