BlackToppStudios / Mezz_Foundation

Foundational Data types that enforce no opinions on how to build games and provide many facilities that complex games need. This largely avoids graphics and physics, but provides tools like the SortedVector, CountedPtr and HashedString classes.
GNU General Public License v3.0
3 stars 0 forks source link

Add logical operators to BitmaskTools #26

Open Sqeaky opened 6 years ago

Sqeaky commented 6 years ago

Add more bitmask operations for the BitfieldTools. There should be an && and an || that return booleans.

 if( (YetAnotherBitField::A || BitFieldInstance)
    { /* Should exucute if BitFieldInstance has the A bit enabled*/ }
Sqeaky commented 6 years ago

Actually, I should rewrite these requirements when I am not sleep deprived, but in general other operations that return booleans is a decent idea for at least one operator.