mirror of
https://github.com/MaaAssistantArknights/MaaAssistantArknights.git
synced 2026-07-17 18:01:26 +08:00
perf: change accessibility of derived member function with using keyword
This commit is contained in:
@@ -21,10 +21,7 @@ namespace asst
|
||||
|
||||
private:
|
||||
// 该分析器不支持外部设置ROI
|
||||
virtual void set_roi(const Rect& roi) noexcept override
|
||||
{
|
||||
AbstractImageAnalyzer::set_roi(roi);
|
||||
}
|
||||
using AbstractImageAnalyzer::set_roi;
|
||||
bool commodities_analyze();
|
||||
bool whether_to_buy_analyze();
|
||||
bool sold_out_analyze();
|
||||
|
||||
@@ -25,10 +25,7 @@ namespace asst
|
||||
|
||||
private:
|
||||
// 该分析器不支持外部设置ROI
|
||||
virtual void set_roi(const Rect& roi) noexcept override
|
||||
{
|
||||
AbstractImageAnalyzer::set_roi(roi);
|
||||
}
|
||||
using AbstractImageAnalyzer::set_roi;
|
||||
|
||||
std::vector<std::string> m_to_be_analyzed;
|
||||
std::unordered_map<std::string, Rect> m_clue_vacancy;
|
||||
|
||||
@@ -49,10 +49,7 @@ namespace asst
|
||||
|
||||
private:
|
||||
// 该分析器不支持外部设置ROI
|
||||
virtual void set_roi(const Rect& roi) noexcept override
|
||||
{
|
||||
AbstractImageAnalyzer::set_roi(roi);
|
||||
}
|
||||
using AbstractImageAnalyzer::set_roi;
|
||||
|
||||
// key:设施名,value:所有这种设施的当前Rect(例如所有制造站的位置)
|
||||
std::unordered_map<std::string, std::vector<MatchRect>> m_result;
|
||||
|
||||
@@ -51,10 +51,7 @@ namespace asst
|
||||
|
||||
private:
|
||||
// 该分析器不支持外部设置ROI
|
||||
virtual void set_roi(const Rect& roi) noexcept override
|
||||
{
|
||||
AbstractImageAnalyzer::set_roi(roi);
|
||||
}
|
||||
using AbstractImageAnalyzer::set_roi;
|
||||
|
||||
void oper_detect();
|
||||
void mood_analyze();
|
||||
|
||||
@@ -41,10 +41,7 @@ namespace asst
|
||||
|
||||
private:
|
||||
// 该分析器不支持外部设置ROI
|
||||
virtual void set_roi(const Rect& roi) noexcept override
|
||||
{
|
||||
AbstractImageAnalyzer::set_roi(roi);
|
||||
}
|
||||
using AbstractImageAnalyzer::set_roi;
|
||||
bool match_analyze(const std::shared_ptr<TaskInfo>& task_ptr);
|
||||
bool ocr_analyze(const std::shared_ptr<TaskInfo>& task_ptr);
|
||||
void reset() noexcept;
|
||||
|
||||
@@ -33,10 +33,7 @@ namespace asst
|
||||
|
||||
private:
|
||||
// 该分析器不支持外部设置ROI
|
||||
virtual void set_roi(const Rect& roi) noexcept override
|
||||
{
|
||||
AbstractImageAnalyzer::set_roi(roi);
|
||||
}
|
||||
using AbstractImageAnalyzer::set_roi;
|
||||
bool tags_analyze();
|
||||
bool time_analyze();
|
||||
bool refresh_analyze();
|
||||
|
||||
@@ -21,10 +21,7 @@ namespace asst
|
||||
const std::vector<FormationOper>& get_result() const noexcept;
|
||||
protected:
|
||||
// 该分析器不支持外部设置ROI
|
||||
virtual void set_roi(const Rect& roi) noexcept override
|
||||
{
|
||||
AbstractImageAnalyzer::set_roi(roi);
|
||||
}
|
||||
using AbstractImageAnalyzer::set_roi;
|
||||
|
||||
bool selected_analyze(const Rect& roi);
|
||||
|
||||
|
||||
@@ -20,10 +20,7 @@ namespace asst
|
||||
|
||||
private:
|
||||
// 该分析器不支持外部设置ROI
|
||||
virtual void set_roi(const Rect& roi) noexcept override
|
||||
{
|
||||
AbstractImageAnalyzer::set_roi(roi);
|
||||
}
|
||||
using AbstractImageAnalyzer::set_roi;
|
||||
|
||||
std::string name_analyze(const Rect& roi);
|
||||
std::vector<Rect> skill_analyze(const Rect& roi);
|
||||
|
||||
Reference in New Issue
Block a user