Stand/Stand/CommandGrace.hpp
2024-10-16 11:20:42 +08:00

28 lines
455 B
C++

#pragma once
#include "CommandToggle.hpp"
#include "Gui.hpp"
namespace Stand
{
class CommandGrace : public CommandToggle
{
public:
explicit CommandGrace(CommandList* const parent)
: CommandToggle(parent, LOC("NRGDL"), { CMDNAME("grace"), CMDNAME("gracefulness"), CMDNAME("noragdoll") }, LOC("NRGDL_H"))
{
}
void onEnable(Click& click) final
{
++g_gui.grace;
}
void onDisable(Click& click) final
{
--g_gui.grace;
}
};
}