Interface EcsEntityManager

2.3.1b115

interface EcsEntityManager {
    INVALID_ENTITY: number;
    TAG: Object;
    createEntity(): number;
    detachEntity(entity: number): EcsAddComponents;
    extend(entity: number, components: EcsAddComponents): void;
    getComponent(entity: number, index: number): any;
    getComponents(entity: number, query: EcsQuery): any[];
    performQuery(query: EcsQuery, consumer: FixedQueryConsumer0): void;
    performQuery<T1>(query: EcsQuery, consumer: FixedQueryConsumer1<T1>): void;
    performQuery<T1, T2>(query: EcsQuery, consumer: FixedQueryConsumer2<T1, T2>): void;
    performQuery<T1, T2, T3>(query: EcsQuery, consumer: FixedQueryConsumer3<T1, T2, T3>): void;
    performQuery<T1, T2, T3, T4>(query: EcsQuery, consumer: FixedQueryConsumer4<T1, T2, T3, T4>): void;
    performQuery<T1, T2, T3, T4, T5>(query: EcsQuery, consumer: FixedQueryConsumer5<T1, T2, T3, T4, T5>): void;
    performQuery<T1, T2, T3, T4, T5, T6>(query: EcsQuery, consumer: FixedQueryConsumer6<T1, T2, T3, T4, T5, T6>): void;
    performVariadicQuery(query: EcsQuery, consumer: VariadicQueryConsumer): void;
    removeAllEntitiesWithComponents(query: EcsQuery): void;
    removeEntity(entity: number): void;
    shrink(entity: number, components: EcsRemoveComponents): void;
}

Methods

  • Returns number

  • Parameters

    • entity: number
    • index: number

    Returns any

  • Parameters

    Returns any[]

  • Parameters

    Returns void

  • Parameters

    • entity: number

    Returns void

Properties

INVALID_ENTITY: number
TAG: Object

Copyright © 2024 Nernar. Copyright © 2020 #mineprogramming. Built with ❤ and TypeDoc.