mirror of
https://github.com/ppy/osu.git
synced 2024-12-05 10:33:22 +08:00
Add SetNewComboCommand
This commit is contained in:
parent
5518db962f
commit
8aa5385e3f
21
osu.Game/Screens/Edit/Commands/SetNewComboCommand.cs
Normal file
21
osu.Game/Screens/Edit/Commands/SetNewComboCommand.cs
Normal file
@ -0,0 +1,21 @@
|
||||
// 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.
|
||||
|
||||
using osu.Game.Rulesets.Objects.Types;
|
||||
|
||||
namespace osu.Game.Screens.Edit.Commands
|
||||
{
|
||||
public class SetNewComboCommand : PropertyChangeCommand<IHasComboInformation, bool>
|
||||
{
|
||||
public SetNewComboCommand(IHasComboInformation target, bool value)
|
||||
: base(target, value)
|
||||
{
|
||||
}
|
||||
|
||||
protected override bool ReadValue(IHasComboInformation target) => target.NewCombo;
|
||||
|
||||
protected override void WriteValue(IHasComboInformation target, bool value) => target.NewCombo = value;
|
||||
|
||||
protected override SetNewComboCommand CreateInstance(IHasComboInformation target, bool value) => new SetNewComboCommand(target, value);
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user