freeso/TSOClient/FSO.IDE/EditorComponent/Commands/ToggleBreakpointCommand.cs
riperiperi b57ebbd141 Cleanup: Remove most unused usings and MPL per-file licenses
MPL per-file was used in older project files, but should apply to the whole project, so having it there was redundant.
2023-11-25 03:45:29 +00:00

29 lines
761 B
C#

using FSO.Files.Formats.IFF.Chunks;
using FSO.IDE.EditorComponent.UI;
namespace FSO.IDE.EditorComponent.Commands
{
public class ToggleBreakpointCommand : BHAVCommand
{
public PrimitiveBox InstUI;
public ToggleBreakpointCommand(PrimitiveBox instUI)
{
InstUI = instUI;
}
public override void Execute(BHAV bhav, UIBHAVEditor editor)
{
InstUI.Instruction.Breakpoint = !InstUI.Instruction.Breakpoint;
FSO.SimAntics.VM.BHAVChanged(bhav);
}
public override void Undo(BHAV bhav, UIBHAVEditor editor)
{
InstUI.Instruction.Breakpoint = !InstUI.Instruction.Breakpoint;
FSO.SimAntics.VM.BHAVChanged(bhav);
}
}
}