Skip to content

Home > @esengine/ecs-framework-monorepo > IComponentIndex

IComponentIndex interface

组件索引接口

Signature:

typescript
export interface IComponentIndex

Methods

Method

Description

addEntity(entity)

添加实体到索引

clear()

清空索引

getStats()

获取索引统计信息

query(componentType)

查询包含指定组件的实体

queryMultiple(componentTypes, operation)

批量查询多个组件

removeEntity(entity)

从索引中移除实体

基于 MIT 许可证发布