Skip to content

Commit

Permalink
生成的 resource 目录改为 y3helper
Browse files Browse the repository at this point in the history
  • Loading branch information
sumneko committed Apr 1, 2024
1 parent 4beda56 commit af23d2e
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 21 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

## 修改并导入物编

初始化后,你的项目中会生成 `resource\editor_table` 文件夹,你可以修改这些CSV文件来生成物编。
初始化后,你的项目中会生成 `y3helper\editor_table` 文件夹,你可以修改这些CSV文件来生成物编。

之后使用命令 `Y3:导入物编数据(CSV)` 即可将这些物编写入地图。

Expand Down
18 changes: 9 additions & 9 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -128,47 +128,47 @@
"properties": {
"unit": {
"type": "string",
"default": "./resource/editor_table/单位",
"default": "./y3helper/editor_table/单位",
"description": "单位的CSV物编数据的默认存放文件夹名"
},
"decoration": {
"type": "string",
"default": "./resource/editor_table/装饰物",
"default": "./y3helper/editor_table/装饰物",
"description": "装饰物的CSV物编数据的默认存放文件夹名"
},
"item": {
"type": "string",
"default": "./resource/editor_table/物品",
"default": "./y3helper/editor_table/物品",
"description": "物品的CSV物编数据的默认存放文件夹名"
},
"ability": {
"type": "string",
"default": "./resource/editor_table/技能",
"default": "./y3helper/editor_table/技能",
"description": "技能的CSV物编数据的默认存放文件夹名"
},
"modifier": {
"type": "string",
"default": "./resource/editor_table/魔法效果",
"default": "./y3helper/editor_table/魔法效果",
"description": "魔法效果的CSV物编数据的默认存放文件夹名"
},
"projectile": {
"type": "string",
"default": "./resource/editor_table/投射物",
"default": "./y3helper/editor_table/投射物",
"description": "投射物的CSV物编数据的默认存放文件夹名"
},
"technology": {
"type": "string",
"default": "./resource/editor_table/科技",
"default": "./y3helper/editor_table/科技",
"description": "科技的CSV物编数据的默认存放文件夹名"
},
"destructible": {
"type": "string",
"default": "./resource/editor_table/可破坏物",
"default": "./y3helper/editor_table/可破坏物",
"description": "可破坏物的CSV物编数据的默认存放文件夹名"
},
"sound": {
"type": "string",
"default": "./resource/editor_table/声音",
"default": "./y3helper/editor_table/声音",
"description": "声音的CSV物编数据的默认存放文件夹名"
}
}
Expand Down
20 changes: 10 additions & 10 deletions src/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -98,13 +98,13 @@ export const csvTypeToPath: Readonly<{ [key: string]: string }> = {

// 默认情况下各类型物编数据CSV文件的相对路径 (相对于工程项目的script文件)
export const defaultTableTypeToCSVfolderPath: Readonly<{ [key: string]: string }> = {
unit: "./resource/editor_table/单位",
decoration: "./resource/editor_table/装饰物",
item: "./resource/editor_table/物品",
ability: "./resource/editor_table/技能",
modifier: "./resource/editor_table/魔法效果",
projectile: "./resource/editor_table/投射物",
technology: "./resource/editor_table/科技",
destructible: "./resource/editor_table/可破坏物",
sound: "./resource/editor_table/声音"
};
unit: "./y3helper/editor_table/单位",
decoration: "./y3helper/editor_table/装饰物",
item: "./y3helper/editor_table/物品",
ability: "./y3helper/editor_table/技能",
modifier: "./y3helper/editor_table/魔法效果",
projectile: "./y3helper/editor_table/投射物",
technology: "./y3helper/editor_table/科技",
destructible: "./y3helper/editor_table/可破坏物",
sound: "./y3helper/editor_table/声音"
};
2 changes: 1 addition & 1 deletion src/env.ts
Original file line number Diff line number Diff line change
Expand Up @@ -295,7 +295,7 @@ class EnvPath {
this.scriptUri = vscode.Uri.joinPath(this.mapUri, 'script');
this.y3Uri = vscode.Uri.joinPath(this.scriptUri, 'y3');
this.editorTableUri = vscode.Uri.joinPath(this.mapUri, "editor_table");
this.csvTableUri = vscode.Uri.joinPath(this.scriptUri, "./resource/editor_table/");
this.csvTableUri = vscode.Uri.joinPath(this.scriptUri, "./y3helper/editor_table/");
this.initTableTypeToCSVfolderPath();
}
tools.log.info(`mapUri: ${this.mapUri}`);
Expand Down

0 comments on commit af23d2e

Please sign in to comment.