style: format

This commit is contained in:
zzyyyl
2022-09-30 22:55:25 +08:00
parent c95c31e242
commit 93073aade1
4 changed files with 5 additions and 4 deletions

View File

@@ -747,7 +747,8 @@ bool asst::Controller::screencap(bool allow_reconnect)
clear_lf_info();
auto start_time = high_resolution_clock::now();
if (m_support_socket && m_server_started && screencap(m_adb.screencap_raw_by_nc, decode_raw, allow_reconnect, true)) {
if (m_support_socket && m_server_started &&
screencap(m_adb.screencap_raw_by_nc, decode_raw, allow_reconnect, true)) {
auto duration = duration_cast<milliseconds>(high_resolution_clock::now() - start_time);
if (duration < min_cost) {
m_adb.screencap_method = AdbProperty::ScreencapMethod::RawByNc;

View File

@@ -24,7 +24,7 @@ bool asst::RecruitImageAnalyzer::tags_analyze()
if (!analyzer_inited) {
tags_analyzer.set_task_info("RecruitTags");
auto& all_tags_set = RecruitData.get_all_tags();
// 已经 fullMatch不会再把 `支援机械` 匹配成 `支援`、`高级资深干员` 匹配成 `资深干员` 了,因此不必再排序。
tags_analyzer.set_required(std::vector(all_tags_set.begin(), all_tags_set.end()));
analyzer_inited = true;

View File

@@ -3,9 +3,9 @@
#include <queue>
#include "AbstractTaskPlugin.h"
#include "Utils/AsstBattleDef.h"
#include "ImageAnalyzer/BattleImageAnalyzer.h"
#include "Resource/TilePack.h"
#include "Utils/AsstBattleDef.h"
#include "Utils/AsstTypes.h"
namespace asst

View File

@@ -1,9 +1,9 @@
#pragma once
#include "AbstractTask.h"
#include "Utils/AsstBattleDef.h"
#include "ImageAnalyzer/BattleImageAnalyzer.h"
#include "Resource/TilePack.h"
#include "Utils/AsstBattleDef.h"
#include "Utils/AsstTypes.h"
namespace asst