Why is uint32 some times used instead of bool

If you want to move around a set of flags as a single unit, the single value with masks is the way to go (as in order to copy these values you have to copy each one individually), but if you’ve got a bunch of basically independent Booleans then this approach works fairly well.

Cheers,
Noland