* 获取场景调试信息
(scene: IScene)
| 202 | * 获取场景调试信息 |
| 203 | */ |
| 204 | public getSceneInfo(scene: IScene): SceneDebugInfo { |
| 205 | const entities = scene.entities.buffer; |
| 206 | const systems = scene.systems; |
| 207 | |
| 208 | return { |
| 209 | name: scene.name, |
| 210 | entityCount: entities.length, |
| 211 | systems: systems.map((sys) => this.getSystemInfo(sys)), |
| 212 | entities: entities.map((entity) => this.getEntityInfo(entity)) |
| 213 | }; |
| 214 | } |
| 215 | |
| 216 | /** |
| 217 | * 获取系统调试信息 |
no test coverage detected