The current value of the bit mask, defaults to 0
The array of names to use e.g. ['canOpen', 'canClose']
The current value of the mask
Returns an array of indexes in the bits array that are currently true.
Sets all values in the mask to true if they are in the array and false if they are not.
An array of indexes in the bits array that need to be true.1
Checks the given bit name for its boolean value.
The name of the bit to check. e.g. canOpen
Sets the given bit to the supplied value.
The name of the bit to set e.g. canClose
The boolean value to set it to.
Generated using TypeDoc
Bit Masker utility class.