@lingfan-engine/core 0.3.4 → 0.3.6
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/package.json
CHANGED
|
@@ -134,6 +134,12 @@ export interface ProjectManifest {
|
|
|
134
134
|
entry: string;
|
|
135
135
|
/** 工程显示名(可选) */
|
|
136
136
|
name?: string;
|
|
137
|
+
/**
|
|
138
|
+
* 工程简介(可选):给玩家看的自由文本(创作者写给自己与读者的一句说明)。
|
|
139
|
+
* **不参与寻址**:定位靠 `id` 与目录名,标题解析只读 `name` / `id`;
|
|
140
|
+
* 描述是纯元信息,引擎不据此改变任何行为。
|
|
141
|
+
*/
|
|
142
|
+
description?: string;
|
|
137
143
|
/** 默认语言(I18N overlay 机制) */
|
|
138
144
|
lang?: string;
|
|
139
145
|
/**
|
|
@@ -93,6 +93,14 @@ export function assembleProject(
|
|
|
93
93
|
if (manifest.lang !== undefined && typeof manifest.lang !== "string") {
|
|
94
94
|
issues.push("project.json: lang 必须为字符串");
|
|
95
95
|
}
|
|
96
|
+
// 工程简介(给玩家看的自由文本):只校验形状,内容不限语言与字符集。
|
|
97
|
+
// 空串合法(作者可能留空),不参与寻址,组装器也不回填进 Story。
|
|
98
|
+
if (
|
|
99
|
+
manifest.description !== undefined &&
|
|
100
|
+
typeof manifest.description !== "string"
|
|
101
|
+
) {
|
|
102
|
+
issues.push("project.json: description 必须为字符串");
|
|
103
|
+
}
|
|
96
104
|
// 故事版本(作者声明):正整数;缺席 = 1(读侧 ?? 1 口径,组装器不补默认)
|
|
97
105
|
if (
|
|
98
106
|
manifest.version !== undefined &&
|