Move gameplay configuration to interface to allow editor overriding

This commit is contained in:
Dean Herbert
2022-11-08 18:24:57 +09:00
parent 75bf023f14
commit dd4cd3cf8e
4 changed files with 34 additions and 6 deletions

View File

@ -0,0 +1,23 @@
// 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.Allocation;
using osu.Framework.Bindables;
namespace osu.Game.Configuration
{
/// <summary>
/// A settings provider which generally sources from <see cref="OsuConfigManager"/> (global user settings)
/// but can allow overriding settings by caching more locally. For instance, in the editor.
/// </summary>
/// <remarks>
/// More settings can be moved into this interface as required.
/// </remarks>
[Cached]
public interface IGameplaySettings
{
IBindable<float> ComboColourNormalisationAmount { get; }
IBindable<float> PositionalHitsoundsLevel { get; }
}
}