mirror of
https://github.com/MaaAssistantArknights/MaaAssistantArknights.git
synced 2026-07-18 18:20:39 +08:00
18 lines
447 B
C++
18 lines
447 B
C++
#include "InstHelper.h"
|
|
|
|
#include "Assistant.h"
|
|
|
|
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 ? m_inst->need_exit() : false;
|
|
} |