mirror of
https://github.com/ppy/osu.git
synced 2024-11-11 16:27:26 +08:00
34 lines
923 B
C#
34 lines
923 B
C#
// Copyright (c) 2007-2017 ppy Pty Ltd <contact@ppy.sh>.
|
|
// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE
|
|
|
|
using System.ComponentModel.DataAnnotations.Schema;
|
|
using osu.Framework.Input.Bindings;
|
|
|
|
namespace osu.Game.Input.Bindings
|
|
{
|
|
[Table("KeyBinding")]
|
|
public class DatabasedKeyBinding : KeyBinding
|
|
{
|
|
[DatabaseGenerated(DatabaseGeneratedOption.Identity)]
|
|
public int ID { get; set; }
|
|
|
|
public int? RulesetID { get; set; }
|
|
|
|
public int? Variant { get; set; }
|
|
|
|
[Column("Keys")]
|
|
public string KeysString
|
|
{
|
|
get { return KeyCombination.ToString(); }
|
|
private set { KeyCombination = value; }
|
|
}
|
|
|
|
[Column("Action")]
|
|
public int IntAction
|
|
{
|
|
get { return (int)Action; }
|
|
set { Action = value; }
|
|
}
|
|
}
|
|
}
|