添加更多代码,植入Edit.Md快捷 插件
This commit is contained in:
parent
70c7311d7c
commit
7c7cd78246
23
docs/DEV.md
23
docs/DEV.md
|
@ -102,6 +102,27 @@ Netlify会在你的PR请求下面显示你的预览页面地址。<br>
|
|||
|
||||
> [!TIP] 如果要添加你的聊天MD头像和名字,请发送Issues给我
|
||||
|
||||
#### 单位代码文档推荐格式:
|
||||
```markdown
|
||||
### xxxx
|
||||
#### xxxx-代码简介
|
||||
|
||||
?> 代码:xxxx 中文释义:xxxx 类型:xxxx 隶属于:xxxx
|
||||
|
||||
> [!TIP] xxxxxx
|
||||
|
||||
#### 视频/GIF演示---(可选)
|
||||
|
||||
#### 聊天气泡[追加内容]---(可选)
|
||||
|
||||
#### xxxx代码-演示例子
|
||||
|
||||
***ini
|
||||
xxxx
|
||||
***
|
||||
|
||||
```
|
||||
|
||||
!> 该文档可能还有很多缺陷,如果你有更好的建议,请发送Issues或者PR给我。
|
||||
|
||||
?> 编写于2023-2-25 RTS-Code-API[第一版-修订2版]
|
||||
?> 编写于2023-2-25 RTS-Code-API[第一版-第3次修订]
|
|
@ -7,6 +7,7 @@
|
|||
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
|
||||
<meta name="description" content="Description">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0">
|
||||
<script src="https://lingasdj.github.io/RW-API-Code/js/EditMd.js"></script>
|
||||
<link rel="stylesheet" href="//cdn.jsdelivr.net/npm/docsify@4/lib/themes/vue.css">
|
||||
</head>
|
||||
|
||||
|
@ -211,7 +212,15 @@
|
|||
subMaxLevel: 3,
|
||||
coverpage: true,
|
||||
name: '铁锈战争API-Code',
|
||||
|
||||
plugins: [
|
||||
EditOnGithubPlugin.create(
|
||||
'https://github.com/LingASDJ/RW-API-Code/tree/main/docs/',
|
||||
null,
|
||||
function (file) {
|
||||
return '在GitHub上合作编辑RTS-Code-API的文档'
|
||||
}
|
||||
)
|
||||
],
|
||||
tabs: {
|
||||
persist: true, // default
|
||||
sync: true, // default
|
||||
|
@ -311,8 +320,8 @@
|
|||
</script>
|
||||
<!-- Docsify v4 -->
|
||||
</script>
|
||||
<script src="//cdn.jsdelivr.net/npm/docsify@4"></script>
|
||||
|
||||
<script src="//cdn.jsdelivr.net/npm/docsify@4"></script>
|
||||
<!-- 插件引入 -->
|
||||
<script src="https://cdn.jsdelivr.net/npm/docsify-tabs@1"></script>
|
||||
<script src="https://cdn.jsdelivr.net/npm/docsify-updated/src/time-updater.js"></script>
|
||||
|
@ -324,6 +333,7 @@
|
|||
<script src="//unpkg.com/docsify-valine/dist/docsify-valine.min.js"></script>
|
||||
<script src="//cdn.jsdelivr.net/npm/docsify-chat/lib/docsify-chat.min.js"></script>
|
||||
<script src="https://unpkg.com/docsify-plugin-flexible-alerts"></script>
|
||||
|
||||
<style>
|
||||
/* 主页样式 */
|
||||
#mainx {
|
||||
|
|
8
docs/js/EditMd.js
Normal file
8
docs/js/EditMd.js
Normal file
|
@ -0,0 +1,8 @@
|
|||
/**
|
||||
* Minified by jsDelivr using Terser v3.14.1.
|
||||
* Original file: /npm/docsify-edit-on-github@1.0.3/index.js
|
||||
*
|
||||
* Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files
|
||||
*/
|
||||
!function(t){t.EditOnGithubPlugin={},t.EditOnGithubPlugin.create=function(n,i,e){function u(t){return header=['<div style="overflow: auto">','<p style="display:flex;align-content: flex-start;flex-wrap: nowrap;flex-direction: row;justify-content: center"><a style="text-decoration: underline; cursor: pointer"','onclick="EditOnGithubPlugin.onClick(event)">',t,"</a></p>","</div>"].join("")}return e=e||"Edit on github",i=i||n.replace(/\/blob\//,"/edit/"),t.EditOnGithubPlugin.editDoc=function(t,n){var e=n.route.file;if(e){var u=i+e;return window.open(u),t.preventDefault(),!1}return!0},function(n,i){if(t.EditOnGithubPlugin.onClick=function(t){EditOnGithubPlugin.editDoc(t,i)},(r=e)&&"[object Function]"==={}.toString.call(r))n.afterEach(function(t){return u(e(i.route.file))+t});else{var o=u(e);n.afterEach(function(t){return o+t})}var r}}}(window);
|
||||
//# sourceMappingURL=/sm/eef821f4877f09e27be373326100cefe923735a9bb303de51b16f9079d063a86.map
|
|
@ -127,6 +127,76 @@ maxHp:600
|
|||
[core]
|
||||
altNames:ling,tobby3600,coldmint
|
||||
```
|
||||
### class
|
||||
#### class-代码简介
|
||||
|
||||
?> 代码:class 中文释义:类 类型:字符型 隶属于:通用代码组
|
||||
|
||||
> [!ATTENTION] 无实际用处,可以删除。<br>
|
||||
Luke:保留供将来使用,默认情况下必须为CustomUnitMetadata。由于该代码无实际用途,可以忽略该代码<br>
|
||||
该代码后面什么都可以输,但没有实际用途。或许在未来会有用。
|
||||
|
||||
#### class-演示例子:
|
||||
```ini
|
||||
[core]
|
||||
class:CustomUnitMetadata
|
||||
```
|
||||
|
||||
### strictLevel
|
||||
#### strictLevel-代码简介
|
||||
|
||||
?> 代码:strictLevel 中文释义:严格级别 类型:数字固定型 隶属于:通用代码组
|
||||
|
||||
> [!TIP] 建议添加到"all-units.template"以应用于所有单位,进行统一查错。<br>
|
||||
默认值为0,忽略代码重复。设为1时如果当前单位内有重复代码,则报错。
|
||||
|
||||
#### strictLevel-演示例子:
|
||||
```all-units.template & ini
|
||||
[core]
|
||||
strictLevel:1
|
||||
```
|
||||
|
||||
### techLevel
|
||||
#### techLevel-代码简介:
|
||||
?> 代码:techLevel 中文释义:科技等级 类型:数字固定型 隶属于:通用代码组
|
||||
|
||||
> [!TIP] 早期是用于在<font color=orange>builtFrom</font>的代码,并结合科技等级使用。如果工厂的等级低于单位的目标科技等级,则会在工厂里面隐藏该单位。<br>自铁锈1.09后出现<font color=orange>overrideAndReplace</font>后,该方法则不建议使用。有关于新策略,请参考<font color=orange>overrideAndReplace</font>代码文档指南。<br>
|
||||
设置单位的科技等级,共有3个级别,1级GUI显示为绿色,2、3级显示为黄色。超过3报错。
|
||||
|
||||
#### techLevel-演示例子:
|
||||
```ini
|
||||
[core]
|
||||
techLevel:2
|
||||
```
|
||||
|
||||
### buildSpeed
|
||||
#### buildSpeed-代码简介
|
||||
|
||||
?> 代码:buildSpeed 中文释义:建造速度 类型:浮点/秒型 隶属于:通用代码组
|
||||
|
||||
> [!TIP] 建造此单位需要的时间,填秒。<br>
|
||||
以前的计算方式为:此处所填时间=1÷(60x你需要的秒)如果定义了工厂速率则需要乘以建造乘数。
|
||||
|
||||
#### buildSpeed-演示例子:
|
||||
```ini
|
||||
[core]
|
||||
buildSpeed:30s
|
||||
#或者:
|
||||
## 下方可能有误差
|
||||
buildSpeed:0.0006
|
||||
```
|
||||
|
||||
### isBio
|
||||
#### isBio-代码简介
|
||||
|
||||
?> 代码:xxxx 中文释义:xxxx 类型:xxxx 隶属于:xxxx
|
||||
|
||||
> [!TIP] xxxxxx
|
||||
|
||||
```ini
|
||||
xxxx
|
||||
```
|
||||
|
||||
## **[canBuild_Name]组**
|
||||
|
||||
## **[graphics]组**
|
||||
|
|
Loading…
Reference in New Issue
Block a user