Update DEV-0.1
This project is under development and has not yet been completed.
This commit is contained in:
parent
7583ab29b8
commit
c9afd02321
1
.gitattributes
vendored
Normal file
1
.gitattributes
vendored
Normal file
|
@ -0,0 +1 @@
|
|||
*.md
|
0
docs/.nojekyll
Normal file
0
docs/.nojekyll
Normal file
25
docs/README.md
Normal file
25
docs/README.md
Normal file
|
@ -0,0 +1,25 @@
|
|||
|
||||
<div style="display:flex;align-content: flex-start;flex-wrap: nowrap;flex-direction: row;justify-content: center;">
|
||||
<img src="/images/title.png">
|
||||
<img src="/images/logo.png">
|
||||
</div>
|
||||
|
||||
|
||||
## 铁锈战争代码表1.15-API
|
||||
|
||||
# 站点鸣谢人员:
|
||||
> * Tobby3600--追加部分遗漏代码
|
||||
> * JDSALing--提供网站编写
|
||||
> * 华夏有衣--提供Excel超级代码表
|
||||
> * Luke-Hoschke--铁锈战争开发者
|
||||
> * Cold_Mint--提供资源高速加载
|
||||
> * 王某人--提供MT基础代码高亮文件
|
||||
> * 更多致谢人员待提供……
|
||||
|
||||
# 站点简介:
|
||||
> * 本站点主要提供铁锈战争的代码API教程与指导,皆在为铁锈带来更好的Mod质量。
|
||||
> * 本站点提供--地图Mapping代码表,单位Unit代码表,调试Debug代码表。
|
||||
|
||||
# RTS-Code-API-1.15-CopyRight-2023
|
||||
|
||||
<!-- docsify serve docs -->
|
15
docs/_coverpage.md
Normal file
15
docs/_coverpage.md
Normal file
|
@ -0,0 +1,15 @@
|
|||
![logo](/images/title.png)
|
||||
|
||||
|
||||
<h1 id="anchors">RustedWarfare-API Code<small>0.1 Demo</small> </h1>
|
||||
|
||||
|
||||
<h2><p id='main'>Rusted Warfare Code API<p><h2>
|
||||
|
||||
<h3 id="anchors">学习Mod,制作Mod,创新Mod</h3>
|
||||
<h3 id="anchors">Map Code/Unit Code/Debug Code</h3>
|
||||
<h3 id="anchors">铁锈战争代码API站点--欢迎您!</h3>
|
||||
|
||||
[快速开始旅程](/README.md)
|
||||
|
||||
![](/images/back.png)
|
11
docs/_sidebar.md
Normal file
11
docs/_sidebar.md
Normal file
|
@ -0,0 +1,11 @@
|
|||
<!-- docs/_sidebar.md -->
|
||||
* [铁锈战争-1.15-Code-API](/README.md)
|
||||
* [代码表汇总](/docs.md "选择你需要的代码表,然后开始你的旅程")
|
||||
* [单位Mod代码表](unit_code/index.md "学习铁锈战争的单位代码表")
|
||||
* [1.15单位代码表-Beta版](unit_code/1.15/code.md "RTS-1.15的单位代码表")
|
||||
* [1.核心组-core](unit_code/1.15/main/core.md "1.15-核心组")
|
||||
* [2.建造组-canBuild_Name](unit_code/1.15/main/build.md "1.15-建造组")
|
||||
* [地图Mod代码表](map_code/index.md "学习铁锈战争的地图代码表")
|
||||
* [1.14地图代码表-Beta版](map_code/1.14/code.md "RTS-1.14的地图代码表")
|
||||
* [调试Mod代码表](debug_code/index.md "学习高级调试代码的代码表")
|
||||
* [1.15调试代码表-Beta版](debug_code/1.15/code.md "RTS-1.15的调试代码表")
|
1
docs/debug_code/1.15/code.md
Normal file
1
docs/debug_code/1.15/code.md
Normal file
|
@ -0,0 +1 @@
|
|||
FSFAFAFS
|
1
docs/debug_code/index.md
Normal file
1
docs/debug_code/index.md
Normal file
|
@ -0,0 +1 @@
|
|||
3112FAFAWSAWF
|
13
docs/docs.md
Normal file
13
docs/docs.md
Normal file
|
@ -0,0 +1,13 @@
|
|||
# 代码表汇总
|
||||
|
||||
---
|
||||
|
||||
在这里你可以看见三种代码表,它们分别是:
|
||||
|
||||
---
|
||||
|
||||
## [单位Mod代码表](unit_code/index.md "学习铁锈战争的单位代码表")
|
||||
|
||||
## [地图Mod代码表](map_code/index.md "学习铁锈战争的地图代码表")
|
||||
|
||||
## [调试Mod代码表](debug_code/index.md "学习高级调试代码的代码表")
|
BIN
docs/images/back.png
Normal file
BIN
docs/images/back.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 966 KiB |
BIN
docs/images/logo.png
Normal file
BIN
docs/images/logo.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 34 KiB |
BIN
docs/images/title.png
Normal file
BIN
docs/images/title.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 102 KiB |
322
docs/index.html
Normal file
322
docs/index.html
Normal file
|
@ -0,0 +1,322 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title>RW-Code-API</title>
|
||||
<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">
|
||||
<link rel="stylesheet" href="//cdn.jsdelivr.net/npm/docsify@4/lib/themes/vue.css">
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<div data-app id="main">
|
||||
<noscript>
|
||||
<div class="nojs">
|
||||
<div class="nojs-content">
|
||||
<h1>⚠️ JavaScript-JS已被禁用</h1>
|
||||
<p>
|
||||
很抱歉,当你看见这个界面,代表你的浏览器可能尚未启用JS,因此我们无法构建<font color="#00cc00">[铁锈战争API-Code]</font>页面。
|
||||
</p>
|
||||
<p>
|
||||
若您确信自己已开启JS技术,那么可能是您的浏览器不支持;请使用我们为你推荐的浏览器进行使用。
|
||||
</p>
|
||||
<hr />
|
||||
<a class="nojs-btn" href="https://viayoo.com/zh-cn/" target="_blank" rel="noopener">Via-大道至简 (手机端)</a>
|
||||
<a class="nojs-btn" href="https://www.google.cn/chrome/" target="_blank" rel="noopener">Google Chrome
|
||||
(PC端)</a>
|
||||
<br /><br />
|
||||
<p>
|
||||
<h1>RTS-API-Code-2023</h1>
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
</noscript>
|
||||
<style>
|
||||
/* JS报错页面优化升级 */
|
||||
.nojs {
|
||||
-webkit-text-size-adjust: 100%;
|
||||
font-size: 16px;
|
||||
text-rendering: optimizeLegibility;
|
||||
-webkit-font-smoothing: antialiased;
|
||||
-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
|
||||
box-sizing: inherit;
|
||||
padding: 0;
|
||||
margin: 0;
|
||||
position: fixed;
|
||||
top: 0;
|
||||
left: 0;
|
||||
height: 100%;
|
||||
width: 100%;
|
||||
z-index: 9999999999;
|
||||
background: repeating-linear-gradient(-45deg,
|
||||
#d7ba01,
|
||||
#d7ba01 90px,
|
||||
#1d0d0d 0,
|
||||
#1d0d0d 180px);
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
.nojs del {
|
||||
padding: 4px 8px;
|
||||
background: #1d1d1d;
|
||||
background: repeating-linear-gradient(-45deg,
|
||||
#e6c700,
|
||||
#e6c700 45px,
|
||||
rgba(0, 0, 0, 0.5) 0,
|
||||
rgba(0, 0, 0, 0.5) 30px);
|
||||
color: #cbcbcb;
|
||||
border-radius: 4px;
|
||||
}
|
||||
|
||||
.nojs-content {
|
||||
-webkit-text-size-adjust: 100%;
|
||||
text-rendering: optimizeLegibility;
|
||||
-webkit-font-smoothing: antialiased;
|
||||
-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
|
||||
box-sizing: inherit;
|
||||
margin: 0;
|
||||
vertical-align: middle;
|
||||
width: 70%;
|
||||
font-weight: 700;
|
||||
font-size: 18px;
|
||||
font-family: -apple-system, Noto Sans SC, BlinkMacSystemFont,
|
||||
Segoe UI, Microsoft YaHei UI, Microsoft Yahei, 微软雅黑,
|
||||
Helvetica, Arial, sans-serif;
|
||||
padding: 48px 64px;
|
||||
word-break: break-word;
|
||||
text-align: center;
|
||||
line-height: 2;
|
||||
border-radius: 16px;
|
||||
background: rgba(45, 42, 43, 0.8);
|
||||
backdrop-filter: blur(16px);
|
||||
text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
|
||||
border: 4px solid #0d0d0d;
|
||||
color: #beb9b9;
|
||||
box-shadow: 0 0 2rem rgba(0, 0, 0, 0.5),
|
||||
inset 0 0 2rem rgba(0, 0, 0, 0.5);
|
||||
}
|
||||
|
||||
.nojs .nojs-btn {
|
||||
-webkit-text-size-adjust: 100%;
|
||||
text-rendering: optimizeLegibility;
|
||||
-webkit-font-smoothing: antialiased;
|
||||
-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
|
||||
font-weight: 700;
|
||||
word-break: break-word;
|
||||
line-height: 2;
|
||||
text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
|
||||
box-sizing: inherit;
|
||||
outline-width: 0;
|
||||
display: inline-block;
|
||||
border: 2px solid #000;
|
||||
padding: 8px 24px;
|
||||
margin: 0 8px;
|
||||
text-decoration: none;
|
||||
color: #fff;
|
||||
font-family: sans-serif;
|
||||
font-size: 14px;
|
||||
cursor: pointer;
|
||||
text-align: center;
|
||||
transition: background 50ms ease-out, transform 0.15s ease;
|
||||
background: #368dff;
|
||||
border-radius: 24px;
|
||||
transform: scale(1.05);
|
||||
}
|
||||
|
||||
/* 公用样式 */
|
||||
.nojs .nojs-btn:hover {
|
||||
background: #0366e8;
|
||||
transform: scale(1.05);
|
||||
}
|
||||
|
||||
.nojs .nojs-btn:focus {
|
||||
outline: 1px solid #fff;
|
||||
outline-offset: -4px;
|
||||
}
|
||||
|
||||
.nojs .nojs-btn:active {
|
||||
transform: scale(0.99);
|
||||
}
|
||||
|
||||
.nojs del {
|
||||
padding: 4px 8px;
|
||||
background: #1d1d1d;
|
||||
background: repeating-linear-gradient(-45deg,
|
||||
#995d22,
|
||||
#995d22 15px,
|
||||
rgba(0, 0, 0, 0.5) 0,
|
||||
rgba(0, 0, 0, 0.5) 30px);
|
||||
color: #cbcbcb;
|
||||
border-radius: 4px;
|
||||
}
|
||||
|
||||
.nojs .nojs-link {
|
||||
background: #0d47a1;
|
||||
color: #fff;
|
||||
border: 2px solid #093777;
|
||||
padding: 4px 6px;
|
||||
text-decoration: none;
|
||||
border-radius: 4px;
|
||||
}
|
||||
|
||||
.nojs .nojs-btn:focus,
|
||||
.nojs .nojs-link:hover {
|
||||
background: #0f5ad6;
|
||||
}
|
||||
|
||||
.nojs .nojs-link:active {
|
||||
background: #0d4fba;
|
||||
}
|
||||
</style>
|
||||
</div>
|
||||
|
||||
<script>
|
||||
window.$docsify = {
|
||||
el: '#main',
|
||||
loadSidebar: true,
|
||||
|
||||
coverpage: true,
|
||||
name: '铁锈战争API-Code',
|
||||
|
||||
|
||||
scrollToTop: {
|
||||
auto: true,
|
||||
text: 'Top↑',
|
||||
right: 15,
|
||||
bottom: 15,
|
||||
offset: 500
|
||||
},
|
||||
// 完整配置参数
|
||||
search: {
|
||||
maxAge: 86400000, // 过期时间,单位毫秒,默认一天
|
||||
paths: 'auto', // or 'auto'
|
||||
|
||||
// 支持本地化
|
||||
placeholder: {
|
||||
'/': '搜索你需要的!'
|
||||
},
|
||||
|
||||
// 支持本地化
|
||||
noData: {
|
||||
'/': '未找到结果……'
|
||||
},
|
||||
|
||||
// 搜索标题的最大层级, 1 - 6
|
||||
depth: 6,
|
||||
|
||||
hideOtherSidebarContent: true, // 是否隐藏其他侧边栏内容
|
||||
|
||||
// 避免搜索索引冲突
|
||||
// 同一域下的多个网站之间
|
||||
//namespace: 'website-1',
|
||||
|
||||
// 使用不同的索引作为路径前缀(namespaces)
|
||||
// 注意:仅适用于 paths: 'auto' 模式
|
||||
//
|
||||
// 初始化索引时,我们从侧边栏查找第一个路径
|
||||
// 如果它与列表中的前缀匹配,我们将切换到相应的索引
|
||||
pathNamespaces: ['/zh-cn', '/ru-ru', '/ru-ru/v1'],
|
||||
|
||||
// 您可以提供一个正则表达式来匹配前缀。在这种情况下,
|
||||
// 匹配到的字符串将被用来识别索引
|
||||
pathNamespaces: /^(\/(zh-cn|ru-ru))?(\/(v1|v2))?/
|
||||
}
|
||||
}
|
||||
</script>
|
||||
<!-- Docsify v4 -->
|
||||
</script>
|
||||
<script src="//cdn.jsdelivr.net/npm/docsify@4"></script>
|
||||
|
||||
<!-- 插件引入 -->
|
||||
<script src="//cdn.jsdelivr.net/npm/docsify/lib/plugins/search.min.js"></script>
|
||||
<script src="//unpkg.com/docsify-scroll-to-top/dist/docsify-scroll-to-top.min.js"></script>
|
||||
<script src="/js/RW-ini-1.15.js"></script>
|
||||
<script src="/js/docsify-copy-code.min.js"></script>
|
||||
<style>
|
||||
/* 主页样式 */
|
||||
#main {
|
||||
color: #0080ff;
|
||||
}
|
||||
|
||||
#anchors {
|
||||
color: #ffffff;
|
||||
}
|
||||
|
||||
/* 公用样式 */
|
||||
.token.selector {
|
||||
color: #42b983;
|
||||
}
|
||||
|
||||
.token.punctuation {
|
||||
color: #42b983;
|
||||
}
|
||||
|
||||
.search .matching-post:hover {
|
||||
border-bottom: 1px solid #eee;
|
||||
background:rgba(163, 230, 40, 0.5);
|
||||
border-radius: 12px;
|
||||
}
|
||||
|
||||
.markdown-section code,
|
||||
.markdown-section pre {
|
||||
border-radius: 21px
|
||||
}
|
||||
|
||||
.sidebar ul li.active>a {
|
||||
border-right: 2px solid;
|
||||
color: #42b983;
|
||||
color: #42b983;
|
||||
font-weight: 600;
|
||||
background: azure;
|
||||
border-radius: 5px;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
section.cover.has-mask .mask {
|
||||
background-color: #070707;
|
||||
opacity: .75;
|
||||
position: absolute;
|
||||
top: 0;
|
||||
bottom: 0;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.sidebar ul li a:hover {
|
||||
text-decoration: #42b983;
|
||||
}
|
||||
|
||||
.markdown-section a {
|
||||
color: #42b983;
|
||||
color: var(--theme-color, #42b983);
|
||||
font-weight: 600;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
.markdown-section a:hover {
|
||||
color: #075632;
|
||||
color: var(--theme-color, #075632);
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
.markdown-section output:after,
|
||||
.markdown-section pre:after {
|
||||
color: #42b983;
|
||||
font-size: .6rem;
|
||||
font-weight: 600;
|
||||
height: 15px;
|
||||
line-height: 15px;
|
||||
padding: 5px 10px 0;
|
||||
position: absolute;
|
||||
right: 0;
|
||||
text-align: right;
|
||||
top: 0;
|
||||
content: attr(data-lang);
|
||||
}
|
||||
</style>
|
||||
</body>
|
||||
|
||||
</html>
|
42
docs/js/RW-ini-1.15.js
Normal file
42
docs/js/RW-ini-1.15.js
Normal file
|
@ -0,0 +1,42 @@
|
|||
Prism.languages.ini = {
|
||||
|
||||
/**
|
||||
* The component mimics the behavior of the Win32 API parser.
|
||||
*
|
||||
* @see {@link https://github.com/PrismJS/prism/issues/2775#issuecomment-787477723}
|
||||
*/
|
||||
|
||||
'comment': {
|
||||
pattern: /(^[ \f\t\v]*)[#;][^\n\r]*/m,
|
||||
lookbehind: true
|
||||
},
|
||||
'section': {
|
||||
pattern: /(^[ \f\t\v]*)\[[^\n\r\]]*\]?/m,
|
||||
lookbehind: true,
|
||||
inside: {
|
||||
'section-name': {
|
||||
pattern: /(^\[[ \f\t\v]*)[^ \f\t\v\]]+(?:[ \f\t\v]+[^ \f\t\v\]]+)*/,
|
||||
lookbehind: true,
|
||||
alias: 'selector'
|
||||
},
|
||||
'punctuation': /\[|\]/
|
||||
}
|
||||
},
|
||||
'key': {
|
||||
pattern: /(^[ \f\t\v]*)[^ \f\n\r\t\v=]+(?:[ \f\t\v]+[^ \f\n\r\t\v=]+)*(?=[ \f\t\v]*:)/m,
|
||||
lookbehind: true,
|
||||
alias: 'attr-name'
|
||||
},
|
||||
'value': {
|
||||
pattern: /(=[ \f\t\v]*)[^ \f\n\r\t\v]+(?:[ \f\t\v]+[^ \f\n\r\t\v]+)*/,
|
||||
lookbehind: true,
|
||||
alias: 'attr-value',
|
||||
inside: {
|
||||
'inner-value': {
|
||||
pattern: /^("|').+(?=\1$)/,
|
||||
lookbehind: true
|
||||
}
|
||||
}
|
||||
},
|
||||
'punctuation': /=/
|
||||
};
|
9
docs/js/docsify-copy-code.min.js
vendored
Normal file
9
docs/js/docsify-copy-code.min.js
vendored
Normal file
|
@ -0,0 +1,9 @@
|
|||
/*!
|
||||
* docsify-copy-code
|
||||
* v2.1.1
|
||||
* https://github.com/jperasmus/docsify-copy-code
|
||||
* (c) 2017-2020 JP Erasmus <jperasmus11@gmail.com>
|
||||
* MIT license
|
||||
*/
|
||||
!function(){"use strict";function s(o){return(s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o})(o)}!function(o,e){void 0===e&&(e={});var t=e.insertAt;if(o&&"undefined"!=typeof document){var n=document.head||document.getElementsByTagName("head")[0],c=document.createElement("style");c.type="text/css","top"===t&&n.firstChild?n.insertBefore(c,n.firstChild):n.appendChild(c),c.styleSheet?c.styleSheet.cssText=o:c.appendChild(document.createTextNode(o))}}(".docsify-copy-code-button,.docsify-copy-code-button span{cursor:pointer;transition:all .25s ease}.docsify-copy-code-button{position:absolute;z-index:1;top:0;right:0;overflow:visible;padding:.65em .8em;border:0;border-radius:0;outline:0;font-size:1em;background:grey;background:var(--theme-color,grey);color:#fff;opacity:0}.docsify-copy-code-button span{border-radius:3px;background:inherit;pointer-events:none}.docsify-copy-code-button .error,.docsify-copy-code-button .success{position:absolute;z-index:-100;top:50%;right:0;padding:.5em .65em;font-size:.825em;opacity:0;-webkit-transform:translateY(-50%);transform:translateY(-50%)}.docsify-copy-code-button.error .error,.docsify-copy-code-button.success .success{right:100%;opacity:1;-webkit-transform:translate(-115%,-50%);transform:translate(-115%,-50%)}.docsify-copy-code-button:focus,pre:hover .docsify-copy-code-button{opacity:1}"),document.querySelector('link[href*="docsify-copy-code"]')&&console.warn("[Deprecation] Link to external docsify-copy-code stylesheet is no longer necessary."),window.DocsifyCopyCodePlugin={init:function(){return function(o,e){o.ready(function(){console.warn("[Deprecation] Manually initializing docsify-copy-code using window.DocsifyCopyCodePlugin.init() is no longer necessary.")})}}},window.$docsify=window.$docsify||{},window.$docsify.plugins=[function(o,r){o.doneEach(function(){var o=Array.apply(null,document.querySelectorAll("pre[data-lang]")),c={buttonText:"复制到剪贴板",errorText:"出现错误",successText:"已复制到剪贴板"};r.config.copyCode&&Object.keys(c).forEach(function(t){var n=r.config.copyCode[t];"string"==typeof n?c[t]=n:"object"===s(n)&&Object.keys(n).some(function(o){var e=-1<location.href.indexOf(o);return c[t]=e?n[o]:c[t],e})});var e=['<button class="docsify-copy-code-button">','<span class="label">'.concat(c.buttonText,"</span>"),'<span class="error">'.concat(c.errorText,"</span>"),'<span class="success">'.concat(c.successText,"</span>"),"</button>"].join("");o.forEach(function(o){o.insertAdjacentHTML("beforeend",e)})}),o.mounted(function(){document.querySelector(".content").addEventListener("click",function(o){if(o.target.classList.contains("docsify-copy-code-button")){var e="BUTTON"===o.target.tagName?o.target:o.target.parentNode,t=document.createRange(),n=e.parentNode.querySelector("code"),c=window.getSelection();t.selectNode(n),c.removeAllRanges(),c.addRange(t);try{document.execCommand("copy")&&(e.classList.add("success"),setTimeout(function(){e.classList.remove("success")},1e3))}catch(o){console.error("docsify-copy-code: ".concat(o)),e.classList.add("error"),setTimeout(function(){e.classList.remove("error")},1e3)}"function"==typeof(c=window.getSelection()).removeRange?c.removeRange(t):"function"==typeof c.removeAllRanges&&c.removeAllRanges()}})})}].concat(window.$docsify.plugins||[])}();
|
||||
//# sourceMappingURL=docsify-copy-code.min.js.map
|
8
docs/map_code/1.14/code.md
Normal file
8
docs/map_code/1.14/code.md
Normal file
|
@ -0,0 +1,8 @@
|
|||
dafasfSSFASF
|
||||
|
||||
# 遇到困难睡大觉
|
||||
遇到困难睡大觉
|
||||
|
||||
```ini
|
||||
卡了
|
||||
```
|
1
docs/map_code/index.md
Normal file
1
docs/map_code/index.md
Normal file
|
@ -0,0 +1 @@
|
|||
132
|
5
docs/unit_code/1.15/code.md
Normal file
5
docs/unit_code/1.15/code.md
Normal file
|
@ -0,0 +1,5 @@
|
|||
!> 本代码表来自JDSALing经过由华夏有衣和Tobby3600两个代码表的综合制作,如有遗漏,请反馈给我。
|
||||
|
||||
## 总体目录:
|
||||
### [1.核心组-core](unit_code/1.15/main/core.md "1.15-核心组")
|
||||
### [2.建造组-canBuild_Name](unit_code/1.15/main/build.md "1.15-建造组")
|
1
docs/unit_code/1.15/main/build.md
Normal file
1
docs/unit_code/1.15/main/build.md
Normal file
|
@ -0,0 +1 @@
|
|||
# 1.15-代码表-建造组
|
33
docs/unit_code/1.15/main/core.md
Normal file
33
docs/unit_code/1.15/main/core.md
Normal file
|
@ -0,0 +1,33 @@
|
|||
|
||||
# 1.15-代码表-核心组
|
||||
|
||||
!> 以下的代码为通用代码,多半是必要的代码,如果不包括这些,可能在绝大多数情况下导致错误。
|
||||
|
||||
|代码:name|代码翻译:名字|值类型:String|格式实列 name:Text|隶属于:通用代码组
|
||||
|-|-|-|-|-
|
||||
|
||||
!> name代码的要点指示:
|
||||
定义单位原始名称,可以是中文。
|
||||
游戏使用它区分其它单位。如果没有在displayText或者语言文件设置显示名称,那么它也将作为单位的显示名称。
|
||||
<br>
|
||||
具体描述文件位置(内部):
|
||||
1.assets/translationsStrings_zh.properties格式:units.单位名称.name=写单位显示的名称
|
||||
units.单位名称.description= [[填单位显示的描述]]
|
||||
<br>
|
||||
ini文件的单独定义(外部-推荐):
|
||||
2.displayText: 单位的标题
|
||||
displayDescription: -单位的描述
|
||||
<br>
|
||||
特别提醒:displayText支持本地化,例如如果要写一个多语言的单位描述,可以通过以下例子:
|
||||
```ini
|
||||
### 演示例子
|
||||
[core]
|
||||
name: Ling
|
||||
displayText: English Title Text
|
||||
displayText_zh:中文标题
|
||||
|
||||
displayDescription: -English Description
|
||||
displayDescription_zh:-中文描述
|
||||
|
||||
```
|
||||
|
1
docs/unit_code/index.md
Normal file
1
docs/unit_code/index.md
Normal file
|
@ -0,0 +1 @@
|
|||
## [1.15单位代码表-Beta版](unit_code/1.15/code.md "RTS-1.15的单位代码表")
|
5
package.json
Normal file
5
package.json
Normal file
|
@ -0,0 +1,5 @@
|
|||
{
|
||||
"dependencies": {
|
||||
"prism-liquibase": "^0.0.4"
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user