UNPKG

@curbl/ecs

Version:

Small Entity Component System

15 lines (14 loc) 414 B
import { Bitmask } from './bitmask'; export declare class ComponentRegister { /** * name of the component and the bit position * @private */ private components; private size; constructor(); clear(): void; register(component: string): number; remove(component: string): void; buildMask(components: string[] | (new (...args: any[]) => any)[]): Bitmask; }