UNPKG

@curbl/ecs

Version:

Small Entity Component System

19 lines (18 loc) 554 B
export declare class Bitmask { private mask; constructor(bitLength: number, input?: Uint32Array); set(index: number, value: 0 | 1): void; /** * compare two bitmasks with and * e.g. this(110) and other(111) is true 110 & 111 === 110 * while this(111) and other(110) is false 111 & 110 !== 111 * @param other */ compareAnd(other: Bitmask): boolean; isEqual(other: Bitmask): boolean; private balance; private grow; clone(): Bitmask; clear(): void; toString(): string; }