-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
61 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
node_modules | ||
rustedwarfareapicode/.vitepress/dist/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
xx |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
--- | ||
outline: deep | ||
--- | ||
|
||
# **[core]组** | ||
|
||
## 第一类-通用代码组 | ||
|
||
::: tip | ||
以下的代码为`通用代码`,多半是必要的代码,如果不包括这些,可能在`绝大多数情况下导致错误`。 | ||
::: | ||
|
||
## name | ||
#### name-代码简介: | ||
代码:name 中文释义:名字 类型:字符型 隶属于:通用代码组 | ||
#### name-要点指示: | ||
|
||
|
||
::: code-group | ||
```user [JDSALing] | ||
定义单位原始名称,可以是中文。 | ||
游戏使用它区分其它单位。 | ||
如果没有在[displayText或者语言文件设置显示名称], | ||
那么它也将作为单位的显示名称。 | ||
具体描述文件位置(内部): | ||
1.assets/translationsStrings_zh.properties | ||
格式:units.单位名称.name=写单位显示的名称 | ||
units.单位名称.description= [[填单位显示的描述]] | ||
``` | ||
```user [Tobby3600] | ||
ini文件的单独定义(外部-推荐): | ||
2.displayText: -单位的标题 | ||
displayDescription: -单位的描述 | ||
``` | ||
::: | ||
|
||
特别提醒:`displayText支持本地化`,例如如果要写一个`多语言的单位描述`,可以通过以下例子: | ||
|
||
#### name-演示例子 | ||
|
||
```ini | ||
演示例子 | ||
[core] | ||
name: Ling | ||
displayText: English Title Text | ||
displayText_zh:中文标题 | ||
|
||
displayDescription: -English Description | ||
displayDescription_zh:-中文描述 | ||
|
||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
xxxx |