Stand/Stand/CommandScriptHost.cpp
2024-10-16 11:20:42 +08:00

21 lines
409 B
C++

#include "CommandScriptHost.hpp"
#include "AbstractPlayer.hpp"
#include "ScriptHostUtil.hpp"
namespace Stand
{
CommandScriptHost::CommandScriptHost(CommandList* const parent)
: CommandAction(parent, LOC("BESCRHST"), CMDNAMES_OBF("scripthost"))
{
}
void CommandScriptHost::onClick(Click& click)
{
if (click.inOnline() && ScriptHostUtil::canSafelyTakeIt())
{
ScriptHostUtil::takeIt();
}
}
}