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

28 lines
509 B
C++

#pragma once
#include "CommandToggle.hpp"
#include "Hooking.hpp"
namespace Stand
{
class CommandGracefulLanding : public CommandToggle
{
public:
explicit CommandGracefulLanding(CommandList* const parent)
: CommandToggle(parent, LOC("GRCELND"), { CMDNAME("gracefullanding"), CMDNAME("gracefulanding"), CMDNAME("graceland") })
{
}
void onEnable(Click& click) final
{
++g_hooking.graceful_landing;
}
void onDisable(Click& click) final
{
--g_hooking.graceful_landing;
}
};
}