1
0
mirror of https://github.com/ppy/osu.git synced 2024-09-22 01:27:29 +08:00

Use IntAction instead of new

This commit is contained in:
Dean Herbert 2017-08-16 17:27:09 +09:00
parent dc82a88bb8
commit 54698f2d8f
3 changed files with 6 additions and 4 deletions

View File

@ -1,6 +1,8 @@
// Copyright (c) 2007-2017 ppy Pty Ltd <contact@ppy.sh>.
// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE
using osu.Game.Overlays;
namespace osu.Desktop.Tests.Visual
{
public class TestCaseKeyConfiguration : OsuTestCase

View File

@ -29,10 +29,10 @@ namespace osu.Game.Input.Bindings
[Indexed]
[Column("Action")]
public new int Action
public int IntAction
{
get { return (int)base.Action; }
set { base.Action = value; }
get { return (int)Action; }
set { Action = value; }
}
}
}

View File

@ -74,7 +74,7 @@ namespace osu.Game.Input
Connection.Insert(new DatabasedKeyBinding
{
KeyCombination = insertable.KeyCombination,
Action = (int)insertable.Action,
Action = insertable.Action,
RulesetID = rulesetId,
Variant = variant
});