Retrieve KeyBindingContainer via DI rather than traversal lookup

This commit is contained in:
Dean Herbert
2022-01-31 16:47:20 +09:00
parent cc7fb0e559
commit 0e764538e0
3 changed files with 14 additions and 9 deletions

View File

@ -24,6 +24,8 @@ namespace osu.Game.Rulesets.UI
public abstract class RulesetInputManager<T> : PassThroughInputManager, ICanAttachKeyCounter, IHasReplayHandler, IHasRecordingHandler
where T : struct
{
public readonly KeyBindingContainer<T> KeyBindingContainer;
private ReplayRecorder recorder;
public ReplayRecorder Recorder
@ -43,8 +45,6 @@ namespace osu.Game.Rulesets.UI
protected override InputState CreateInitialState() => new RulesetInputManagerInputState<T>(base.CreateInitialState());
public readonly KeyBindingContainer<T> KeyBindingContainer;
protected override Container<Drawable> Content => content;
private readonly Container content;