2019-01-24 08:43:03 +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.
|
2018-04-13 09:19:50 +00:00
|
|
|
|
|
|
|
using System.ComponentModel.DataAnnotations.Schema;
|
|
|
|
using osu.Framework.Input.Bindings;
|
|
|
|
using osu.Game.Database;
|
|
|
|
|
|
|
|
namespace osu.Game.Input.Bindings
|
|
|
|
{
|
|
|
|
[Table("KeyBinding")]
|
|
|
|
public class DatabasedKeyBinding : KeyBinding, IHasPrimaryKey
|
|
|
|
{
|
|
|
|
public int ID { get; set; }
|
|
|
|
|
|
|
|
public int? RulesetID { get; set; }
|
|
|
|
|
|
|
|
public int? Variant { get; set; }
|
|
|
|
|
|
|
|
[Column("Keys")]
|
|
|
|
public string KeysString
|
|
|
|
{
|
2019-02-28 04:58:19 +00:00
|
|
|
get => KeyCombination.ToString();
|
|
|
|
private set => KeyCombination = value;
|
2018-04-13 09:19:50 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
[Column("Action")]
|
|
|
|
public int IntAction
|
|
|
|
{
|
2019-02-28 04:58:19 +00:00
|
|
|
get => (int)Action;
|
|
|
|
set => Action = value;
|
2018-04-13 09:19:50 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|