2019-01-24 16:43:03 +08:00
|
|
|
|
// 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.
|
2018-04-13 17:19:50 +08:00
|
|
|
|
|
2017-03-03 12:17:24 +08:00
|
|
|
|
using osu.Framework.Configuration;
|
2017-02-27 22:09:26 +08:00
|
|
|
|
using osu.Framework.Platform;
|
2018-04-13 17:19:50 +08:00
|
|
|
|
|
2018-08-25 20:40:40 +08:00
|
|
|
|
namespace osu.Game.Tournament.Screens.Drawings.Components
|
2017-02-27 22:09:26 +08:00
|
|
|
|
{
|
2018-01-24 16:35:37 +08:00
|
|
|
|
public class DrawingsConfigManager : IniConfigManager<DrawingsConfig>
|
2017-02-27 22:09:26 +08:00
|
|
|
|
{
|
2017-03-09 12:50:33 +08:00
|
|
|
|
protected override string Filename => @"drawings.ini";
|
2018-04-13 17:19:50 +08:00
|
|
|
|
|
2017-02-27 22:09:26 +08:00
|
|
|
|
protected override void InitialiseDefaults()
|
|
|
|
|
{
|
2021-03-17 15:10:16 +08:00
|
|
|
|
SetDefault(DrawingsConfig.Groups, 8, 1, 8);
|
|
|
|
|
SetDefault(DrawingsConfig.TeamsPerGroup, 8, 1, 8);
|
2017-02-27 22:09:26 +08:00
|
|
|
|
}
|
2018-04-13 17:19:50 +08:00
|
|
|
|
|
2017-02-27 22:09:26 +08:00
|
|
|
|
public DrawingsConfigManager(Storage storage)
|
|
|
|
|
: base(storage)
|
|
|
|
|
{
|
|
|
|
|
}
|
|
|
|
|
}
|
2018-04-13 17:19:50 +08:00
|
|
|
|
|
2017-02-27 22:09:26 +08:00
|
|
|
|
public enum DrawingsConfig
|
|
|
|
|
{
|
|
|
|
|
Groups,
|
|
|
|
|
TeamsPerGroup
|
|
|
|
|
}
|
|
|
|
|
}
|