mirror of
https://github.com/ppy/osu
synced 2024-12-23 23:33:36 +00:00
Introduce SessionStatics
This commit is contained in:
parent
9fe7675be8
commit
e3e245ab20
21
osu.Game/Configuration/SessionStatics.cs
Normal file
21
osu.Game/Configuration/SessionStatics.cs
Normal 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
|
||||
{
|
||||
}
|
||||
}
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user