/* * SPDX-FileCopyrightText: 2018 Rerrah * SPDX-License-Identifier: MIT */ #pragma once #include #include #include "../abstract_command.hpp" #include "module.hpp" class EraseEffectInStepCommand final : public AbstractCommand { public: EraseEffectInStepCommand(std::weak_ptr mod, int songNum, int trackNum, int orderNum, int stepNum, int n); bool redo() override; bool undo() override; private: std::weak_ptr mod_; int song_, track_, order_, step_, n_; Step::PlainEffect prevEff_; };