Home > @esengine/ecs-framework-monorepo > EntityList
EntityList class
高性能实体列表管理器 管理场景中的所有实体,支持快速查找和批量操作
Signature:
typescript
export declare class EntityList
Constructors
Constructor | Modifiers | Description |
---|---|---|
Constructs a new instance of the |
Properties
Property | Modifiers | Type | Description |
---|---|---|---|
Entity[] | |||
| number |
Methods
Method | Modifiers | Description |
---|---|---|
添加实体(立即添加或延迟添加) | ||
根据名称查找所有实体 | ||
根据标签查找实体 | ||
根据组件类型查找实体 | ||
根据名称查找实体(使用索引,O(1)复杂度) | ||
根据ID查找实体(使用索引,O(1)复杂度) | ||
批量操作:对所有实体执行指定操作 | ||
批量操作:对符合条件的实体执行指定操作 | ||
获取实体列表的统计信息 | ||
移除实体(立即移除或延迟移除) | ||
移除所有实体 | ||
更新所有实体 | ||
更新实体列表,处理延迟操作 |