Introduce SessionStatics

This commit is contained in:
iiSaLMaN 2019-09-23 08:15:27 +03:00
parent 9fe7675be8
commit e3e245ab20
2 changed files with 22 additions and 0 deletions

View File

@ -0,0 +1,21 @@
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
using osu.Framework.Configuration;
namespace osu.Game.Configuration
{
public class SessionStatics : ConfigManager<Statics>
{
// This is an in-memory store.
protected override void PerformLoad()
{
}
protected override bool PerformSave() => true;
}
public enum Statics
{
}
}

View File

@ -189,6 +189,7 @@ namespace osu.Game
dependencies.Cache(KeyBindingStore = new KeyBindingStore(contextFactory, RulesetStore));
dependencies.Cache(SettingsStore = new SettingsStore(contextFactory));
dependencies.Cache(RulesetConfigCache = new RulesetConfigCache(SettingsStore));
dependencies.Cache(new SessionStatics());
dependencies.Cache(new OsuColour());
fileImporters.Add(BeatmapManager);