API reference
Every public class, method, and event in @codexo/exojs. Generated from source.
classFlags
@codexo/exojs / math / stable
Type-safe bitfield utility for managing sets of numeric enum flags. `T` should be a numeric const-enum or a type whose values are `number`. Internally stores the combined flags as a single 32-bit integer.
1
props
6
methods
0
events
Import
import { Flags } from '@codexo/exojs' Type-safe bitfield utility for managing sets of numeric enum flags.
`T` should be a numeric const-enum or a type whose values are `number`. Internally stores the combined flags as a single 32-bit integer.
Constructors 1
new(flags: number[]): Flags<T> Methods 6
clear(): this destroy(): void has(flags: V[]): boolean pop(flag: V): boolean push(flags: V[]): this remove(flags: V[]): this Properties 1
value: number Source