summaryrefslogtreecommitdiff
path: root/context.h
diff options
context:
space:
mode:
Diffstat (limited to 'context.h')
-rw-r--r--context.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/context.h b/context.h
index 16b224c..4896f3a 100644
--- a/context.h
+++ b/context.h
@@ -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;
};