mirror of
https://github.com/ppy/osu.git
synced 2024-11-11 15:07:44 +08:00
Remove unnecesssary local conversion method
This commit is contained in:
parent
86daf65630
commit
a1cb6d8c54
@ -32,16 +32,5 @@ namespace osu.Game.Input.Bindings
|
|||||||
public int Action { get; set; }
|
public int Action { get; set; }
|
||||||
|
|
||||||
public string KeyCombination { get; set; }
|
public string KeyCombination { get; set; }
|
||||||
|
|
||||||
[Ignored]
|
|
||||||
public KeyBinding KeyBinding
|
|
||||||
{
|
|
||||||
get => new KeyBinding(KeyCombination, Action);
|
|
||||||
set
|
|
||||||
{
|
|
||||||
KeyCombination = value.KeyCombination.ToString();
|
|
||||||
Action = (int)value.Action;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -68,11 +68,8 @@ namespace osu.Game.Input
|
|||||||
usage.Context.Add(new RealmKeyBinding
|
usage.Context.Add(new RealmKeyBinding
|
||||||
{
|
{
|
||||||
ID = Guid.NewGuid().ToString(),
|
ID = Guid.NewGuid().ToString(),
|
||||||
KeyBinding = new KeyBinding
|
KeyCombination = insertable.KeyCombination.ToString(),
|
||||||
{
|
Action = (int)insertable.Action,
|
||||||
KeyCombination = insertable.KeyCombination,
|
|
||||||
Action = insertable.Action,
|
|
||||||
},
|
|
||||||
RulesetID = rulesetId,
|
RulesetID = rulesetId,
|
||||||
Variant = variant
|
Variant = variant
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user