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

20 lines
406 B
C++

#include "CommandToggle.hpp"
#include "WeaponMgr.hpp"
namespace Stand
{
class CommandNoSpooling : public CommandToggle
{
public:
explicit CommandNoSpooling(CommandList* const parent)
: CommandToggle(parent, LOC("NOSPOL"), { CMDNAME("nospooling") }, LOC("NOSPOL_H"))
{
}
void onChange(Click& click) final
{
WeaponMgr::weapon_spool_delay_multiplier = this->m_on ? 0.0f : 1.0f;
}
};
}