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

22 lines
402 B
C++

#pragma once
#include "CommandToggle.hpp"
namespace Stand
{
class CommandSpoofClanToggle : public CommandToggle
{
public:
explicit CommandSpoofClanToggle(CommandList* const parent)
: CommandToggle(parent, LOC("SPFCRW"), { CMDNAME("crew") })
{
}
void onChange(Click& click) final
{
g_hooking.spoof_clan_membership = m_on;
parent->as<CommandSpoofClan>()->updateData();
}
};
}