mirror of
https://github.com/godotengine/godot
synced 2024-09-05 17:59:56 +00:00
Add default, zeroing constructor to BitField
This commit is contained in:
parent
97df6de4a7
commit
2095ca26d0
|
@ -290,6 +290,7 @@ public:
|
|||
_FORCE_INLINE_ void set_flag(T p_flag) { value |= p_flag; }
|
||||
_FORCE_INLINE_ bool has_flag(T p_flag) const { return value & p_flag; }
|
||||
_FORCE_INLINE_ void clear_flag(T p_flag) { return value &= ~p_flag; }
|
||||
_FORCE_INLINE_ BitField() = default;
|
||||
_FORCE_INLINE_ BitField(int64_t p_value) { value = p_value; }
|
||||
_FORCE_INLINE_ operator int64_t() const { return value; }
|
||||
_FORCE_INLINE_ operator Variant() const { return value; }
|
||||
|
|
Loading…
Reference in a new issue