From dcd1a856bd5e5da2ddc6fd78dd6d4910ac801353 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?L=C3=A9o=20Lam?= Date: Sat, 22 Jan 2022 21:06:10 +0100 Subject: [PATCH] ksys/act: Document some BaseProcMgr iteration functions --- src/KingSystem/ActorSystem/actBaseProcMgr.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/KingSystem/ActorSystem/actBaseProcMgr.h b/src/KingSystem/ActorSystem/actBaseProcMgr.h index 4319437a..0a69b005 100644 --- a/src/KingSystem/ActorSystem/actBaseProcMgr.h +++ b/src/KingSystem/ActorSystem/actBaseProcMgr.h @@ -173,9 +173,13 @@ public: // region BaseProc iteration BaseProc* getNextProc(sead::CriticalSection* cs, BaseProc* current_proc, ProcFilters filters); + /// Get the first BaseProc with the specified name (subject to filters). BaseProc* getProc(const sead::SafeString& name, ProcFilters filters); + /// Get the first BaseProc with the specified ID (subject to filters). BaseProc* getProc(const u32& id, ProcFilters filters); + /// Execute a callback for every process (subject to filters). void forEachProc(sead::IDelegate1& callback, ProcFilters filters); + /// Execute a callback for every process with the specified name (subject to filters). void forEachProc(const sead::SafeString& proc_name, sead::IDelegate1& callback, ProcFilters filters); ProcIteratorContext getProcs(ProcFilter filters) { return {*this, filters}; }