sim-ecs - v0.6.5
    Preparing search index...

    Interface IQueryDescriptor<DESC, DATA>

    interface IQueryDescriptor<DESC, DATA> {
        descriptor: Readonly<DESC>;
        queryType: EQueryType;
        resultLength: number;
        execute(handler: (data: DATA) => void | Promise<void>): Promise<void>;
        getFirst(): undefined | DATA;
        iter(): IterableIterator<DATA>;
        matchesEntity(entity: Readonly<IEntity>): boolean;
        sort(comparator: TComparator<DATA>): IQueryDescriptor<DESC, DATA>;
        toArray(): DATA[];
    }

    Type Parameters

    • DESC
    • DATA

    Hierarchy (View Summary)

    Implemented by

    Index

    Properties

    descriptor: Readonly<DESC>
    queryType: EQueryType
    resultLength: number

    Methods