class SKUFlagsBitField

export class SKUFlagsBitField extends BitField<SKUFlagsString>

Data structure that makes it easy to interact with an flags bitfield.

bitfield : number

Bitfield of the packed bits

Inherited from: BitField

static
Flags : EnumLike<unknown, number | bigint>

Numeric bitfield flags. Defined in extension classes

Inherited from: BitField

static
FLAGS : typeof SKUFlags

[Symbol.iterator]() : IterableIterator<SKUFlagsString>

Inherited from: BitField

Adds bits to these ones.

Returns: These bits or new BitField if the instance is frozen.

Inherited from: BitField

Checks whether the bitfield has a bit, or any of multiple bits.

Inherited from: BitField

Checks if this bitfield equals another

Inherited from: BitField

Freezes these bits, making them immutable.

Inherited from: BitField

Checks whether the bitfield has a bit, or multiple bits.

Inherited from: BitField

missing(
...hasParams: readonly unknown[]
) : SKUFlagsString[]

Gets all given bits that are missing from the bitfield.

Inherited from: BitField

Removes bits from these.

Returns: These bits or new BitField if the instance is frozen.

Inherited from: BitField

serialize(
...hasParams: readonly unknown[]
) : Record<SKUFlagsString, boolean>

Gets an object mapping field names to a boolean indicating whether the bit is available.

Inherited from: BitField

toArray(
...hasParams: readonly unknown[]
) : SKUFlagsString[]

Gets an Array of bitfield names based on the bits available.

Inherited from: BitField

toJSON() : number extends number ? number : string

Inherited from: BitField

valueOf() : number

Inherited from: BitField