From 1cb56fb90731eb57acc343170f2faaf50c518304 Mon Sep 17 00:00:00 2001 From: Reece Date: Sat, 16 Oct 2021 01:23:18 +0100 Subject: [PATCH] [*] Migrate more interfaces to aurora interfaces --- Include/Aurora/Console/Hooks/Hooks.hpp | 8 +++----- Include/Aurora/Threading/Threads/IThreadFeature.hpp | 10 ++++------ 2 files changed, 7 insertions(+), 11 deletions(-) diff --git a/Include/Aurora/Console/Hooks/Hooks.hpp b/Include/Aurora/Console/Hooks/Hooks.hpp index 210f1cd7..ca99668d 100644 --- a/Include/Aurora/Console/Hooks/Hooks.hpp +++ b/Include/Aurora/Console/Hooks/Hooks.hpp @@ -9,11 +9,9 @@ namespace Aurora::Console::Hooks { - class IConsoleSubscriber - { - public: - virtual void OnMessage(const ConsoleMessage &string) = 0; - }; + AUKN_INTERFACE(IConsoleSubscriber, + AUI_METHOD(void, OnMessage, (const ConsoleMessage &, message)) + ); AUKN_SYM void AddSubscription(const AuSPtr &subscriber); AUKN_SYM void RemoveSubscription(const AuSPtr &subscriber); diff --git a/Include/Aurora/Threading/Threads/IThreadFeature.hpp b/Include/Aurora/Threading/Threads/IThreadFeature.hpp index 7ee58e19..eaf7cb7d 100644 --- a/Include/Aurora/Threading/Threads/IThreadFeature.hpp +++ b/Include/Aurora/Threading/Threads/IThreadFeature.hpp @@ -9,10 +9,8 @@ namespace Aurora::Threading::Threads { - class IThreadFeature - { - public: - virtual void Init() = 0; - virtual void Cleanup() = 0; - }; + AUKN_INTERFACE(IThreadFeature, + AUI_METHOD(void, Init, ()), + AUI_METHOD(void, Cleanup, ()) + ); } \ No newline at end of file