Skip to content

ECS Framework API v2.1.50


ECS Framework API / IEntityDebugData

Interface: IEntityDebugData

Defined in: Types/index.ts:324

实体调试数据接口

Properties

totalEntities

totalEntities: number

Defined in: Types/index.ts:326

总实体数


activeEntities

activeEntities: number

Defined in: Types/index.ts:328

激活实体数


pendingAdd

pendingAdd: number

Defined in: Types/index.ts:330

待添加实体数


pendingRemove

pendingRemove: number

Defined in: Types/index.ts:332

待移除实体数


entitiesPerArchetype

entitiesPerArchetype: object[]

Defined in: Types/index.ts:334

按Archetype分组的实体分布

signature

signature: string

count

count: number

memory

memory: number


topEntitiesByComponents

topEntitiesByComponents: object[]

Defined in: Types/index.ts:340

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

id

id: string

name

name: string

componentCount

componentCount: number

memory

memory: number


entityDetails?

optional entityDetails: object[]

Defined in: Types/index.ts:347

实体详情列表

id

id: string | number

name?

optional name: string

tag?

optional tag: string

enabled

enabled: boolean

componentCount

componentCount: number

components

components: string[]


entityHierarchy?

optional entityHierarchy: object[]

Defined in: Types/index.ts:356

实体层次结构(根实体)

id

id: number

name

name: string

active

active: boolean

enabled

enabled: boolean

activeInHierarchy

activeInHierarchy: boolean

componentCount

componentCount: number

componentTypes

componentTypes: string[]

parentId

parentId: null | number

children

children: IEntityHierarchyNode[]

depth

depth: number

tag

tag: number

updateOrder

updateOrder: number


entityDetailsMap?

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

Defined in: Types/index.ts:371

实体详细信息映射

Released under the MIT License.