From c6063f51f89d368e5baa30a2c2723a202cfe1214 Mon Sep 17 00:00:00 2001 From: Forairaaaaa Date: Fri, 25 Oct 2024 11:01:29 +0800 Subject: [PATCH] put ablility base api to public --- src/ability/ability.h | 21 ++++++++++----------- 1 file changed, 10 insertions(+), 11 deletions(-) diff --git a/src/ability/ability.h b/src/ability/ability.h index 87d2adf..6458c91 100644 --- a/src/ability/ability.h +++ b/src/ability/ability.h @@ -69,7 +69,6 @@ class BasicAbility : public AbilityBase { return AbilityType_Basic; } -private: void baseCreate() override { onCreate(); @@ -142,12 +141,12 @@ class UIAbility : public AbilityBase { return AbilityType_UI; } -private: - State_t _current_state = StateForeground; - void baseCreate() override; void baseUpdate() override; void baseDestroy() override; + +private: + State_t _current_state = StateForeground; }; /* -------------------------------------------------------------------------- */ @@ -205,12 +204,12 @@ class WorkerAbility : public AbilityBase { return AbilityType_Worker; } -private: - State_t _current_state = StateRunning; - void baseCreate() override; void baseUpdate() override; void baseDestroy() override; + +private: + State_t _current_state = StateRunning; }; /* -------------------------------------------------------------------------- */ @@ -278,13 +277,13 @@ class AppAbility : public AbilityBase { return AbilityType_App; } -private: - State_t _current_state = StateSleeping; - AppInfo_t _app_info; - void baseCreate() override; void baseUpdate() override; void baseDestroy() override; + +private: + State_t _current_state = StateSleeping; + AppInfo_t _app_info; }; } // namespace mooncake \ No newline at end of file