summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authormrb0nk500 <b0nk@b0nk.xyz>2023-02-16 15:46:06 -0400
committermrb0nk500 <b0nk@b0nk.xyz>2023-02-16 15:54:22 -0400
commit0523e8a94a62d318d811131a74f8fe435c2492da (patch)
tree0b30994f8afa39181b540fbb7a803dc626a4494d /include
parent6cf2a8f9e21beb917d95b388c80777ed6a194c4c (diff)
TObject: Add `toggle_flags()`
Diffstat (limited to 'include')
-rw-r--r--include/pso/TObject.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/pso/TObject.h b/include/pso/TObject.h
index f399d7b..e9af709 100644
--- a/include/pso/TObject.h
+++ b/include/pso/TObject.h
@@ -101,6 +101,10 @@ private:
m_flags_u16 &= ~static_cast<u16>(flags);
}
+ void toggle_flags(object_flags flags) {
+ m_flags ^= flags;
+ }
+
u32 get_flags(object_flags flags) {
return m_flags & flags;
};