mirror of
https://github.com/osukey/osukey.git
synced 2025-08-04 15:16:38 +09:00
move osu! settings into its ruleset
This commit is contained in:
30
osu.Game.Rulesets.Osu/Configuration/OsuConfigManager.cs
Normal file
30
osu.Game.Rulesets.Osu/Configuration/OsuConfigManager.cs
Normal file
@ -0,0 +1,30 @@
|
||||
// Copyright (c) 2007-2019 ppy Pty Ltd <contact@ppy.sh>.
|
||||
// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE
|
||||
|
||||
using osu.Game.Configuration;
|
||||
using osu.Game.Rulesets.Configuration;
|
||||
|
||||
namespace osu.Game.Rulesets.Osu.Configuration
|
||||
{
|
||||
public class OsuConfigManager : RulesetConfigManager<OsuSetting>
|
||||
{
|
||||
public OsuConfigManager(SettingsStore settings, RulesetInfo ruleset, int? variant = null)
|
||||
: base(settings, ruleset, variant)
|
||||
{
|
||||
}
|
||||
|
||||
protected override void InitialiseDefaults()
|
||||
{
|
||||
base.InitialiseDefaults();
|
||||
|
||||
Set(OsuSetting.SnakingInSliders, true);
|
||||
Set(OsuSetting.SnakingOutSliders, true);
|
||||
}
|
||||
}
|
||||
|
||||
public enum OsuSetting
|
||||
{
|
||||
SnakingInSliders,
|
||||
SnakingOutSliders
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user