summaryrefslogtreecommitdiff
path: root/src/KingSystem
diff options
context:
space:
mode:
authorLéo Lam <leo@leolam.fr>2022-01-22 21:06:10 +0100
committerLéo Lam <leo@leolam.fr>2022-01-22 21:06:10 +0100
commitdcd1a856bd5e5da2ddc6fd78dd6d4910ac801353 (patch)
treecc13a8ac19553d6ea460563cc507f6d84d6bf082 /src/KingSystem
parent719c5f02a70616520ccb0c2b22aa370437cf1cc7 (diff)
ksys/act: Document some BaseProcMgr iteration functions
Diffstat (limited to 'src/KingSystem')
-rw-r--r--src/KingSystem/ActorSystem/actBaseProcMgr.h4
1 files changed, 4 insertions, 0 deletions
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<BaseProc*>& 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<BaseProc*>& callback,
ProcFilters filters);
ProcIteratorContext getProcs(ProcFilter filters) { return {*this, filters}; }