webgal-parser 4.5.17 → 4.5.18
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/cjs/index.cjs +4 -2
- package/build/cjs/interface/sceneInterface.d.ts +1 -0
- package/build/es/index.js +4 -2
- package/build/es/interface/sceneInterface.d.ts +1 -0
- package/build/types/interface/sceneInterface.d.ts +1 -0
- package/build/umd/index.global.js +4 -2
- package/package.json +1 -1
- package/src/interface/sceneInterface.ts +1 -0
- package/src/scriptParser/scriptParser.ts +3 -0
package/build/cjs/index.cjs
CHANGED
|
@@ -462,7 +462,8 @@ const scriptParser = (sentenceRaw, assetSetter, ADD_NEXT_ARG_LIST, SCRIPT_CONFIG
|
|
|
462
462
|
content: sentenceComment.trim(),
|
|
463
463
|
args: [{ key: 'next', value: true }],
|
|
464
464
|
sentenceAssets: [],
|
|
465
|
-
subScene: [],
|
|
465
|
+
subScene: [],
|
|
466
|
+
inlineComment: '', // 行内注释
|
|
466
467
|
};
|
|
467
468
|
}
|
|
468
469
|
// 截取命令
|
|
@@ -512,7 +513,8 @@ const scriptParser = (sentenceRaw, assetSetter, ADD_NEXT_ARG_LIST, SCRIPT_CONFIG
|
|
|
512
513
|
content: content,
|
|
513
514
|
args: args,
|
|
514
515
|
sentenceAssets: sentenceAssets,
|
|
515
|
-
subScene: subScene,
|
|
516
|
+
subScene: subScene,
|
|
517
|
+
inlineComment: sentenceComment.trim(), // 行内注释
|
|
516
518
|
};
|
|
517
519
|
};
|
|
518
520
|
|
package/build/es/index.js
CHANGED
|
@@ -458,7 +458,8 @@ const scriptParser = (sentenceRaw, assetSetter, ADD_NEXT_ARG_LIST, SCRIPT_CONFIG
|
|
|
458
458
|
content: sentenceComment.trim(),
|
|
459
459
|
args: [{ key: 'next', value: true }],
|
|
460
460
|
sentenceAssets: [],
|
|
461
|
-
subScene: [],
|
|
461
|
+
subScene: [],
|
|
462
|
+
inlineComment: '', // 行内注释
|
|
462
463
|
};
|
|
463
464
|
}
|
|
464
465
|
// 截取命令
|
|
@@ -508,7 +509,8 @@ const scriptParser = (sentenceRaw, assetSetter, ADD_NEXT_ARG_LIST, SCRIPT_CONFIG
|
|
|
508
509
|
content: content,
|
|
509
510
|
args: args,
|
|
510
511
|
sentenceAssets: sentenceAssets,
|
|
511
|
-
subScene: subScene,
|
|
512
|
+
subScene: subScene,
|
|
513
|
+
inlineComment: sentenceComment.trim(), // 行内注释
|
|
512
514
|
};
|
|
513
515
|
};
|
|
514
516
|
|
|
@@ -461,7 +461,8 @@ var webgalParser = (function (exports) {
|
|
|
461
461
|
content: sentenceComment.trim(),
|
|
462
462
|
args: [{ key: 'next', value: true }],
|
|
463
463
|
sentenceAssets: [],
|
|
464
|
-
subScene: [],
|
|
464
|
+
subScene: [],
|
|
465
|
+
inlineComment: '', // 行内注释
|
|
465
466
|
};
|
|
466
467
|
}
|
|
467
468
|
// 截取命令
|
|
@@ -511,7 +512,8 @@ var webgalParser = (function (exports) {
|
|
|
511
512
|
content: content,
|
|
512
513
|
args: args,
|
|
513
514
|
sentenceAssets: sentenceAssets,
|
|
514
|
-
subScene: subScene,
|
|
515
|
+
subScene: subScene,
|
|
516
|
+
inlineComment: sentenceComment.trim(), // 行内注释
|
|
515
517
|
};
|
|
516
518
|
};
|
|
517
519
|
|
package/package.json
CHANGED
|
@@ -49,6 +49,7 @@ export const scriptParser = (
|
|
|
49
49
|
args: [{ key: 'next', value: true }], // 参数列表
|
|
50
50
|
sentenceAssets: [], // 语句携带的资源列表
|
|
51
51
|
subScene: [], // 语句携带的子场景
|
|
52
|
+
inlineComment: '', // 行内注释
|
|
52
53
|
};
|
|
53
54
|
}
|
|
54
55
|
// 截取命令
|
|
@@ -102,6 +103,7 @@ export const scriptParser = (
|
|
|
102
103
|
args.push(e);
|
|
103
104
|
}
|
|
104
105
|
}
|
|
106
|
+
|
|
105
107
|
content = contentParser(newSentenceRaw.trim(), command, assetSetter); // 将语句内容里的文件名转为相对或绝对路径
|
|
106
108
|
sentenceAssets = assetsScanner(command, content, args); // 扫描语句携带资源
|
|
107
109
|
subScene = subSceneScanner(command, content); // 扫描语句携带子场景
|
|
@@ -112,5 +114,6 @@ export const scriptParser = (
|
|
|
112
114
|
args: args, // 参数列表
|
|
113
115
|
sentenceAssets: sentenceAssets, // 语句携带的资源列表
|
|
114
116
|
subScene: subScene, // 语句携带的子场景
|
|
117
|
+
inlineComment: sentenceComment.trim(), // 行内注释
|
|
115
118
|
};
|
|
116
119
|
};
|