Files
esengine/packages/tools/demos/package.json
YHH bdbbf8a80a feat(ecs): 添加 @NetworkEntity 装饰器,支持自动广播实体生成/销毁 (#395)
* docs: add editor-app README with setup instructions

* docs: add separate EN/CN editor setup guides

* feat(ecs): add @NetworkEntity decorator for auto spawn/despawn broadcasting

- Add @NetworkEntity decorator to mark components for automatic network broadcasting
- ECSRoom now auto-broadcasts spawn on component:added event
- ECSRoom now auto-broadcasts despawn on entity:destroyed event
- Entity.destroy() emits entity:destroyed event via ECSEventType
- Entity active state changes emit ENTITY_ENABLED/ENTITY_DISABLED events
- Add enableAutoNetworkEntity config option to ECSRoom (default true)
- Update documentation for both Chinese and English
2025-12-30 16:19:01 +08:00

27 lines
813 B
JSON

{
"name": "@esengine/demos",
"version": "1.0.7",
"private": true,
"description": "Demo tests for ESEngine modules documentation",
"type": "module",
"scripts": {
"test": "tsx src/index.ts",
"test:timer": "tsx src/timer.demo.ts",
"test:fsm": "tsx src/fsm.demo.ts",
"test:pathfinding": "tsx src/pathfinding.demo.ts",
"test:procgen": "tsx src/procgen.demo.ts",
"test:spatial": "tsx src/spatial.demo.ts"
},
"dependencies": {
"@esengine/timer": "workspace:*",
"@esengine/fsm": "workspace:*",
"@esengine/pathfinding": "workspace:*",
"@esengine/procgen": "workspace:*",
"@esengine/spatial": "workspace:*"
},
"devDependencies": {
"tsx": "^4.7.0",
"typescript": "^5.8.3"
}
}