代码统一格式化

This commit is contained in:
MistEO
2021-09-12 01:42:50 +08:00
parent bb6c3a6b43
commit 141d2b237d
30 changed files with 40 additions and 32 deletions

View File

@@ -40,4 +40,4 @@ bool asst::AbstractConfiger::load(const std::string& filename)
DebugTrace("Load config succeed");
return true;
}
}

View File

@@ -97,4 +97,4 @@ bool asst::AbstractTask::is_ptr_inited() const noexcept
return false;
}
return true;
}
}

View File

@@ -632,4 +632,4 @@ std::optional<std::unordered_map<std::string, OperInfrastInfo>> Assistance::get_
return std::nullopt;
}
return opers_info;
}
}

View File

@@ -488,4 +488,4 @@ std::pair<double, asst::Rect> Identify::findImageWithFile(const cv::Mat& cur, co
}
return findImage(cur, mat);
}
*/
*/

View File

@@ -185,4 +185,4 @@ int asst::IdentifyOperTask::detect_elite(const cv::Mat& image, const asst::Rect
else {
return 0;
}
}
}

View File

@@ -336,4 +336,4 @@ bool asst::InfrastAbstractTask::click_first_operator()
const static Rect FirstOperatorRect(420, 80, 125, 270);
return m_controller_ptr->click(FirstOperatorRect);
}
}

View File

@@ -354,4 +354,4 @@ std::vector<InfrastDormTask::MoodStatus> InfrastDormTask::detect_mood_status_at_
});
return moods_vec;
}
}

View File

@@ -44,4 +44,4 @@ int asst::InfrastOfficeTask::select_operators(bool need_to_the_left)
click_confirm_button();
return 1;
}
}

View File

@@ -84,4 +84,4 @@ int asst::InfrastPowerTask::select_operators(bool need_to_the_left)
click_confirm_button();
return 1;
}
}

View File

@@ -247,4 +247,4 @@ bool asst::InfrastProductionTask::swipe_and_select(std::list<std::string>& name_
m_controller_ptr->click(Rect(1105, 655, 150, 40));
sleep(2000);
return true;
}
}

View File

@@ -101,7 +101,6 @@ namespace asst {
}
};
std::mutex m_trace_mutex;
};

View File

@@ -40,4 +40,4 @@ bool asst::OcrAbstractTask::click_text(const cv::Mat& image, const std::string&
}
}
return false;
}
}

View File

@@ -278,4 +278,4 @@ void asst::ProcessTask::exec_swipe_task(ProcessTaskAction action)
default: // 走不到这里TODO 报个错
break;
}
}
}

View File

@@ -313,4 +313,4 @@ cv::Mat asst::WinMacro::get_image(bool raw)
cv::resize(raw_mat, resize_mat, size, cv::INPAINT_NS);
return resize_mat;
}
}
}

View File

@@ -26,4 +26,4 @@
</ResourceDictionary.MergedDictionaries>
</ResourceDictionary>
</Application.Resources>
</Application>
</Application>

View File

@@ -30,4 +30,4 @@ namespace MeoAsstGui
// 抛异常了,可以打些日志
}
}
}
}

View File

@@ -15,22 +15,30 @@ namespace MeoAsstGui
private delegate void ProcCallbckMsg(AsstMsg msg, JObject detail);
[DllImport("MeoAssistance.dll")] static private extern IntPtr AsstCreate();
[DllImport("MeoAssistance.dll")] static private extern IntPtr AsstCreateEx(CallbackDelegate callback, IntPtr custom_arg);
[DllImport("MeoAssistance.dll")] static private extern void AsstDestory(IntPtr ptr);
[DllImport("MeoAssistance.dll")] static private extern bool AsstCatchEmulator(IntPtr ptr);
[DllImport("MeoAssistance.dll")] static private extern bool AsstStartProcessTask(IntPtr ptr, string task);
[DllImport("MeoAssistance.dll")] static private extern bool AsstStartSanity(IntPtr ptr);
[DllImport("MeoAssistance.dll")] static private extern bool AsstStartVisit(IntPtr ptr);
[DllImport("MeoAssistance.dll")] static private extern bool AsstStartOpenRecruit(IntPtr ptr, int[] required_level, int required_len, bool set_time);
[DllImport("MeoAssistance.dll")] static private extern bool AsstStartIndertifyOpers(IntPtr ptr);
[DllImport("MeoAssistance.dll")] static private extern bool AsstStartInfrast(IntPtr ptr);
[DllImport("MeoAssistance.dll")] static private extern bool AsstStartDebugTask(IntPtr ptr);
[DllImport("MeoAssistance.dll")] static private extern void AsstStop(IntPtr ptr);
[DllImport("MeoAssistance.dll")] static private extern bool AsstSetParam(IntPtr p_asst, string type, string param, string value);
[DllImport("MeoAssistance.dll")] static private extern bool AsstSetParam(IntPtr p_asst, string type, string param, string value);
private CallbackDelegate _callback;
@@ -238,6 +246,7 @@ namespace MeoAsstGui
{
return AsstStartSanity(_ptr);
}
public bool AsstStartVisit()
{
return AsstStartVisit(_ptr);
@@ -282,4 +291,4 @@ namespace MeoAsstGui
RecruitSpecialTag,
RecruitResult
};
}
}

View File

@@ -234,4 +234,4 @@
</DrawingGroup>
</DrawingImage.Drawing>
</DrawingImage>
</ResourceDictionary>
</ResourceDictionary>

View File

@@ -24,4 +24,4 @@
</Setter.Value>
</Setter>
</Style>
</ResourceDictionary>
</ResourceDictionary>

View File

@@ -33,4 +33,4 @@
<CheckBox Grid.Row="3" IsChecked="{Binding Shutdown}" Content="刷完自动关机" Margin="10" HorizontalAlignment="Left" VerticalAlignment="Center" />
</Grid>
</UserControl>
</UserControl>

View File

@@ -12,4 +12,4 @@ namespace MeoAsstGui
InitializeComponent();
}
}
}
}

View File

@@ -211,4 +211,4 @@ namespace MeoAsstGui
ExecInfo = "";
}
}
}
}

View File

@@ -125,4 +125,4 @@ namespace MeoAsstGui
asstProxy.AsstStartOpenRecruit(levelList.ToArray(), levelList.Count, AutoSetTime);
}
}
}
}

View File

@@ -54,4 +54,4 @@ namespace MeoAsstGui
}
}
}
}
}

View File

@@ -79,4 +79,4 @@ namespace MeoAsstGui
RequestClose();
}
}
}
}

View File

@@ -29,4 +29,4 @@
<!-- RunStatus -->
<!-- RunStatus-->
</Grid>
</UserControl>
</UserControl>

View File

@@ -30,4 +30,4 @@
<Button Command="{s:Action StartCalc}" Content="开始计算" Margin="30" HorizontalAlignment="Center" VerticalAlignment="Center" Width="150" Height="60" />
</StackPanel>
</Grid>
</UserControl>
</UserControl>

View File

@@ -9,4 +9,4 @@
<DockPanel>
<TabControl Style="{StaticResource StyletConductorTabControl}" Margin="0,10,0,0" />
</DockPanel>
</Window>
</Window>

View File

@@ -25,4 +25,4 @@
<Button Command="{s:Action Close}" Content="下次一定" Margin="20" Width="120" Height="60" />
</StackPanel>
</Grid>
</Window>
</Window>

View File

@@ -617,4 +617,4 @@
[ "艾丝莱尔", "艾丝黛尔" ],
[ ",斑点", "斑点" ]
]
}
}