diff options
-rw-r--r-- | context.h | 4 | ||||
-rw-r--r-- | include/pso/TObject.h | 4 |
2 files changed, 8 insertions, 0 deletions
@@ -271,6 +271,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; }; 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; }; |