* 获取实体调试信息
(entity: Entity)
| 238 | * 获取实体调试信息 |
| 239 | */ |
| 240 | public getEntityInfo(entity: Entity): EntityDebugInfo { |
| 241 | const components = entity.components; |
| 242 | |
| 243 | return { |
| 244 | id: entity.id, |
| 245 | name: entity.name, |
| 246 | enabled: entity.enabled, |
| 247 | tag: entity.tag, |
| 248 | componentCount: components.length, |
| 249 | components: components.map((comp) => this.getComponentInfo(comp)) |
| 250 | }; |
| 251 | } |
| 252 | |
| 253 | /** |
| 254 | * 获取组件调试信息 |
no test coverage detected