diff options
author | mrb0nk500 <b0nk@b0nk.xyz> | 2023-02-03 13:34:21 -0400 |
---|---|---|
committer | mrb0nk500 <b0nk@b0nk.xyz> | 2023-02-03 13:35:12 -0400 |
commit | 1c1292fcc599714d988c5773d356e54c7084481f (patch) | |
tree | d260c2da2ef2bb89cd3d8f2ed6afdc44aaf0b8c9 | |
parent | ecd5a680b2f048a3aa7dd6b93f4da9768fdc347c (diff) |
TMainTask: Add private helpers for setting, clearing, and getting
`task_flags`
-rw-r--r-- | include/pso/TMainTask.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/include/pso/TMainTask.h b/include/pso/TMainTask.h index 024feec..b719e94 100644 --- a/include/pso/TMainTask.h +++ b/include/pso/TMainTask.h @@ -15,5 +15,17 @@ public: public: TMainTask(); virtual ~TMainTask(); +private: + void set_task_flags(u32 flags) { + this->task_flags |= flags; + } + + void clear_task_flags(u32 flags) { + this->task_flags &= ~flags; + } + + u32 get_task_flags(u32 flags) { + return this->task_flags & flags; + }; }; #endif |