From 71d1ef58363b9254b7f32c88bad9654597f330f0 Mon Sep 17 00:00:00 2001 From: Dongw Date: Sun, 29 Oct 2023 15:24:10 +0800 Subject: [PATCH] =?UTF-8?q?chore:=20=E9=87=8D=E5=91=BD=E5=90=8Dcombat=20ac?= =?UTF-8?q?tion?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- source/cli/CMakeLists.txt | 6 +++--- source/cli/CustomAction/{Combat.cpp => CombatAction.cpp} | 2 +- source/cli/CustomAction/{Combat.h => CombatAction.h} | 1 - source/cli/CustomAction/CustomActionRegistry.h | 2 +- 4 files changed, 5 insertions(+), 6 deletions(-) rename source/cli/CustomAction/{Combat.cpp => CombatAction.cpp} (99%) rename source/cli/CustomAction/{Combat.h => CombatAction.h} (99%) diff --git a/source/cli/CMakeLists.txt b/source/cli/CMakeLists.txt index c066601..4e2c4e0 100644 --- a/source/cli/CMakeLists.txt +++ b/source/cli/CMakeLists.txt @@ -11,12 +11,12 @@ set(CMAKE_CONFIGURATION_TYPES "Release") add_executable(MAABH3_CLI main.cpp main.h - CustomAction/Combat.h - CustomAction/Combat.cpp + CustomAction/CombatAction.h + CustomAction/CombatAction.cpp CustomAction/CustomActionRegistrar.h CustomAction/CustomActionRegistrar.cpp CustomAction/CustomAction.h - CustomAction/CustomAction.cpp + CustomAction/CustomAction.cpp CustomAction/CustomActionRegistry.h CustomAction/RandomPointGenerator.h CustomAction/RandomPointGenerator.cpp diff --git a/source/cli/CustomAction/Combat.cpp b/source/cli/CustomAction/CombatAction.cpp similarity index 99% rename from source/cli/CustomAction/Combat.cpp rename to source/cli/CustomAction/CombatAction.cpp index 8fdad33..71595ca 100644 --- a/source/cli/CustomAction/Combat.cpp +++ b/source/cli/CustomAction/CombatAction.cpp @@ -1,4 +1,4 @@ -#include "Combat.h" +#include "CombatAction.h" void combat_move(MaaSyncContextHandle sync_context, [[maybe_unused]] MaaStringView custom_action_param, int32_t target_x, int32_t target_y, int32_t target_w, int32_t target_h) diff --git a/source/cli/CustomAction/Combat.h b/source/cli/CustomAction/CombatAction.h similarity index 99% rename from source/cli/CustomAction/Combat.h rename to source/cli/CustomAction/CombatAction.h index a4efe25..72ec5ac 100644 --- a/source/cli/CustomAction/Combat.h +++ b/source/cli/CustomAction/CombatAction.h @@ -1,7 +1,6 @@ #pragma once #include -#include #include #include diff --git a/source/cli/CustomAction/CustomActionRegistry.h b/source/cli/CustomAction/CustomActionRegistry.h index 196df58..ab59547 100644 --- a/source/cli/CustomAction/CustomActionRegistry.h +++ b/source/cli/CustomAction/CustomActionRegistry.h @@ -1,6 +1,6 @@ #pragma once -#include "Combat.h" +#include "CombatAction.h" #include "CustomActionRegistrar.h" void custom_action_init(CustomActionRegistrar& registrar)