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

16 lines
481 B
TypeScript
Raw Normal View History

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