AGC 运行画面点选新增 Phaser 4 与 three.js 引擎档

- 预览桥脚本从 preview.rs 的 Rust 字符串常量搬到 resources/preview/local-preview-fit.js,改由 include_str! 引用,尺寸上报与 DOM 点选行为逐字不变
- 抽出共享命中解析,DOM 档语义保持原样
- 新增 canvas 引擎档:只认玩法发布的只读句柄,实现 Phaser 4 与 three.js 两条适配与几何兜底
- 素材身份显式标注优先于贴图地址推断,取不到时退化为不带素材的区域引用,不伪造 id
- 新增引擎档用例,直接加载随包桥脚本文件断言消息载荷
- 随包桥脚本加入 prettier 排除,保持逐字内容
This commit is contained in:
2026-10-04 20:45:48 +08:00
parent 81cfbae207
commit 6c6850352e
4 changed files with 2354 additions and 508 deletions
+2
View File
@@ -9,6 +9,8 @@ apps/ai-game-creator-shell/src/features/ui-editor/types/
apps/ai-game-creator-shell/src/view/project-development/chat/generated/
apps/ai-game-creator-shell/src/services/generated/
apps/ai-game-creator-shell/src-tauri/resources/agc-skills/
# 预览桥脚本:随包注入浏览器的资源,按字节搬运自 Rust 内联字符串,禁止 prettier 二次改写
apps/ai-game-creator-shell/src-tauri/resources/preview/
media
*.log
.preview.*
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff