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

    Interface IQuery<DESC, DATA>

    interface IQuery<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;
        toArray(): DATA[];
    }

    Type Parameters

    • DESC
    • DATA

    Hierarchy (View Summary)

    Implemented by

    Index

    Properties

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

    Methods

    • Parameters

      • handler: (data: DATA) => void | Promise<void>

      Returns Promise<void>