Packed structs with only booleans as fields can be interfaced like a struct, and then easily converted to an integer. Such approach is better than plain enum, since one does not have to convert enum to an int and then back every time to change the config.
Packed structs with only booleans as fields can be interfaced like a struct, and then easily converted to an integer. Such approach is better than plain enum, since one does not have to convert enum to an int and then back every time to change the config.
Example: