Add and consume IKeyBindingStore interface

This commit is contained in:
Dean Herbert
2021-01-07 16:38:49 +09:00
parent a9a3a95991
commit 43f417b53a
9 changed files with 80 additions and 26 deletions

View File

@ -73,7 +73,7 @@ namespace osu.Game
protected FileStore FileStore;
protected RealmKeyBindingStore KeyBindingStore;
protected IKeyBindingStore KeyBindingStore;
protected SettingsStore SettingsStore;
@ -268,7 +268,7 @@ namespace osu.Game
// todo: migrate to realm
// dependencies.Cache(KeyBindingStore = new KeyBindingStore(contextFactory, RulesetStore));
dependencies.Cache(KeyBindingStore = new RealmKeyBindingStore(realmFactory, RulesetStore));
dependencies.CacheAs(KeyBindingStore = new RealmKeyBindingStore(realmFactory, RulesetStore));
dependencies.Cache(SettingsStore = new SettingsStore(contextFactory));
dependencies.Cache(RulesetConfigCache = new RulesetConfigCache(SettingsStore));
dependencies.Cache(new SessionStatics());