Learn how to use bitwise operators to manage compact data in Godot 4.
Godot documentation - exporting flags
https://docs.godotengine.org/en/stable/tutorials/scripting/gdscript/gdscript_exports.html#exporting-bit-flags
Buy me a coffee;
https://buymeacoffee.com/stevek
Sample project on Github
https://github.com/skarstensen/bit-flags-demo