mirror of
https://github.com/MaaAssistantArknights/MaaAssistantArknights.git
synced 2026-07-18 02:10:21 +08:00
chore: Auto update by pre-commit hooks [skip changelog]
This commit is contained in:
@@ -5,16 +5,21 @@
|
||||
#include "Assistant.h"
|
||||
#include "Utils/Logger.hpp"
|
||||
|
||||
asst::InstHelper::InstHelper(asst::Assistant* inst) : m_inst(inst) {}
|
||||
asst::InstHelper::InstHelper(asst::Assistant* inst) :
|
||||
m_inst(inst)
|
||||
{
|
||||
}
|
||||
|
||||
std::shared_ptr<asst::Controller> asst::InstHelper::ctrler() const
|
||||
{
|
||||
return m_inst ? m_inst->ctrler() : nullptr;
|
||||
}
|
||||
|
||||
std::shared_ptr<asst::Status> asst::InstHelper::status() const
|
||||
{
|
||||
return m_inst ? m_inst->status() : nullptr;
|
||||
}
|
||||
|
||||
bool asst::InstHelper::need_exit() const
|
||||
{
|
||||
return m_inst != nullptr && m_inst->need_exit();
|
||||
|
||||
Reference in New Issue
Block a user