assassin-bug/framework/world/query.d.ts

14 lines
455 B
TypeScript
Raw Permalink Normal View History

2022-11-26 01:22:02 +00:00
import { World } from ".";
import { Component } from "./component";
import { Entity } from "./entity";
export declare class Query {
include: Array<Component<any>>;
exclude: Array<Component<any>>;
private results;
isDirty: boolean;
includeComponentIds: number[];
excludeComponentIds: number[];
constructor(include: Array<Component<any>>, exclude: Array<Component<any>>);
execute(world: World): Array<Entity>;
}