Setup context, write usage, wrapper classes

This commit is contained in:
Dean Herbert
2021-01-07 14:07:36 +09:00
parent dce9937e9b
commit 9cfede2e7e
6 changed files with 383 additions and 0 deletions

View File

@ -146,6 +146,8 @@ namespace osu.Game
private DatabaseContextFactory contextFactory;
private RealmContextFactory realmFactory;
protected override UserInputManager CreateUserInputManager() => new OsuUserInputManager();
[BackgroundDependencyLoader]
@ -167,6 +169,8 @@ namespace osu.Game
dependencies.Cache(contextFactory = new DatabaseContextFactory(Storage));
dependencies.Cache(realmFactory = new RealmContextFactory(Storage, Scheduler));
dependencies.CacheAs(Storage);
var largeStore = new LargeTextureStore(Host.CreateTextureLoaderStore(new NamespacedResourceStore<byte[]>(Resources, @"Textures")));