同步主站 Cocos 当前工程:关卡资源、运行脚本与打包工具。
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -164,8 +164,10 @@ function parseTilesFromNodes(objs, projectPath) {
|
||||
function mergeMapSources(mapData, fromNodes) {
|
||||
const md = mapData || { ground: {}, border: {}, theme: null, levelID: 0 };
|
||||
const nodes = fromNodes || { ground: {}, border: {} };
|
||||
const ground = Object.keys(nodes.ground).length ? nodes.ground : md.ground || {};
|
||||
const border = Object.keys(nodes.border).length ? nodes.border : md.border || {};
|
||||
// LevelMapData 是烘焙权威(含 JumpBlock / kuai11)。节点贴图 UUID 对不上时
|
||||
// 会被收成 Baseblock / WallBlock,不能盖过 JSON。
|
||||
const ground = Object.keys(md.ground || {}).length ? md.ground : (nodes.ground || {});
|
||||
const border = Object.keys(md.border || {}).length ? md.border : (nodes.border || {});
|
||||
return {
|
||||
levelID: md.levelID || 0,
|
||||
ground,
|
||||
|
||||
Reference in New Issue
Block a user