2021-08-21 17:21:45 +00: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.
|
|
|
|
|
|
|
|
using Realms;
|
|
|
|
|
|
|
|
namespace osu.Game.Configuration
|
|
|
|
{
|
2021-09-15 07:55:42 +00:00
|
|
|
[MapTo(@"RulesetSetting")]
|
2021-11-22 09:07:28 +00:00
|
|
|
public class RealmRulesetSetting : RealmObject
|
2021-08-21 17:21:45 +00:00
|
|
|
{
|
2021-09-15 08:01:31 +00:00
|
|
|
[Indexed]
|
2021-11-22 09:07:28 +00:00
|
|
|
public string RulesetName { get; set; } = string.Empty;
|
2021-08-21 17:21:45 +00:00
|
|
|
|
2021-09-15 08:09:02 +00:00
|
|
|
[Indexed]
|
|
|
|
public int Variant { get; set; }
|
2021-08-21 17:21:45 +00:00
|
|
|
|
2021-09-15 08:12:00 +00:00
|
|
|
[Required]
|
2021-09-15 08:09:02 +00:00
|
|
|
public string Key { get; set; } = string.Empty;
|
2021-08-21 17:21:45 +00:00
|
|
|
|
2021-09-15 08:12:00 +00:00
|
|
|
[Required]
|
|
|
|
public string Value { get; set; } = string.Empty;
|
2021-08-21 17:21:45 +00:00
|
|
|
|
2021-09-15 08:12:00 +00:00
|
|
|
public override string ToString() => $"{Key} => {Value}";
|
2021-08-21 17:21:45 +00:00
|
|
|
}
|
|
|
|
}
|