Add database-based configuration for rulesets

This commit is contained in:
Dean Herbert
2018-01-24 17:35:37 +09:00
parent b197cd56af
commit 5a00ae36d1
17 changed files with 624 additions and 28 deletions

View File

@ -16,7 +16,7 @@ using System.Linq;
using osu.Framework.Configuration;
using osu.Framework.Graphics.Cursor;
using osu.Framework.Input;
using osu.Framework.Platform;
using osu.Game.Configuration;
using osu.Game.Overlays;
using osu.Game.Rulesets.Configuration;
using osu.Game.Rulesets.Replays;
@ -89,11 +89,11 @@ namespace osu.Game.Rulesets.UI
}
[BackgroundDependencyLoader(true)]
private void load(Storage storage, OnScreenDisplay onScreenDisplay)
private void load(OnScreenDisplay onScreenDisplay, SettingsStore settings)
{
this.onScreenDisplay = onScreenDisplay;
rulesetConfig = CreateConfig(Ruleset, storage);
rulesetConfig = CreateConfig(Ruleset, settings);
if (rulesetConfig != null)
{
@ -135,7 +135,7 @@ namespace osu.Game.Rulesets.UI
/// </summary>
protected virtual CursorContainer CreateCursor() => null;
protected virtual IRulesetConfigManager CreateConfig(Ruleset ruleset, Storage storage) => null;
protected virtual IRulesetConfigManager CreateConfig(Ruleset ruleset, SettingsStore settings) => null;
/// <summary>
/// Creates a Playfield.