mirror of
https://github.com/ppy/osu.git
synced 2024-12-16 05:42:54 +08:00
33 lines
792 B
C#
33 lines
792 B
C#
// 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 System;
|
|
using osu.Game.Database;
|
|
using Realms;
|
|
|
|
#nullable enable
|
|
|
|
namespace osu.Game.Configuration
|
|
{
|
|
[MapTo(@"RulesetSetting")]
|
|
public class RealmRulesetSetting : RealmObject, IHasGuidPrimaryKey
|
|
{
|
|
[PrimaryKey]
|
|
public Guid ID { get; set; } = Guid.NewGuid();
|
|
|
|
[Indexed]
|
|
public int RulesetID { get; set; }
|
|
|
|
[Indexed]
|
|
public int Variant { get; set; }
|
|
|
|
[Required]
|
|
public string Key { get; set; } = string.Empty;
|
|
|
|
[Required]
|
|
public string Value { get; set; } = string.Empty;
|
|
|
|
public override string ToString() => $"{Key} => {Value}";
|
|
}
|
|
}
|