Appearance
场景打包/解包
系统概览
场景打包/解包([doc:architecture])。收集场景引用资源、重写 libraryRef、调用 Go 后端 BundleScene / ExtractZip / LoadSceneFile 等绑定完成打包与解包。依赖 scene-serialize.ts 与 config.ts / wails bindings。
核心职责
scene-bundle.ts— 资产收集(去重绝对路径)、libraryRef 重写、Go 打包/解包编排
对外 API(节选)
collectSceneAssets(scene)— 收集模型(PMX)/VMD/相机VMD/道具等引用资源的绝对路径(去重)- 打包/解包入口(调用 wails-bindings 的
BundleScene/SelectBundleSaveFile/ExtractZip/SelectSceneOpenFile/LoadSceneFile) - 依赖
scene-serialize的 serialize/deserialize 与core/config的libraryRoot
与其他子系统关系
- 依赖
scene-serialize(SceneFile 序列化)、core/wails-bindings(Go 后端)、core/config