同步主站 Cocos 当前工程:关卡资源、运行脚本与打包工具。

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-09-12 14:40:34 +08:00
parent ae75fce80b
commit fac515a669
5609 changed files with 27744634 additions and 5653 deletions

View File

@@ -106,10 +106,9 @@ def merge_prefab_maps(L: dict, prefab_dir: Path) -> None:
L["_mapSource"] = "boundary_ring"
return
maps = parse_level_prefab(p)
if maps.get("ground"):
L["ground"] = maps["ground"]
if maps.get("border"):
L["border"] = maps["border"]
# 空边框也要写回,避免旧 JSON 里的 WallBlock 残留
L["ground"] = maps.get("ground") or {}
L["border"] = maps.get("border") or {}
L["_mapSource"] = "unity_prefab"
@@ -123,10 +122,8 @@ def strip_internal(L: dict) -> dict:
out["unityPrefab"] = L["unityPrefab"]
if L.get("cocosPrefab"):
out["cocosPrefab"] = L["cocosPrefab"]
if L.get("ground"):
out["ground"] = L["ground"]
if L.get("border"):
out["border"] = L["border"]
out["ground"] = L.get("ground") or {}
out["border"] = L.get("border") or {}
if L.get("theme"):
out["theme"] = L["theme"]
return out