Stand/Stand/CommandScriptHost.cpp

21 lines
409 B
C++
Raw Permalink Normal View History

2024-10-16 11:20:42 +08:00
#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();
}
}
}