@woosh/meep-engine
Version:
Pure JavaScript game engine. Fully featured and production ready.
14 lines (9 loc) • 396 B
TypeScript
import {EntityComponentDataset} from "./EntityComponentDataset";
interface Type<T> extends Function {
new(...args: any[]): T;
}
export class EntityObserver {
constructor(componentTypes: Type<any>[], completedCallback: (...args: any) => any, brokenCallback: (...args: any) => any, thisArg?: any)
connect(dataset: EntityComponentDataset): void
disconnect(): void
}