1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-28 03:22:54 +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>. // Copyright (c) 2007-2017 ppy Pty Ltd <contact@ppy.sh>.
// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE // Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE
using osu.Game.Overlays;
namespace osu.Desktop.Tests.Visual namespace osu.Desktop.Tests.Visual
{ {
public class TestCaseKeyConfiguration : OsuTestCase public class TestCaseKeyConfiguration : OsuTestCase

View File

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

View File

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