1
0
mirror of https://github.com/ppy/osu.git synced 2024-09-22 05:27:23 +08:00
osu-lazer/osu.Game/Configuration/OsuConfigManager.cs

33 lines
853 B
C#
Raw Normal View History

2016-08-26 11:28:23 +08:00
//Copyright (c) 2007-2016 ppy Pty Ltd <contact@ppy.sh>.
2016-08-26 16:27:49 +08:00
//Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE
2016-08-26 11:28:23 +08:00
using osu.Framework.Configuration;
2016-08-31 18:49:34 +08:00
using osu.Game.Online.API;
2016-08-26 11:28:23 +08:00
namespace osu.Game.Configuration
{
class OsuConfigManager : ConfigManager<OsuConfig>
{
protected override void InitialiseDefaults()
{
2016-09-01 18:05:44 +08:00
Set(OsuConfig.Width, 1366, 640);
Set(OsuConfig.Height, 768, 480);
2016-08-26 11:28:23 +08:00
Set(OsuConfig.MouseSensitivity, 1.0);
2016-08-31 18:49:34 +08:00
Set(OsuConfig.Username, string.Empty);
Set(OsuConfig.Password, string.Empty);
Set(OsuConfig.Token, string.Empty);
2016-08-26 11:28:23 +08:00
}
}
enum OsuConfig
{
Width,
Height,
MouseSensitivity,
2016-08-31 18:49:34 +08:00
Username,
Password,
Token
2016-08-26 11:28:23 +08:00
}
}