mirror of
https://github.com/MaaAssistantArknights/MaaAssistantArknights.git
synced 2026-07-20 02:55:38 +08:00
ci: bump oxi, clang, prettier, markdownlint (#12388)
* ci: bump oxi, clang, prettier, markdownlint * chore: Auto update by pre-commit hooks [skip changelog] * chore: 移除不再使用clang-format的JSON文件 * chore: clang-format disable * chore: clang版本更新 * chore: Auto update by pre-commit hooks [skip changelog] * chore: ver注释 * docs: Modify the clang-format version restriction in the documentation to match the current changes @zzyyyl --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: status102 <102887808+status102@users.noreply.github.com>
This commit is contained in:
@@ -252,6 +252,7 @@ asst::battle::RoleCounts asst::CopilotConfig::parse_role_counts(const json::valu
|
||||
|
||||
asst::battle::DeployDirection asst::CopilotConfig::string_to_direction(const std::string& str)
|
||||
{
|
||||
// clang-format off
|
||||
static const std::unordered_map<std::string, DeployDirection> DeployDirectionMapping = {
|
||||
{ "Right", DeployDirection::Right }, { "RIGHT", DeployDirection::Right },
|
||||
{ "right", DeployDirection::Right }, { "右", DeployDirection::Right },
|
||||
@@ -267,7 +268,7 @@ asst::battle::DeployDirection asst::CopilotConfig::string_to_direction(const std
|
||||
|
||||
{ "None", DeployDirection::None }, { "NONE", DeployDirection::None },
|
||||
{ "none", DeployDirection::None }, { "无", DeployDirection::None },
|
||||
};
|
||||
}; // clang-format on
|
||||
|
||||
if (auto iter = DeployDirectionMapping.find(str); iter != DeployDirectionMapping.end()) {
|
||||
return iter->second;
|
||||
|
||||
Reference in New Issue
Block a user