1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-05 10:33:22 +08:00

Add SetNewComboCommand

This commit is contained in:
Marvin Schürz 2024-10-10 23:10:51 +02:00
parent 5518db962f
commit 8aa5385e3f

View 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);
}
}