Skip to content

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

IEntityDebugData interface

实体调试数据接口

Signature:

typescript
export interface IEntityDebugData

Properties

Property

Modifiers

Type

Description

activeEntities

number

激活实体数

entitiesPerArchetype

ArchetypeInfo[]

按Archetype分组的实体分布

entityDetails?

EntityDetailInfo[]

(Optional) 实体详情列表

entityDetailsMap?

Record<number, { id: number; name: string; active: boolean; enabled: boolean; activeInHierarchy: boolean; destroyed: boolean; tag: number; updateOrder: number; componentMask: string; parentId: number | null; parentName: string | null; childCount: number; childIds: number[]; depth: number; components: Array<{ typeName: string; properties: Record<string, unknown>; }>; componentCount: number; componentTypes: string[]; }>

(Optional) 实体详细信息映射

entityHierarchy?

Array<{ id: number; name: string; active: boolean; enabled: boolean; activeInHierarchy: boolean; componentCount: number; componentTypes: string[]; parentId: number | null; children: IEntityHierarchyNode[]; depth: number; tag: number; updateOrder: number; }>

(Optional) 实体层次结构(根实体)

pendingAdd

number

待添加实体数

pendingRemove

number

待移除实体数

topEntitiesByComponents

EntityComponentInfo[]

组件数量最多的前几个实体

totalEntities

number

总实体数

基于 MIT 许可证发布