Deploying to gh-pages from @ LingASDJ/RW-API-Code@bda1987836 🚀
This commit is contained in:
parent
daff3fe611
commit
df0efcd643
16
api-dev.html
16
api-dev.html
File diff suppressed because one or more lines are too long
|
@ -1,4 +1,4 @@
|
|||
import{_ as e,c,z as s,a,E as l,B as t,O as o,G as p,o as i}from"./chunks/framework.621e5595.js";const K=JSON.parse('{"title":"","description":"","frontmatter":{"outline":"deep"},"headers":[],"relativePath":"api-dev.md","filePath":"api-dev.md"}'),r={name:"api-dev.md"},d=s("div",{style:{display:"flex","align-content":"flex-start","flex-wrap":"nowrap","flex-direction":"row","justify-content":"center"}},[s("h1",null,"RTS-Code-API---开发规范")],-1),u=s("div",{style:{display:"flex","align-content":"flex-start","flex-wrap":"nowrap","flex-direction":"row","justify-content":"center"}},[s("img",{src:"https://rwapi-code.netlify.app/images/title.png"})],-1),h={class:"tip custom-block"},C=s("p",{class:"custom-block-title"},"TIP",-1),_=s("br",null,null,-1),A=s("br",null,null,-1),b=s("br",null,null,-1),m=s("blockquote",null,[s("p",null,[a("1.确保代码的解释通俗易懂,能让新手迅速入门"),s("br"),a("2.编写的代码应该以以下格式进行:")]),s("h3",null,"代码的格式编写规范:"),a("1.代码的英文名和附属信息(参考站点已添加的代码例子)"),s("br")],-1),y=s("p",null,[a("2.代码的简介"),s("br"),a(" 3.代码的要点指示"),s("br"),a(" 4.代码的演示例子"),s("br"),a(" 5.代码的扩展例子(可选)"),s("br"),a(" 6.GIF演示/视频演示(可选)")],-1),x={class:"tip custom-block"},k=s("p",{class:"custom-block-title"},"TIP",-1),D=s("br",null,null,-1),f={class:"warning custom-block"},g=s("p",{class:"custom-block-title"},"WARNING",-1),v=s("div",{class:"warning custom-block"},[s("p",{class:"custom-block-title"},"WARNING"),s("p",null,"有一些代码或许有一些新的写法,或该写法可能已经废弃,如果遇到这些代码,编写者需要注明,并提供推荐代码。")],-1),P={class:"info custom-block"},T=s("p",{class:"custom-block-title"},"INFO",-1),w=o(`<h4 id="其他说明" tabindex="-1">其他说明: <a class="header-anchor" href="#其他说明" aria-label="Permalink to "其他说明:""></a></h4><p>有关于MarkDown的其他书写格式,请参考MD书写规范<br><a href="https://docs.github.com/zh/get-started/writing-on-github/getting-started-with-writing-and-formatting-on-github/basic-writing-and-formatting-syntax" target="_blank" rel="noreferrer">MD文档参考--点我立刻学习</a></p><h4 id="附加说明" tabindex="-1">附加说明: <a class="header-anchor" href="#附加说明" aria-label="Permalink to "附加说明:""></a></h4><div class="language-txt"><button title="Copy Code" class="copy"></button><span class="lang">txt</span><pre class="shiki material-theme-palenight"><code><span class="line"><span style="color:#A6ACCD;">由于插件众多,为避免MD格式冲突,换行建议最好使用<br>进行换行,</span></span>
|
||||
import{_ as e,c,z as s,a,E as n,B as t,O as o,G as p,o as i}from"./chunks/framework.621e5595.js";const K=JSON.parse('{"title":"","description":"","frontmatter":{"outline":"deep"},"headers":[],"relativePath":"api-dev.md","filePath":"api-dev.md"}'),r={name:"api-dev.md"},d=s("div",{style:{display:"flex","align-content":"flex-start","flex-wrap":"nowrap","flex-direction":"row","justify-content":"center"}},[s("h1",null,"RTS-Code-API---开发规范")],-1),u=s("div",{style:{display:"flex","align-content":"flex-start","flex-wrap":"nowrap","flex-direction":"row","justify-content":"center"}},[s("img",{src:"https://rwapi-code.netlify.app/images/title.png"})],-1),h={class:"tip custom-block"},_=s("p",{class:"custom-block-title"},"TIP",-1),C=s("br",null,null,-1),b=s("br",null,null,-1),A=s("br",null,null,-1),m=s("blockquote",null,[s("p",null,[a("1.确保代码的解释通俗易懂,能让新手迅速入门"),s("br"),a("2.编写的代码应该以以下格式进行:")]),s("h3",null,"代码的格式编写规范:"),a("1.代码的英文名和附属信息(参考站点已添加的代码例子)"),s("br")],-1),y=s("p",null,[a("2.代码的简介"),s("br"),a(" 3.代码的要点指示"),s("br"),a(" 4.代码的演示例子"),s("br"),a(" 5.代码的扩展例子(可选)"),s("br"),a(" 6.GIF演示/视频演示(可选)")],-1),k={class:"tip custom-block"},f=s("p",{class:"custom-block-title"},"TIP",-1),D=s("br",null,null,-1),g={class:"warning custom-block"},v=s("p",{class:"custom-block-title"},"WARNING",-1),x=s("div",{class:"warning custom-block"},[s("p",{class:"custom-block-title"},"WARNING"),s("p",null,"有一些代码或许有一些新的写法,或该写法可能已经废弃,如果遇到这些代码,编写者需要注明,并提供推荐代码。")],-1),P={class:"info custom-block"},T=s("p",{class:"custom-block-title"},"INFO",-1),w=o(`<h4 id="其他说明" tabindex="-1">其他说明: <a class="header-anchor" href="#其他说明" aria-label="Permalink to "其他说明:""></a></h4><p>有关于MarkDown的其他书写格式,请参考MD书写规范<br><a href="https://docs.github.com/zh/get-started/writing-on-github/getting-started-with-writing-and-formatting-on-github/basic-writing-and-formatting-syntax" target="_blank" rel="noreferrer">MD文档参考--点我立刻学习</a></p><h4 id="附加说明" tabindex="-1">附加说明: <a class="header-anchor" href="#附加说明" aria-label="Permalink to "附加说明:""></a></h4><div class="language-txt"><button title="Copy Code" class="copy"></button><span class="lang">txt</span><pre class="shiki material-theme-palenight"><code><span class="line"><span style="color:#A6ACCD;">由于插件众多,为避免MD格式冲突,换行建议最好使用<br>进行换行,</span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;">如果要在一些扩展格式渲染演示,请使用<font>标签,</span></span></code></pre></div><h4 id="部署策略" tabindex="-1">部署策略: <a class="header-anchor" href="#部署策略" aria-label="Permalink to "部署策略:""></a></h4><div class="info custom-block"><p class="custom-block-title">INFO</p><p>1.本地部署</p></div>`,6),I={class:"tip custom-block"},N=s("p",{class:"custom-block-title"},"TIP",-1),q=s("br",null,null,-1),R=s("blockquote",null,[s("p",null,[a("npm i docsify-cli -g"),s("br"),a("docsify serve docs")])],-1),S=s("div",{class:"info custom-block"},[s("p",{class:"custom-block-title"},"INFO"),s("p",null,"2.Netlify部署")],-1),M={class:"tip custom-block"},G=s("p",{class:"custom-block-title"},"TIP",-1),V=s("br",null,null,-1),F=s("br",null,null,-1),B=s("br",null,null,-1),E=o(`<h4 id="实际格式演示" tabindex="-1">实际格式演示: <a class="header-anchor" href="#实际格式演示" aria-label="Permalink to "实际格式演示:""></a></h4><div class="tip custom-block"><p class="custom-block-title">TIP</p><p>注意文本</p></div><div class="info custom-block"><p class="custom-block-title">INFO</p><p>信息文本</p></div><div class="tip custom-block"><p class="custom-block-title">TIP</p><p>小提示文本</p></div><div class="warning custom-block"><p class="custom-block-title">WARNING</p><p>警告文本</p></div><div class="danger custom-block"><p class="custom-block-title">DANGER</p><p>危险文本</p></div><details class="details custom-block"><summary>Details</summary><p>这是一个折叠框</p></details><h4 id="md扩展格式" tabindex="-1">MD扩展格式: <a class="header-anchor" href="#md扩展格式" aria-label="Permalink to "MD扩展格式:""></a></h4><div class="language-"><button title="Copy Code" class="copy"></button><span class="lang"></span><pre class="shiki material-theme-palenight"><code><span class="line"><span style="color:#A6ACCD;">::: info</span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;">信息文本</span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;">:::</span></span>
|
||||
|
@ -24,12 +24,6 @@ import{_ as e,c,z as s,a,E as l,B as t,O as o,G as p,o as i}from"./chunks/framew
|
|||
<span class="line"><span style="color:#A6ACCD;">### xxxx</span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;">#### xxxx-代码简介</span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;"></span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;">?> 代码:xxxx 中文释义:xxxx 类型:xxxx 隶属于:xxxx</span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;"></span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;">::: tip</span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;">xxxxxx</span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;">:::</span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;"></span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;">#### 视频/GIF演示---(可选)</span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;"></span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;">#### xxxx代码-演示例子</span></span>
|
||||
|
@ -38,4 +32,4 @@ import{_ as e,c,z as s,a,E as l,B as t,O as o,G as p,o as i}from"./chunks/framew
|
|||
<span class="line"><span style="color:#A6ACCD;">xxxx</span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;">***</span></span></code></pre></div><h4 id="表格推荐格式" tabindex="-1">表格推荐格式 <a class="header-anchor" href="#表格推荐格式" aria-label="Permalink to "表格推荐格式""></a></h4><h3 id="代码演示" tabindex="-1">代码演示: <a class="header-anchor" href="#代码演示" aria-label="Permalink to "代码演示:""></a></h3><table><thead><tr><th>A</th><th>B</th><th>C</th></tr></thead><tbody><tr><td>1</td><td>2</td><td>3</td></tr></tbody></table><h3 id="代码例子" tabindex="-1">代码例子: <a class="header-anchor" href="#代码例子" aria-label="Permalink to "代码例子:""></a></h3><div class="language-markdown"><button title="Copy Code" class="copy"></button><span class="lang">markdown</span><pre class="shiki material-theme-palenight"><code><span class="line"><span style="color:#A6ACCD;">|A|B|C| </span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;">|-|-|-</span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;">|1|2|3|</span></span></code></pre></div><p>如果你仍然不会Markdown表格写法,这里给你一个链接:</p><h3><a href="https://tableconvert.com/zh-cn/markdown-to-markdown" target="_blank">TableConvert-MD-点击进入</a></h3><h3 id="扩展写法-高级" tabindex="-1">扩展写法(高级) <a class="header-anchor" href="#扩展写法-高级" aria-label="Permalink to "扩展写法(高级)""></a></h3><p>有一些时候,我们可能需要在已经标记的后面再添加东西, 但Markdown解析方式在标签后面再有一个标签就不会识别了。<br> 所以这里我们必须直接使用原生Html的代码, 通过浏览器的检查元素,你应该能迅速找到模块框架, 将它的模块元素区域复制下来,并调用。</p><div class="tip custom-block"><p class="custom-block-title">TIP</p><p>该文档可能还有很多缺陷,如果你有更好的建议,请发送Issues或者PR给我。</p></div><div class="tip custom-block"><p class="custom-block-title">TIP</p><p>编写于2023-5-9 RTS-Code-API[第3版-第1次修订]</p></div>`,20);function O($,j,z,H,W,J){const n=p("font");return i(),c("div",null,[d,u,s("div",h,[C,s("p",null,[a("0.如果你确定你想"),l(n,{color:"orange"},{default:t(()=>[a("帮忙开发此站点")]),_:1}),a(","),_,a(" 就可以点击右上角的Github按钮,"),l(n,{color:"orange"},{default:t(()=>[a("Clone我们的库")]),_:1}),a(","),A,a(" 编写代码并进行PR申请,我非常感谢你的帮忙,感谢各位的支持与帮助。"),b]),m,y]),s("div",x,[k,s("p",null,[a("使用外部资源时,请使用支持HTTPS协议的资源地址传输。"),D,a(" 否则在"),l(n,{color:"orange"},{default:t(()=>[a("Google Chrome等一系列以CEF的内核")]),_:1}),a("上会因为强制替换HTTPS导致资源无法打开。")])]),s("div",f,[g,s("p",null,[a("不能使用过于高深的说明,严禁出现谜语人话语,无用话语,任何玩梗, 夹带私货等一系列与本站无关的东西,违者将不能通过"),l(n,{color:"green"},{default:t(()=>[a("PR审核")]),_:1})])]),v,s("div",P,[T,s("p",null,[a("为了更好的方便一起编写站点的贡献者,本站点提供了以下的"),l(n,{color:"green"},{default:t(()=>[a("扩展MD格式供各位书写")]),_:1})])]),w,s("div",I,[N,s("p",null,[a("如果要本地测试,请确保设备有"),l(n,{color:"green"},{default:t(()=>[a("Node.js")]),_:1}),a(" 并在项目根目录使用以下命令:"),q]),R]),S,s("div",M,[G,s("p",null,[a("如果你已经发送了PR请求,可以通过我的Netlify预览站点进行预览,"),V,a(" Netlify会在你的PR请求下面显示你的预览页面地址。"),F,a(" 点击"),s("b",null,[l(n,{color:"orange"},{default:t(()=>[a("😎 Deploy Preview后面的链接")]),_:1})]),a("即可看见效果"),B,a(" 由于某些原因,TX会拦截Netlify的站点,请使用浏览器预览。")])]),E])}const L=e(r,[["render",O]]);export{K as __pageData,L as default};
|
||||
<span class="line"><span style="color:#A6ACCD;">|1|2|3|</span></span></code></pre></div><p>如果你仍然不会Markdown表格写法,这里给你一个链接:</p><h3><a href="https://tableconvert.com/zh-cn/markdown-to-markdown" target="_blank">TableConvert-MD-点击进入</a></h3><h3 id="扩展写法-高级" tabindex="-1">扩展写法(高级) <a class="header-anchor" href="#扩展写法-高级" aria-label="Permalink to "扩展写法(高级)""></a></h3><p>有一些时候,我们可能需要在已经标记的后面再添加东西, 但Markdown解析方式在标签后面再有一个标签就不会识别了。<br> 所以这里我们必须直接使用原生Html的代码, 通过浏览器的检查元素,你应该能迅速找到模块框架, 将它的模块元素区域复制下来,并调用。</p><div class="tip custom-block"><p class="custom-block-title">TIP</p><p>该文档可能还有很多缺陷,如果你有更好的建议,请发送Issues或者PR给我。</p></div><div class="tip custom-block"><p class="custom-block-title">TIP</p><p>编写于2023-5-9 RTS-Code-API[第3版-第2次修订]</p></div>`,20);function O($,j,z,H,W,J){const l=p("font");return i(),c("div",null,[d,u,s("div",h,[_,s("p",null,[a("0.如果你确定你想"),n(l,{color:"orange"},{default:t(()=>[a("帮忙开发此站点")]),_:1}),a(","),C,a(" 就可以点击右上角的Github按钮,"),n(l,{color:"orange"},{default:t(()=>[a("Clone我们的库")]),_:1}),a(","),b,a(" 编写代码并进行PR申请,我非常感谢你的帮忙,感谢各位的支持与帮助。"),A]),m,y]),s("div",k,[f,s("p",null,[a("使用外部资源时,请使用支持HTTPS协议的资源地址传输。"),D,a(" 否则在"),n(l,{color:"orange"},{default:t(()=>[a("Google Chrome等一系列以CEF的内核")]),_:1}),a("上会因为强制替换HTTPS导致资源无法打开。")])]),s("div",g,[v,s("p",null,[a("不能使用过于高深的说明,严禁出现谜语人话语,无用话语,任何玩梗, 夹带私货等一系列与本站无关的东西,违者将不能通过"),n(l,{color:"green"},{default:t(()=>[a("PR审核")]),_:1})])]),x,s("div",P,[T,s("p",null,[a("为了更好的方便一起编写站点的贡献者,本站点提供了以下的"),n(l,{color:"green"},{default:t(()=>[a("扩展MD格式供各位书写")]),_:1})])]),w,s("div",I,[N,s("p",null,[a("如果要本地测试,请确保设备有"),n(l,{color:"green"},{default:t(()=>[a("Node.js")]),_:1}),a(" 并在项目根目录使用以下命令:"),q]),R]),S,s("div",M,[G,s("p",null,[a("如果你已经发送了PR请求,可以通过我的Netlify预览站点进行预览,"),V,a(" Netlify会在你的PR请求下面显示你的预览页面地址。"),F,a(" 点击"),s("b",null,[n(l,{color:"orange"},{default:t(()=>[a("😎 Deploy Preview后面的链接")]),_:1})]),a("即可看见效果"),B,a(" 由于某些原因,TX会拦截Netlify的站点,请使用浏览器预览。")])]),E])}const L=e(r,[["render",O]]);export{K as __pageData,L as default};
|
|
@ -1 +1 @@
|
|||
import{_ as e,c,z as s,a,E as l,B as t,O as o,G as p,o as i}from"./chunks/framework.621e5595.js";const K=JSON.parse('{"title":"","description":"","frontmatter":{"outline":"deep"},"headers":[],"relativePath":"api-dev.md","filePath":"api-dev.md"}'),r={name:"api-dev.md"},d=s("div",{style:{display:"flex","align-content":"flex-start","flex-wrap":"nowrap","flex-direction":"row","justify-content":"center"}},[s("h1",null,"RTS-Code-API---开发规范")],-1),u=s("div",{style:{display:"flex","align-content":"flex-start","flex-wrap":"nowrap","flex-direction":"row","justify-content":"center"}},[s("img",{src:"https://rwapi-code.netlify.app/images/title.png"})],-1),h={class:"tip custom-block"},C=s("p",{class:"custom-block-title"},"TIP",-1),_=s("br",null,null,-1),A=s("br",null,null,-1),b=s("br",null,null,-1),m=s("blockquote",null,[s("p",null,[a("1.确保代码的解释通俗易懂,能让新手迅速入门"),s("br"),a("2.编写的代码应该以以下格式进行:")]),s("h3",null,"代码的格式编写规范:"),a("1.代码的英文名和附属信息(参考站点已添加的代码例子)"),s("br")],-1),y=s("p",null,[a("2.代码的简介"),s("br"),a(" 3.代码的要点指示"),s("br"),a(" 4.代码的演示例子"),s("br"),a(" 5.代码的扩展例子(可选)"),s("br"),a(" 6.GIF演示/视频演示(可选)")],-1),x={class:"tip custom-block"},k=s("p",{class:"custom-block-title"},"TIP",-1),D=s("br",null,null,-1),f={class:"warning custom-block"},g=s("p",{class:"custom-block-title"},"WARNING",-1),v=s("div",{class:"warning custom-block"},[s("p",{class:"custom-block-title"},"WARNING"),s("p",null,"有一些代码或许有一些新的写法,或该写法可能已经废弃,如果遇到这些代码,编写者需要注明,并提供推荐代码。")],-1),P={class:"info custom-block"},T=s("p",{class:"custom-block-title"},"INFO",-1),w=o("",6),I={class:"tip custom-block"},N=s("p",{class:"custom-block-title"},"TIP",-1),q=s("br",null,null,-1),R=s("blockquote",null,[s("p",null,[a("npm i docsify-cli -g"),s("br"),a("docsify serve docs")])],-1),S=s("div",{class:"info custom-block"},[s("p",{class:"custom-block-title"},"INFO"),s("p",null,"2.Netlify部署")],-1),M={class:"tip custom-block"},G=s("p",{class:"custom-block-title"},"TIP",-1),V=s("br",null,null,-1),F=s("br",null,null,-1),B=s("br",null,null,-1),E=o("",20);function O($,j,z,H,W,J){const n=p("font");return i(),c("div",null,[d,u,s("div",h,[C,s("p",null,[a("0.如果你确定你想"),l(n,{color:"orange"},{default:t(()=>[a("帮忙开发此站点")]),_:1}),a(","),_,a(" 就可以点击右上角的Github按钮,"),l(n,{color:"orange"},{default:t(()=>[a("Clone我们的库")]),_:1}),a(","),A,a(" 编写代码并进行PR申请,我非常感谢你的帮忙,感谢各位的支持与帮助。"),b]),m,y]),s("div",x,[k,s("p",null,[a("使用外部资源时,请使用支持HTTPS协议的资源地址传输。"),D,a(" 否则在"),l(n,{color:"orange"},{default:t(()=>[a("Google Chrome等一系列以CEF的内核")]),_:1}),a("上会因为强制替换HTTPS导致资源无法打开。")])]),s("div",f,[g,s("p",null,[a("不能使用过于高深的说明,严禁出现谜语人话语,无用话语,任何玩梗, 夹带私货等一系列与本站无关的东西,违者将不能通过"),l(n,{color:"green"},{default:t(()=>[a("PR审核")]),_:1})])]),v,s("div",P,[T,s("p",null,[a("为了更好的方便一起编写站点的贡献者,本站点提供了以下的"),l(n,{color:"green"},{default:t(()=>[a("扩展MD格式供各位书写")]),_:1})])]),w,s("div",I,[N,s("p",null,[a("如果要本地测试,请确保设备有"),l(n,{color:"green"},{default:t(()=>[a("Node.js")]),_:1}),a(" 并在项目根目录使用以下命令:"),q]),R]),S,s("div",M,[G,s("p",null,[a("如果你已经发送了PR请求,可以通过我的Netlify预览站点进行预览,"),V,a(" Netlify会在你的PR请求下面显示你的预览页面地址。"),F,a(" 点击"),s("b",null,[l(n,{color:"orange"},{default:t(()=>[a("😎 Deploy Preview后面的链接")]),_:1})]),a("即可看见效果"),B,a(" 由于某些原因,TX会拦截Netlify的站点,请使用浏览器预览。")])]),E])}const L=e(r,[["render",O]]);export{K as __pageData,L as default};
|
||||
import{_ as e,c,z as s,a,E as n,B as t,O as o,G as p,o as i}from"./chunks/framework.621e5595.js";const K=JSON.parse('{"title":"","description":"","frontmatter":{"outline":"deep"},"headers":[],"relativePath":"api-dev.md","filePath":"api-dev.md"}'),r={name:"api-dev.md"},d=s("div",{style:{display:"flex","align-content":"flex-start","flex-wrap":"nowrap","flex-direction":"row","justify-content":"center"}},[s("h1",null,"RTS-Code-API---开发规范")],-1),u=s("div",{style:{display:"flex","align-content":"flex-start","flex-wrap":"nowrap","flex-direction":"row","justify-content":"center"}},[s("img",{src:"https://rwapi-code.netlify.app/images/title.png"})],-1),h={class:"tip custom-block"},_=s("p",{class:"custom-block-title"},"TIP",-1),C=s("br",null,null,-1),b=s("br",null,null,-1),A=s("br",null,null,-1),m=s("blockquote",null,[s("p",null,[a("1.确保代码的解释通俗易懂,能让新手迅速入门"),s("br"),a("2.编写的代码应该以以下格式进行:")]),s("h3",null,"代码的格式编写规范:"),a("1.代码的英文名和附属信息(参考站点已添加的代码例子)"),s("br")],-1),y=s("p",null,[a("2.代码的简介"),s("br"),a(" 3.代码的要点指示"),s("br"),a(" 4.代码的演示例子"),s("br"),a(" 5.代码的扩展例子(可选)"),s("br"),a(" 6.GIF演示/视频演示(可选)")],-1),k={class:"tip custom-block"},f=s("p",{class:"custom-block-title"},"TIP",-1),D=s("br",null,null,-1),g={class:"warning custom-block"},v=s("p",{class:"custom-block-title"},"WARNING",-1),x=s("div",{class:"warning custom-block"},[s("p",{class:"custom-block-title"},"WARNING"),s("p",null,"有一些代码或许有一些新的写法,或该写法可能已经废弃,如果遇到这些代码,编写者需要注明,并提供推荐代码。")],-1),P={class:"info custom-block"},T=s("p",{class:"custom-block-title"},"INFO",-1),w=o("",6),I={class:"tip custom-block"},N=s("p",{class:"custom-block-title"},"TIP",-1),q=s("br",null,null,-1),R=s("blockquote",null,[s("p",null,[a("npm i docsify-cli -g"),s("br"),a("docsify serve docs")])],-1),S=s("div",{class:"info custom-block"},[s("p",{class:"custom-block-title"},"INFO"),s("p",null,"2.Netlify部署")],-1),M={class:"tip custom-block"},G=s("p",{class:"custom-block-title"},"TIP",-1),V=s("br",null,null,-1),F=s("br",null,null,-1),B=s("br",null,null,-1),E=o("",20);function O($,j,z,H,W,J){const l=p("font");return i(),c("div",null,[d,u,s("div",h,[_,s("p",null,[a("0.如果你确定你想"),n(l,{color:"orange"},{default:t(()=>[a("帮忙开发此站点")]),_:1}),a(","),C,a(" 就可以点击右上角的Github按钮,"),n(l,{color:"orange"},{default:t(()=>[a("Clone我们的库")]),_:1}),a(","),b,a(" 编写代码并进行PR申请,我非常感谢你的帮忙,感谢各位的支持与帮助。"),A]),m,y]),s("div",k,[f,s("p",null,[a("使用外部资源时,请使用支持HTTPS协议的资源地址传输。"),D,a(" 否则在"),n(l,{color:"orange"},{default:t(()=>[a("Google Chrome等一系列以CEF的内核")]),_:1}),a("上会因为强制替换HTTPS导致资源无法打开。")])]),s("div",g,[v,s("p",null,[a("不能使用过于高深的说明,严禁出现谜语人话语,无用话语,任何玩梗, 夹带私货等一系列与本站无关的东西,违者将不能通过"),n(l,{color:"green"},{default:t(()=>[a("PR审核")]),_:1})])]),x,s("div",P,[T,s("p",null,[a("为了更好的方便一起编写站点的贡献者,本站点提供了以下的"),n(l,{color:"green"},{default:t(()=>[a("扩展MD格式供各位书写")]),_:1})])]),w,s("div",I,[N,s("p",null,[a("如果要本地测试,请确保设备有"),n(l,{color:"green"},{default:t(()=>[a("Node.js")]),_:1}),a(" 并在项目根目录使用以下命令:"),q]),R]),S,s("div",M,[G,s("p",null,[a("如果你已经发送了PR请求,可以通过我的Netlify预览站点进行预览,"),V,a(" Netlify会在你的PR请求下面显示你的预览页面地址。"),F,a(" 点击"),s("b",null,[n(l,{color:"orange"},{default:t(()=>[a("😎 Deploy Preview后面的链接")]),_:1})]),a("即可看见效果"),B,a(" 由于某些原因,TX会拦截Netlify的站点,请使用浏览器预览。")])]),E])}const L=e(r,[["render",O]]);export{K as __pageData,L as default};
|
1
assets/index.md.2330ee51.js
Normal file
1
assets/index.md.2330ee51.js
Normal file
|
@ -0,0 +1 @@
|
|||
import{_ as e,c as t,o as i}from"./chunks/framework.621e5595.js";const m=JSON.parse('{"title":"","description":"","frontmatter":{"layout":"home","action":null,"hero":{"name":"铁锈战争-API-Code","text":"轻松编码,轻松学习","tagline":"学习Mod,制作Mod,创新Mod","image":{"src":"https://rwapi-code.netlify.app/images/logo.png","alt":"RW-API-Code"},"actions":[{"theme":"alt","text":"编写指南","link":"/api-dev"},{"theme":"brand","text":"Github","link":"https://github.com/LingASDJ/RW-API-Code"}]},"features":[{"title":"单位代码表","details":"学习最基础的铁锈单位API-Code","link":"/src/Unit/core","linkText":"让我们立刻开始吧!"},{"title":"地图代码表","details":"学习铁锈的地图TMX代码表","linkText":"让我们立刻开始吧![开发中]"},{"title":"调试代码表","details":"学习铁锈的高级调试代码表(仅Android)","linkText":"让我们立刻开始吧![开发中]"}]},"headers":[],"relativePath":"index.md","filePath":"index.md"}'),a={name:"index.md"};function n(o,d,l,r,s,c){return i(),t("div")}const x=e(a,[["render",n]]);export{m as __pageData,x as default};
|
1
assets/index.md.2330ee51.lean.js
Normal file
1
assets/index.md.2330ee51.lean.js
Normal file
|
@ -0,0 +1 @@
|
|||
import{_ as e,c as t,o as i}from"./chunks/framework.621e5595.js";const m=JSON.parse('{"title":"","description":"","frontmatter":{"layout":"home","action":null,"hero":{"name":"铁锈战争-API-Code","text":"轻松编码,轻松学习","tagline":"学习Mod,制作Mod,创新Mod","image":{"src":"https://rwapi-code.netlify.app/images/logo.png","alt":"RW-API-Code"},"actions":[{"theme":"alt","text":"编写指南","link":"/api-dev"},{"theme":"brand","text":"Github","link":"https://github.com/LingASDJ/RW-API-Code"}]},"features":[{"title":"单位代码表","details":"学习最基础的铁锈单位API-Code","link":"/src/Unit/core","linkText":"让我们立刻开始吧!"},{"title":"地图代码表","details":"学习铁锈的地图TMX代码表","linkText":"让我们立刻开始吧![开发中]"},{"title":"调试代码表","details":"学习铁锈的高级调试代码表(仅Android)","linkText":"让我们立刻开始吧![开发中]"}]},"headers":[],"relativePath":"index.md","filePath":"index.md"}'),a={name:"index.md"};function n(o,d,l,r,s,c){return i(),t("div")}const x=e(a,[["render",n]]);export{m as __pageData,x as default};
|
|
@ -1 +0,0 @@
|
|||
import{_ as e,c as t,o as i}from"./chunks/framework.621e5595.js";const p=JSON.parse('{"title":"","description":"","frontmatter":{"layout":"home","action":null,"hero":{"name":"铁锈战争-API-Code","text":"轻松编码,轻松学习","tagline":"学习Mod,制作Mod,创新Mod","image":{"src":"https://rwapi-code.netlify.app/images/logo.png","alt":"RW-API-Code"},"actions":[{"theme":"alt","text":"开发指南","link":"/api-dev"},{"theme":"brand","text":"快速开始","link":"/src/Unit/core"},{"theme":"alt","text":"Github","link":"https://github.com/LingASDJ/RW-API-Code"},{"theme":"brand","text":"常见问题","link":"/src/question/"}]},"features":[{"title":"单位代码表","details":"学习最基础的铁锈单位API-Code","link":"/src/Unit/core","linkText":"让我们立刻开始吧!"},{"title":"地图代码表","details":"学习铁锈的地图TMX代码表","linkText":"让我们立刻开始吧![开发中]"},{"title":"调试代码表","details":"学习铁锈的高级调试代码表(仅Android)","linkText":"让我们立刻开始吧![开发中]"}]},"headers":[],"relativePath":"index.md","filePath":"index.md"}'),n={name:"index.md"};function a(o,d,l,r,s,c){return i(),t("div")}const x=e(n,[["render",a]]);export{p as __pageData,x as default};
|
|
@ -1 +0,0 @@
|
|||
import{_ as e,c as t,o as i}from"./chunks/framework.621e5595.js";const p=JSON.parse('{"title":"","description":"","frontmatter":{"layout":"home","action":null,"hero":{"name":"铁锈战争-API-Code","text":"轻松编码,轻松学习","tagline":"学习Mod,制作Mod,创新Mod","image":{"src":"https://rwapi-code.netlify.app/images/logo.png","alt":"RW-API-Code"},"actions":[{"theme":"alt","text":"开发指南","link":"/api-dev"},{"theme":"brand","text":"快速开始","link":"/src/Unit/core"},{"theme":"alt","text":"Github","link":"https://github.com/LingASDJ/RW-API-Code"},{"theme":"brand","text":"常见问题","link":"/src/question/"}]},"features":[{"title":"单位代码表","details":"学习最基础的铁锈单位API-Code","link":"/src/Unit/core","linkText":"让我们立刻开始吧!"},{"title":"地图代码表","details":"学习铁锈的地图TMX代码表","linkText":"让我们立刻开始吧![开发中]"},{"title":"调试代码表","details":"学习铁锈的高级调试代码表(仅Android)","linkText":"让我们立刻开始吧![开发中]"}]},"headers":[],"relativePath":"index.md","filePath":"index.md"}'),n={name:"index.md"};function a(o,d,l,r,s,c){return i(),t("div")}const x=e(n,[["render",a]]);export{p as __pageData,x as default};
|
|
@ -1,33 +0,0 @@
|
|||
import{_ as s,c as a,o as n,O as l}from"./chunks/framework.621e5595.js";const g=JSON.parse('{"title":"Markdown Extension Examples","description":"","frontmatter":{},"headers":[],"relativePath":"markdown-examples.md","filePath":"markdown-examples.md"}'),e={name:"markdown-examples.md"},p=l(`<h1 id="markdown-extension-examples" tabindex="-1">Markdown Extension Examples <a class="header-anchor" href="#markdown-extension-examples" aria-label="Permalink to "Markdown Extension Examples""></a></h1><p>This page demonstrates some of the built-in markdown extensions provided by VitePress.</p><h2 id="syntax-highlighting" tabindex="-1">Syntax Highlighting <a class="header-anchor" href="#syntax-highlighting" aria-label="Permalink to "Syntax Highlighting""></a></h2><p>VitePress provides Syntax Highlighting powered by <a href="https://github.com/shikijs/shiki" target="_blank" rel="noreferrer">Shiki</a>, with additional features like line-highlighting:</p><p><strong>Input</strong></p><div class="language-"><button title="Copy Code" class="copy"></button><span class="lang"></span><pre class="shiki material-theme-palenight"><code><span class="line"><span style="color:#A6ACCD;">\`\`\`js{4}</span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;">export default {</span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;"> data () {</span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;"> return {</span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;"> msg: 'Highlighted!'</span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;"> }</span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;"> }</span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;">}</span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;">\`\`\`</span></span></code></pre></div><p><strong>Output</strong></p><div class="language-js"><button title="Copy Code" class="copy"></button><span class="lang">js</span><pre class="shiki material-theme-palenight has-highlighted-lines"><code><span class="line"><span style="color:#89DDFF;font-style:italic;">export</span><span style="color:#A6ACCD;"> </span><span style="color:#89DDFF;font-style:italic;">default</span><span style="color:#A6ACCD;"> </span><span style="color:#89DDFF;">{</span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;"> </span><span style="color:#F07178;">data</span><span style="color:#A6ACCD;"> </span><span style="color:#89DDFF;">()</span><span style="color:#A6ACCD;"> </span><span style="color:#89DDFF;">{</span></span>
|
||||
<span class="line"><span style="color:#F07178;"> </span><span style="color:#89DDFF;font-style:italic;">return</span><span style="color:#F07178;"> </span><span style="color:#89DDFF;">{</span></span>
|
||||
<span class="line highlighted"><span style="color:#F07178;"> msg</span><span style="color:#89DDFF;">:</span><span style="color:#F07178;"> </span><span style="color:#89DDFF;">'</span><span style="color:#C3E88D;">Highlighted!</span><span style="color:#89DDFF;">'</span></span>
|
||||
<span class="line"><span style="color:#F07178;"> </span><span style="color:#89DDFF;">}</span></span>
|
||||
<span class="line"><span style="color:#F07178;"> </span><span style="color:#89DDFF;">}</span></span>
|
||||
<span class="line"><span style="color:#89DDFF;">}</span></span></code></pre></div><h2 id="custom-containers" tabindex="-1">Custom Containers <a class="header-anchor" href="#custom-containers" aria-label="Permalink to "Custom Containers""></a></h2><p><strong>Input</strong></p><div class="language-md"><button title="Copy Code" class="copy"></button><span class="lang">md</span><pre class="shiki material-theme-palenight"><code><span class="line"><span style="color:#A6ACCD;">::: info</span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;">This is an info box.</span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;">:::</span></span>
|
||||
<span class="line"></span>
|
||||
<span class="line"><span style="color:#A6ACCD;">::: tip</span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;">This is a tip.</span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;">:::</span></span>
|
||||
<span class="line"></span>
|
||||
<span class="line"><span style="color:#A6ACCD;">::: warning</span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;">This is a warning.</span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;">:::</span></span>
|
||||
<span class="line"></span>
|
||||
<span class="line"><span style="color:#A6ACCD;">::: danger</span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;">This is a dangerous warning.</span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;">:::</span></span>
|
||||
<span class="line"></span>
|
||||
<span class="line"><span style="color:#A6ACCD;">::: details</span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;">This is a details block.</span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;">:::</span></span></code></pre></div><p><strong>Output</strong></p><div class="info custom-block"><p class="custom-block-title">INFO</p><p>This is an info box.</p></div><div class="tip custom-block"><p class="custom-block-title">TIP</p><p>This is a tip.</p></div><div class="warning custom-block"><p class="custom-block-title">WARNING</p><p>This is a warning.</p></div><div class="danger custom-block"><p class="custom-block-title">DANGER</p><p>This is a dangerous warning.</p></div><details class="details custom-block"><summary>Details</summary><p>This is a details block.</p></details><h2 id="more" tabindex="-1">More <a class="header-anchor" href="#more" aria-label="Permalink to "More""></a></h2><p>Check out the documentation for the <a href="https://vitepress.dev/guide/markdown" target="_blank" rel="noreferrer">full list of markdown extensions</a>.</p>`,19),o=[p];function t(i,c,r,d,h,C){return n(),a("div",null,o)}const m=s(e,[["render",t]]);export{g as __pageData,m as default};
|
|
@ -1 +0,0 @@
|
|||
import{_ as s,c as a,o as n,O as l}from"./chunks/framework.621e5595.js";const g=JSON.parse('{"title":"Markdown Extension Examples","description":"","frontmatter":{},"headers":[],"relativePath":"markdown-examples.md","filePath":"markdown-examples.md"}'),e={name:"markdown-examples.md"},p=l("",19),o=[p];function t(i,c,r,d,h,C){return n(),a("div",null,o)}const m=s(e,[["render",t]]);export{g as __pageData,m as default};
|
|
@ -1,4 +1,4 @@
|
|||
import{_ as t,c as o,z as e,a,E as n,B as l,O as i,G as r,o as c}from"./chunks/framework.621e5595.js";const E=JSON.parse('{"title":"[core]组","description":"","frontmatter":{"outline":"deep"},"headers":[],"relativePath":"src/Unit/core.md","filePath":"src/Unit/core.md"}'),p={name:"src/Unit/core.md"},d=i(`<h1 id="core-组" tabindex="-1"><strong>[core]组</strong> <a class="header-anchor" href="#core-组" aria-label="Permalink to "**[core]组**""></a></h1><h2 id="第一类-通用代码组" tabindex="-1">第一类-通用代码组 <a class="header-anchor" href="#第一类-通用代码组" aria-label="Permalink to "第一类-通用代码组""></a></h2><div class="tip custom-block"><p class="custom-block-title">TIP</p><p>以下的代码为<code>通用代码</code>,多半是必要的代码,如果不包括这些,可能在<code>绝大多数情况下导致错误</code>。</p></div><h3 id="name" tabindex="-1">name <a class="header-anchor" href="#name" aria-label="Permalink to "name""></a></h3><h4 id="name-代码简介" tabindex="-1">name-代码简介 <a class="header-anchor" href="#name-代码简介" aria-label="Permalink to "name-代码简介""></a></h4><p>代码:name 中文释义:名字 类型:字符型 隶属于:通用代码组</p><h4 id="name-要点指示" tabindex="-1">name-要点指示 <a class="header-anchor" href="#name-要点指示" aria-label="Permalink to "name-要点指示""></a></h4><hr><div class="vp-code-group"><div class="tabs"><input type="radio" name="group-ZBLBA" id="tab-QhIj9h9" checked="checked"><label for="tab-QhIj9h9">JDSALing</label><input type="radio" name="group-ZBLBA" id="tab-8_wQ80R"><label for="tab-8_wQ80R">Tobby3600</label></div><div class="blocks"><div class="language-bash active"><button title="Copy Code" class="copy"></button><span class="lang">bash</span><pre class="shiki material-theme-palenight"><code><span class="line"><span style="color:#FFCB6B;">定义单位原始名称,可以是中文。</span></span>
|
||||
import{_ as t,c as o,z as e,a,E as n,B as l,O as i,G as r,o as c}from"./chunks/framework.621e5595.js";const E=JSON.parse('{"title":"[core]组","description":"","frontmatter":{"outline":"deep"},"headers":[],"relativePath":"src/Unit/core.md","filePath":"src/Unit/core.md"}'),p={name:"src/Unit/core.md"},d=i(`<h1 id="core-组" tabindex="-1"><strong>[core]组</strong> <a class="header-anchor" href="#core-组" aria-label="Permalink to "**[core]组**""></a></h1><h2 id="第一类-通用代码组" tabindex="-1">第一类-通用代码组 <a class="header-anchor" href="#第一类-通用代码组" aria-label="Permalink to "第一类-通用代码组""></a></h2><div class="tip custom-block"><p class="custom-block-title">TIP</p><p>以下的代码为<code>通用代码</code>,多半是必要的代码,如果不包括这些,可能在<code>绝大多数情况下导致错误</code>。</p></div><h3 id="name" tabindex="-1">name <a class="header-anchor" href="#name" aria-label="Permalink to "name""></a></h3><h4 id="name-代码简介" tabindex="-1">name-代码简介 <a class="header-anchor" href="#name-代码简介" aria-label="Permalink to "name-代码简介""></a></h4><p>代码:name 中文释义:名字 类型:字符型 隶属于:通用代码组</p><h4 id="name-要点指示" tabindex="-1">name-要点指示 <a class="header-anchor" href="#name-要点指示" aria-label="Permalink to "name-要点指示""></a></h4><hr><div class="vp-code-group"><div class="tabs"><input type="radio" name="group-bvcmm" id="tab-elLzglx" checked="checked"><label for="tab-elLzglx">JDSALing</label><input type="radio" name="group-bvcmm" id="tab-s9vw9bV"><label for="tab-s9vw9bV">Tobby3600</label></div><div class="blocks"><div class="language-bash active"><button title="Copy Code" class="copy"></button><span class="lang">bash</span><pre class="shiki material-theme-palenight"><code><span class="line"><span style="color:#FFCB6B;">定义单位原始名称,可以是中文。</span></span>
|
||||
<span class="line"><span style="color:#FFCB6B;">游戏使用它区分其它单位。</span></span>
|
||||
<span class="line"></span>
|
||||
<span class="line"><span style="color:#FFCB6B;">如果没有在[displayText或者语言文件设置显示名称],</span></span>
|
||||
|
@ -17,13 +17,13 @@ import{_ as t,c as o,z as e,a,E as n,B as l,O as i,G as r,o as c}from"./chunks/f
|
|||
<span class="line"><span style="color:#A6ACCD;">displayText_zh:中文标题</span></span>
|
||||
<span class="line"></span>
|
||||
<span class="line"><span style="color:#A6ACCD;">displayDescription: -English Description</span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;">displayDescription_zh:-中文描述</span></span></code></pre></div><hr><h3 id="price" tabindex="-1">price <a class="header-anchor" href="#price" aria-label="Permalink to "price""></a></h3><h4 id="price-代码简介" tabindex="-1">price-代码简介 <a class="header-anchor" href="#price-代码简介" aria-label="Permalink to "price-代码简介""></a></h4><p>代码:price 中文释义:价格 类型:整数 隶属于:通用代码组</p><h4 id="price-要点指示" tabindex="-1">price-要点指示 <a class="header-anchor" href="#price-要点指示" aria-label="Permalink to "price-要点指示""></a></h4><p>定义单位的价格,显示在单位信息中,建造时也以此价格为准。</p><div class="vp-code-group"><div class="tabs"><input type="radio" name="group-9zBWV" id="tab-gLtql6_" checked="checked"><label for="tab-gLtql6_">Tobby3600</label></div><div class="blocks"><div class="language-bash active"><button title="Copy Code" class="copy"></button><span class="lang">bash</span><pre class="shiki material-theme-palenight"><code><span class="line"><span style="color:#FFCB6B;">默认情况下,price只需要填写一个整数,此时使用的是游戏内自带的资金credit;</span><span style="color:#A6ACCD;"> </span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;">displayDescription_zh:-中文描述</span></span></code></pre></div><hr><h3 id="price" tabindex="-1">price <a class="header-anchor" href="#price" aria-label="Permalink to "price""></a></h3><h4 id="price-代码简介" tabindex="-1">price-代码简介 <a class="header-anchor" href="#price-代码简介" aria-label="Permalink to "price-代码简介""></a></h4><p>代码:price 中文释义:价格 类型:整数 隶属于:通用代码组</p><h4 id="price-要点指示" tabindex="-1">price-要点指示 <a class="header-anchor" href="#price-要点指示" aria-label="Permalink to "price-要点指示""></a></h4><p>定义单位的价格,显示在单位信息中,建造时也以此价格为准。</p><div class="vp-code-group"><div class="tabs"><input type="radio" name="group-3c4fs" id="tab-uKCUCt5" checked="checked"><label for="tab-uKCUCt5">Tobby3600</label></div><div class="blocks"><div class="language-bash active"><button title="Copy Code" class="copy"></button><span class="lang">bash</span><pre class="shiki material-theme-palenight"><code><span class="line"><span style="color:#FFCB6B;">默认情况下,price只需要填写一个整数,此时使用的是游戏内自带的资金credit;</span><span style="color:#A6ACCD;"> </span></span>
|
||||
<span class="line"><span style="color:#FFCB6B;">想要更改资源类型,可以使用:</span></span>
|
||||
<span class="line"><span style="color:#89DDFF;">\`</span><span style="color:#FFCB6B;">price:资源1</span><span style="color:#C3E88D;">=数值1,资源2=数值2,资源3=数值3,……</span><span style="color:#89DDFF;">\`</span><span style="color:#A6ACCD;"> </span><span style="color:#FFCB6B;">的格式</span></span>
|
||||
<span class="line"><span style="color:#FFCB6B;">(前提是此资源要在使用的单位进行定义)。</span></span></code></pre></div></div></div><h4 id="price-演示例子" tabindex="-1">price-演示例子 <a class="header-anchor" href="#price-演示例子" aria-label="Permalink to "price-演示例子""></a></h4><div class="language-ini"><button title="Copy Code" class="copy"></button><span class="lang">ini</span><pre class="shiki material-theme-palenight"><code><span class="line"><span style="color:#89DDFF;">[core]</span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;">price:120,石油=80,铁=60</span></span></code></pre></div><hr><h3 id="radius" tabindex="-1">radius <a class="header-anchor" href="#radius" aria-label="Permalink to "radius""></a></h3><h4 id="radius-代码简介" tabindex="-1">radius-代码简介 <a class="header-anchor" href="#radius-代码简介" aria-label="Permalink to "radius-代码简介""></a></h4><p>代码:radius 中文释义:半径 类型:整数 隶属于:通用代码组</p><h4 id="radius-要点指示" tabindex="-1">radius-要点指示 <a class="header-anchor" href="#radius-要点指示" aria-label="Permalink to "radius-要点指示""></a></h4><p>半径定义单位的<code>实际碰撞体积和显示范围</code>,在未设置<code>选择框大小</code>时,半径决定是单位选择框的大小。 半径的单位是像素(px)。</p><h4 id="radius-演示例子" tabindex="-1">radius-演示例子 <a class="header-anchor" href="#radius-演示例子" aria-label="Permalink to "radius-演示例子""></a></h4><div class="language-ini"><button title="Copy Code" class="copy"></button><span class="lang">ini</span><pre class="shiki material-theme-palenight"><code><span class="line"><span style="color:#89DDFF;">[core]</span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;">radius:20</span></span></code></pre></div><hr><h3 id="mass" tabindex="-1">mass <a class="header-anchor" href="#mass" aria-label="Permalink to "mass""></a></h3><h4 id="mass-代码简介" tabindex="-1">mass-代码简介 <a class="header-anchor" href="#mass-代码简介" aria-label="Permalink to "mass-代码简介""></a></h4><p>代码:mass 中文释义:质量 类型:整数 隶属于:通用代码组</p><h4 id="mass-要点指示" tabindex="-1">mass-要点指示 <a class="header-anchor" href="#mass-要点指示" aria-label="Permalink to "mass-要点指示""></a></h4><p>质量决定单位在各种碰撞时的效果。<code>质量越大,其他单位越难推动</code>。</p><h4 id="mass-演示例子" tabindex="-1">mass-演示例子 <a class="header-anchor" href="#mass-演示例子" aria-label="Permalink to "mass-演示例子""></a></h4><div class="language-ini"><button title="Copy Code" class="copy"></button><span class="lang">ini</span><pre class="shiki material-theme-palenight"><code><span class="line"><span style="color:#89DDFF;">[core]</span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;">mass:2000</span></span></code></pre></div><hr><h3 id="maxhp" tabindex="-1">maxHp <a class="header-anchor" href="#maxhp" aria-label="Permalink to "maxHp""></a></h3><h4 id="maxhp-代码简介" tabindex="-1">maxHp-代码简介 <a class="header-anchor" href="#maxhp-代码简介" aria-label="Permalink to "maxHp-代码简介""></a></h4><p>代码:maxHp 中文释义:最大生命值 类型:整数 隶属于:通用代码组</p><h4 id="maxhp-要点指示" tabindex="-1">maxHp-要点指示 <a class="header-anchor" href="#maxhp-要点指示" aria-label="Permalink to "maxHp-要点指示""></a></h4><div class="vp-code-group"><div class="tabs"><input type="radio" name="group-TQcmC" id="tab-RaZl6l1" checked="checked"><label for="tab-RaZl6l1">tobby3600</label></div><div class="blocks"><div class="language-bash active"><button title="Copy Code" class="copy"></button><span class="lang">bash</span><pre class="shiki material-theme-palenight"><code><span class="line"><span style="color:#FFCB6B;">最大生命值定义单位在不修改它时最多能够有多少血量,</span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;">mass:2000</span></span></code></pre></div><hr><h3 id="maxhp" tabindex="-1">maxHp <a class="header-anchor" href="#maxhp" aria-label="Permalink to "maxHp""></a></h3><h4 id="maxhp-代码简介" tabindex="-1">maxHp-代码简介 <a class="header-anchor" href="#maxhp-代码简介" aria-label="Permalink to "maxHp-代码简介""></a></h4><p>代码:maxHp 中文释义:最大生命值 类型:整数 隶属于:通用代码组</p><h4 id="maxhp-要点指示" tabindex="-1">maxHp-要点指示 <a class="header-anchor" href="#maxhp-要点指示" aria-label="Permalink to "maxHp-要点指示""></a></h4><div class="vp-code-group"><div class="tabs"><input type="radio" name="group-uJR3D" id="tab-TV06V4t" checked="checked"><label for="tab-TV06V4t">tobby3600</label></div><div class="blocks"><div class="language-bash active"><button title="Copy Code" class="copy"></button><span class="lang">bash</span><pre class="shiki material-theme-palenight"><code><span class="line"><span style="color:#FFCB6B;">最大生命值定义单位在不修改它时最多能够有多少血量,</span></span>
|
||||
<span class="line"><span style="color:#FFCB6B;">单位默认生成时即是这个血量。</span></span>
|
||||
<span class="line"><span style="color:#82AAFF;">maxHp可以通过单位参考.maxHp</span><span style="color:#89DDFF;">()</span><span style="color:#A6ACCD;">来获取,</span></span>
|
||||
<span class="line"><span style="color:#FFCB6B;">也可以通过[action]进行修改。</span></span></code></pre></div></div></div><h4 id="maxhp-演示例子" tabindex="-1">maxHp-演示例子 <a class="header-anchor" href="#maxhp-演示例子" aria-label="Permalink to "maxHp-演示例子""></a></h4><div class="language-ini"><button title="Copy Code" class="copy"></button><span class="lang">ini</span><pre class="shiki material-theme-palenight"><code><span class="line"><span style="color:#89DDFF;">[core]</span></span>
|
||||
|
@ -35,7 +35,7 @@ import{_ as t,c as o,z as e,a,E as n,B as l,O as i,G as r,o as c}from"./chunks/f
|
|||
<span class="line"><span style="color:#A6ACCD;">buildSpeed:30s</span></span>
|
||||
<span class="line"><span style="color:#676E95;font-style:italic;">#或者:</span></span>
|
||||
<span class="line"><span style="color:#676E95;font-style:italic;">## 下方可能有误差</span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;">buildSpeed:0.0006</span></span></code></pre></div><hr><h3 id="isbio" tabindex="-1">isBio <a class="header-anchor" href="#isbio" aria-label="Permalink to "isBio""></a></h3><h4 id="isbio-代码简介" tabindex="-1">isBio-代码简介 <a class="header-anchor" href="#isbio-代码简介" aria-label="Permalink to "isBio-代码简介""></a></h4><p>代码:isBio 中文释义:是生物 类型:布尔型 隶属于:通用代码组</p>`,13),k={class:"tip custom-block"},f=e("p",{class:"custom-block-title"},"TIP",-1),q=e("br",null,null,-1),v=e("br",null,null,-1),x=i(`<h4 id="isbio-演示例子" tabindex="-1">isBio-演示例子 <a class="header-anchor" href="#isbio-演示例子" aria-label="Permalink to "isBio-演示例子""></a></h4><div class="language-ini"><button title="Copy Code" class="copy"></button><span class="lang">ini</span><pre class="shiki material-theme-palenight"><code><span class="line"><span style="color:#89DDFF;">[core]</span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;">buildSpeed:0.0006</span></span></code></pre></div><hr><h3 id="isbio" tabindex="-1">isBio <a class="header-anchor" href="#isbio" aria-label="Permalink to "isBio""></a></h3><h4 id="isbio-代码简介" tabindex="-1">isBio-代码简介 <a class="header-anchor" href="#isbio-代码简介" aria-label="Permalink to "isBio-代码简介""></a></h4><p>代码:isBio 中文释义:是生物 类型:布尔型 隶属于:通用代码组</p>`,13),k={class:"tip custom-block"},f=e("p",{class:"custom-block-title"},"TIP",-1),v=e("br",null,null,-1),q=e("br",null,null,-1),x=i(`<h4 id="isbio-演示例子" tabindex="-1">isBio-演示例子 <a class="header-anchor" href="#isbio-演示例子" aria-label="Permalink to "isBio-演示例子""></a></h4><div class="language-ini"><button title="Copy Code" class="copy"></button><span class="lang">ini</span><pre class="shiki material-theme-palenight"><code><span class="line"><span style="color:#89DDFF;">[core]</span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;">isBio:true</span></span></code></pre></div><hr><h3 id="isbug" tabindex="-1">isBug <a class="header-anchor" href="#isbug" aria-label="Permalink to "isBug""></a></h3><h4 id="isbug-代码简介" tabindex="-1">isBug-代码简介 <a class="header-anchor" href="#isbug-代码简介" aria-label="Permalink to "isBug-代码简介""></a></h4><p>代码:isBug 中文释义:是虫子 类型:布尔型 隶属于:通用代码组</p><div class="tip custom-block"><p class="custom-block-title">TIP</p><p>若设置成true,则会认定为虫子,用于沙盒中的单独分类。</p></div><h4 id="isbug-演示例子" tabindex="-1">isBug-演示例子 <a class="header-anchor" href="#isbug-演示例子" aria-label="Permalink to "isBug-演示例子""></a></h4><div class="language-ini"><button title="Copy Code" class="copy"></button><span class="lang">ini</span><pre class="shiki material-theme-palenight"><code><span class="line"><span style="color:#89DDFF;">[core]</span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;">isBug:true</span></span></code></pre></div><hr><h3 id="isbuilder" tabindex="-1">isBuilder <a class="header-anchor" href="#isbuilder" aria-label="Permalink to "isBuilder""></a></h3><h4 id="isbuilder-代码简介" tabindex="-1">isBuilder-代码简介 <a class="header-anchor" href="#isbuilder-代码简介" aria-label="Permalink to "isBuilder-代码简介""></a></h4><p>代码:isBuilder 中文释义:是建造者 类型:布尔型 隶属于:通用代码组</p><div class="tip custom-block"><p class="custom-block-title">TIP</p><p>若设置成true,则会需要此单位建造建筑物,则通常需要此代码。 并且默认设为[ai] useAsBuilder。</p></div><h4 id="isbuilder-演示例子" tabindex="-1">isBuilder-演示例子 <a class="header-anchor" href="#isbuilder-演示例子" aria-label="Permalink to "isBuilder-演示例子""></a></h4><div class="language-ini"><button title="Copy Code" class="copy"></button><span class="lang">ini</span><pre class="shiki material-theme-palenight"><code><span class="line"><span style="color:#89DDFF;">[core]</span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;">isBuilder:true</span></span></code></pre></div><hr><h3 id="streamingcost" tabindex="-1">streamingCost <a class="header-anchor" href="#streamingcost" aria-label="Permalink to "streamingCost""></a></h3><h4 id="streamingcost-代码简介" tabindex="-1">streamingCost-代码简介 <a class="header-anchor" href="#streamingcost-代码简介" aria-label="Permalink to "streamingCost-代码简介""></a></h4><p>代码:streamingCost 中文释义:流式资金 类型:整数型 隶属于:通用代码组</p><div class="tip custom-block"><p class="custom-block-title">TIP</p><p>和价格一样,但在建造时逐渐消耗资金,如果在构建过程中资源耗尽,<br> 建造或生产队列将暂停。就像是红警中那样。铁锈默认是预先扣除资金。<br> 若使用该代码,则玩家的每秒资金将会根据流式资金的算法进行扣减。</p></div><h4 id="streamingcost-演示例子" tabindex="-1">streamingCost-演示例子 <a class="header-anchor" href="#streamingcost-演示例子" aria-label="Permalink to "streamingCost-演示例子""></a></h4><div class="language-ini"><button title="Copy Code" class="copy"></button><span class="lang">ini</span><pre class="shiki material-theme-palenight"><code><span class="line"><span style="color:#89DDFF;">[core]</span></span>
|
||||
|
@ -62,7 +62,7 @@ import{_ as t,c as o,z as e,a,E as n,B as l,O as i,G as r,o as c}from"./chunks/f
|
|||
<span class="line"><span style="color:#676E95;font-style:italic;">#如果受到40以下的常规攻击,则进行最低伤害判定</span></span></code></pre></div><hr><h3 id="borrowresourceswhilealive" tabindex="-1">borrowResourcesWhileAlive <a class="header-anchor" href="#borrowresourceswhilealive" aria-label="Permalink to "borrowResourcesWhileAlive""></a></h3><h4 id="borrowresourceswhilealive-代码简介" tabindex="-1">borrowResourcesWhileAlive-代码简介 <a class="header-anchor" href="#borrowresourceswhilealive-代码简介" aria-label="Permalink to "borrowResourcesWhileAlive-代码简介""></a></h4><p>代码:armour 中文释义:资源活着时借用 类型:Price型 隶属于:单位统计代码组</p><div class="tip custom-block"><p class="custom-block-title">TIP</p><p>创建时获取这些资源,删除或销毁时将其返回。 例如用于电力逻辑,负数供电和正数耗电。</p></div><h4 id="borrowresourceswhilealive-演示例子" tabindex="-1">borrowResourcesWhileAlive-演示例子 <a class="header-anchor" href="#borrowresourceswhilealive-演示例子" aria-label="Permalink to "borrowResourcesWhileAlive-演示例子""></a></h4><div class="language-ini"><button title="Copy Code" class="copy"></button><span class="lang">ini</span><pre class="shiki material-theme-palenight"><code><span class="line"><span style="color:#89DDFF;">[core]</span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;">borrowResourcesWhileAlive:5000</span></span>
|
||||
<span class="line"><span style="color:#676E95;font-style:italic;">#单位活着的时候给予5000金币,死亡扣除5000金币</span></span>
|
||||
<span class="line"><span style="color:#676E95;font-style:italic;">#一个小型贷款系统,</span></span></code></pre></div><div class="vp-code-group"><div class="tabs"><input type="radio" name="group-A8Vbo" id="tab-M4f9by6" checked="checked"><label for="tab-M4f9by6">考考你</label><input type="radio" name="group-A8Vbo" id="tab-1lO42F7"><label for="tab-1lO42F7">显示答案</label></div><div class="blocks"><div class="language-bash active"><button title="Copy Code" class="copy"></button><span class="lang">bash</span><pre class="shiki material-theme-palenight"><code><span class="line"><span style="color:#FFCB6B;">如果这里要通过这个代码做一个小的贷款系统,</span></span>
|
||||
<span class="line"><span style="color:#676E95;font-style:italic;">#一个小型贷款系统,</span></span></code></pre></div><div class="vp-code-group"><div class="tabs"><input type="radio" name="group-Li92o" id="tab-vW0yvIW" checked="checked"><label for="tab-vW0yvIW">考考你</label><input type="radio" name="group-Li92o" id="tab-5VjF4Ki"><label for="tab-5VjF4Ki">显示答案</label></div><div class="blocks"><div class="language-bash active"><button title="Copy Code" class="copy"></button><span class="lang">bash</span><pre class="shiki material-theme-palenight"><code><span class="line"><span style="color:#FFCB6B;">如果这里要通过这个代码做一个小的贷款系统,</span></span>
|
||||
<span class="line"><span style="color:#FFCB6B;">并经过一段时间让单位死亡。</span><span style="color:#A6ACCD;"> </span></span>
|
||||
<span class="line"><span style="color:#FFCB6B;">只需要4行代码即可实现,试试看。</span></span>
|
||||
<span class="line"><span style="color:#FFCB6B;">提示:dieOnZeroEnergy:true</span></span>
|
||||
|
@ -117,4 +117,4 @@ import{_ as t,c as o,z as e,a,E as n,B as l,O as i,G as r,o as c}from"./chunks/f
|
|||
<span class="line"><span style="color:#A6ACCD;">footprint: -1,-1,1,1</span></span></code></pre></div><hr><h3 id="constructionfootprint" tabindex="-1">constructionFootprint <a class="header-anchor" href="#constructionfootprint" aria-label="Permalink to "constructionFootprint""></a></h3><h4 id="constructionfootprint-代码简介" tabindex="-1">constructionFootprint-代码简介 <a class="header-anchor" href="#constructionfootprint-代码简介" aria-label="Permalink to "constructionFootprint-代码简介""></a></h4><p>代码:constructionFootprint 中文释义:建筑覆盖范围 类型:多整型 隶属于:构建代码组</p><div class="tip custom-block"><p class="custom-block-title">TIP</p><p>基础规则同上,这个区域内不能建造建筑,但是单位可以通过。<br> 一般需要设定比上一个面积大。<br> 好处是即使建造的密密麻麻,单位也有路可走。</p></div><h4 id="constructionfootprint-演示例子" tabindex="-1">constructionFootprint-演示例子 <a class="header-anchor" href="#constructionfootprint-演示例子" aria-label="Permalink to "constructionFootprint-演示例子""></a></h4><div class="language-ini"><button title="Copy Code" class="copy"></button><span class="lang">ini</span><pre class="shiki material-theme-palenight"><code><span class="line"><span style="color:#89DDFF;">[core]</span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;">constructionFootprint: -1,-1,1,3</span></span></code></pre></div><hr><h3 id="displayfootprint" tabindex="-1">displayFootprint <a class="header-anchor" href="#displayfootprint" aria-label="Permalink to "displayFootprint""></a></h3><h4 id="displayfootprint-代码简介" tabindex="-1">displayFootprint-代码简介 <a class="header-anchor" href="#displayfootprint-代码简介" aria-label="Permalink to "displayFootprint-代码简介""></a></h4><p>代码:displayFootprint 中文释义:建筑选择UI 类型:多整型 隶属于:构建代码组</p><div class="tip custom-block"><p class="custom-block-title">TIP</p><p>基础规则同上,用于选择单位时UI显示。不设定则默认为建筑覆盖区域。</p></div><h4 id="displayfootprint-演示例子" tabindex="-1">displayFootprint-演示例子 <a class="header-anchor" href="#displayfootprint-演示例子" aria-label="Permalink to "displayFootprint-演示例子""></a></h4><div class="language-ini"><button title="Copy Code" class="copy"></button><span class="lang">ini</span><pre class="shiki material-theme-palenight"><code><span class="line"><span style="color:#89DDFF;">[core]</span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;">displayFootprint: 0,0,1,1</span></span></code></pre></div><hr><h3 id="buildingselectionoffset" tabindex="-1">buildingSelectionOffset <a class="header-anchor" href="#buildingselectionoffset" aria-label="Permalink to "buildingSelectionOffset""></a></h3><h4 id="buildingselectionoffset-代码简介" tabindex="-1">buildingSelectionOffset-代码简介 <a class="header-anchor" href="#buildingselectionoffset-代码简介" aria-label="Permalink to "buildingSelectionOffset-代码简介""></a></h4><p>代码:buildingSelectionOffset 中文释义:建筑UI调整 类型:整型 隶属于:构建代码组</p><div class="tip custom-block"><p class="custom-block-title">TIP</p><p>基础规则同上,用于选择单位时UI显示。不设定则默认为建筑覆盖区域。</p></div><h4 id="buildingselectionoffset-演示例子" tabindex="-1">buildingSelectionOffset-演示例子 <a class="header-anchor" href="#buildingselectionoffset-演示例子" aria-label="Permalink to "buildingSelectionOffset-演示例子""></a></h4><div class="language-ini"><button title="Copy Code" class="copy"></button><span class="lang">ini</span><pre class="shiki material-theme-palenight"><code><span class="line"><span style="color:#89DDFF;">[core]</span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;">buildingSelectionOffset: 4</span></span></code></pre></div><hr>`,183);function F(_,T,R,w,B,I){const s=r("font");return c(),o("div",null,[d,e("p",null,[a("主要在"),n(s,{color:"orange"},{default:l(()=>[a("启用多个自定义Mod")]),_:1}),a("进行优先级定义"),h,a(" 以逗号分隔的名称列表。像"),n(s,{color:"orange"},{default:l(()=>[a("名称一样,但优先级较低")]),_:1}),a(",对于"),n(s,{color:"orange"},{default:l(()=>[a("启用多个自定义mod")]),_:1}),a("有用。")]),u,e("div",b,[g,e("p",null,[a("早期是用于在"),n(s,{color:"orange"},{default:l(()=>[a("builtFrom")]),_:1}),a("的代码,并结合科技等级使用。如果工厂的等级低于单位的目标科技等级,则会在工厂里面隐藏该单位。"),m,a("自铁锈1.09后出现"),n(s,{color:"orange"},{default:l(()=>[a("overrideAndReplace")]),_:1}),a("后,该方法则不建议使用。有关于新策略,请参考"),n(s,{color:"orange"},{default:l(()=>[a("overrideAndReplace")]),_:1}),a("代码文档指南。"),y,a(" 设置单位的科技等级,共有3个级别,1级GUI显示为绿色,2、3级显示为黄色。超过3报错。")])]),C,e("div",k,[f,e("p",null,[a("若设置成true,则会在单位死亡时产生血迹,"),q,a(" 图像在"),n(s,{color:"orange"},{default:l(()=>[a("drawable/blood_mark.png"),v,a("当hideScorchMark:true")]),_:1}),a("时可以隐藏非生物则为黑色爆炸效果。")])]),x,e("div",D,[A,e("p",null,[a("能量恢复是持续的,如果你设置了"),n(s,{color:"orange"},{default:l(()=>[a("energyNeedsToRechargeToFull")]),_:1}),a(", 那么攻击时按energyRegen恢复,耗尽时的灰条按此处设定值恢复。")])]),P])}const M=t(p,[["render",F]]);export{E as __pageData,M as default};
|
||||
<span class="line"><span style="color:#A6ACCD;">buildingSelectionOffset: 4</span></span></code></pre></div><hr>`,183);function F(_,T,R,w,B,I){const s=r("font");return c(),o("div",null,[d,e("p",null,[a("主要在"),n(s,{color:"orange"},{default:l(()=>[a("启用多个自定义Mod")]),_:1}),a("进行优先级定义"),h,a(" 以逗号分隔的名称列表。像"),n(s,{color:"orange"},{default:l(()=>[a("名称一样,但优先级较低")]),_:1}),a(",对于"),n(s,{color:"orange"},{default:l(()=>[a("启用多个自定义mod")]),_:1}),a("有用。")]),u,e("div",b,[g,e("p",null,[a("早期是用于在"),n(s,{color:"orange"},{default:l(()=>[a("builtFrom")]),_:1}),a("的代码,并结合科技等级使用。如果工厂的等级低于单位的目标科技等级,则会在工厂里面隐藏该单位。"),m,a("自铁锈1.09后出现"),n(s,{color:"orange"},{default:l(()=>[a("overrideAndReplace")]),_:1}),a("后,该方法则不建议使用。有关于新策略,请参考"),n(s,{color:"orange"},{default:l(()=>[a("overrideAndReplace")]),_:1}),a("代码文档指南。"),y,a(" 设置单位的科技等级,共有3个级别,1级GUI显示为绿色,2、3级显示为黄色。超过3报错。")])]),C,e("div",k,[f,e("p",null,[a("若设置成true,则会在单位死亡时产生血迹,"),v,a(" 图像在"),n(s,{color:"orange"},{default:l(()=>[a("drawable/blood_mark.png"),q,a("当hideScorchMark:true")]),_:1}),a("时可以隐藏非生物则为黑色爆炸效果。")])]),x,e("div",D,[A,e("p",null,[a("能量恢复是持续的,如果你设置了"),n(s,{color:"orange"},{default:l(()=>[a("energyNeedsToRechargeToFull")]),_:1}),a(", 那么攻击时按energyRegen恢复,耗尽时的灰条按此处设定值恢复。")])]),P])}const M=t(p,[["render",F]]);export{E as __pageData,M as default};
|
|
@ -1 +1 @@
|
|||
import{_ as t,c as o,z as e,a,E as n,B as l,O as i,G as r,o as c}from"./chunks/framework.621e5595.js";const E=JSON.parse('{"title":"[core]组","description":"","frontmatter":{"outline":"deep"},"headers":[],"relativePath":"src/Unit/core.md","filePath":"src/Unit/core.md"}'),p={name:"src/Unit/core.md"},d=i("",51),h=e("br",null,null,-1),u=i("",20),b={class:"tip custom-block"},g=e("p",{class:"custom-block-title"},"TIP",-1),m=e("br",null,null,-1),y=e("br",null,null,-1),C=i("",13),k={class:"tip custom-block"},f=e("p",{class:"custom-block-title"},"TIP",-1),q=e("br",null,null,-1),v=e("br",null,null,-1),x=i("",77),D={class:"tip custom-block"},A=e("p",{class:"custom-block-title"},"TIP",-1),P=i("",183);function F(_,T,R,w,B,I){const s=r("font");return c(),o("div",null,[d,e("p",null,[a("主要在"),n(s,{color:"orange"},{default:l(()=>[a("启用多个自定义Mod")]),_:1}),a("进行优先级定义"),h,a(" 以逗号分隔的名称列表。像"),n(s,{color:"orange"},{default:l(()=>[a("名称一样,但优先级较低")]),_:1}),a(",对于"),n(s,{color:"orange"},{default:l(()=>[a("启用多个自定义mod")]),_:1}),a("有用。")]),u,e("div",b,[g,e("p",null,[a("早期是用于在"),n(s,{color:"orange"},{default:l(()=>[a("builtFrom")]),_:1}),a("的代码,并结合科技等级使用。如果工厂的等级低于单位的目标科技等级,则会在工厂里面隐藏该单位。"),m,a("自铁锈1.09后出现"),n(s,{color:"orange"},{default:l(()=>[a("overrideAndReplace")]),_:1}),a("后,该方法则不建议使用。有关于新策略,请参考"),n(s,{color:"orange"},{default:l(()=>[a("overrideAndReplace")]),_:1}),a("代码文档指南。"),y,a(" 设置单位的科技等级,共有3个级别,1级GUI显示为绿色,2、3级显示为黄色。超过3报错。")])]),C,e("div",k,[f,e("p",null,[a("若设置成true,则会在单位死亡时产生血迹,"),q,a(" 图像在"),n(s,{color:"orange"},{default:l(()=>[a("drawable/blood_mark.png"),v,a("当hideScorchMark:true")]),_:1}),a("时可以隐藏非生物则为黑色爆炸效果。")])]),x,e("div",D,[A,e("p",null,[a("能量恢复是持续的,如果你设置了"),n(s,{color:"orange"},{default:l(()=>[a("energyNeedsToRechargeToFull")]),_:1}),a(", 那么攻击时按energyRegen恢复,耗尽时的灰条按此处设定值恢复。")])]),P])}const M=t(p,[["render",F]]);export{E as __pageData,M as default};
|
||||
import{_ as t,c as o,z as e,a,E as n,B as l,O as i,G as r,o as c}from"./chunks/framework.621e5595.js";const E=JSON.parse('{"title":"[core]组","description":"","frontmatter":{"outline":"deep"},"headers":[],"relativePath":"src/Unit/core.md","filePath":"src/Unit/core.md"}'),p={name:"src/Unit/core.md"},d=i("",51),h=e("br",null,null,-1),u=i("",20),b={class:"tip custom-block"},g=e("p",{class:"custom-block-title"},"TIP",-1),m=e("br",null,null,-1),y=e("br",null,null,-1),C=i("",13),k={class:"tip custom-block"},f=e("p",{class:"custom-block-title"},"TIP",-1),v=e("br",null,null,-1),q=e("br",null,null,-1),x=i("",77),D={class:"tip custom-block"},A=e("p",{class:"custom-block-title"},"TIP",-1),P=i("",183);function F(_,T,R,w,B,I){const s=r("font");return c(),o("div",null,[d,e("p",null,[a("主要在"),n(s,{color:"orange"},{default:l(()=>[a("启用多个自定义Mod")]),_:1}),a("进行优先级定义"),h,a(" 以逗号分隔的名称列表。像"),n(s,{color:"orange"},{default:l(()=>[a("名称一样,但优先级较低")]),_:1}),a(",对于"),n(s,{color:"orange"},{default:l(()=>[a("启用多个自定义mod")]),_:1}),a("有用。")]),u,e("div",b,[g,e("p",null,[a("早期是用于在"),n(s,{color:"orange"},{default:l(()=>[a("builtFrom")]),_:1}),a("的代码,并结合科技等级使用。如果工厂的等级低于单位的目标科技等级,则会在工厂里面隐藏该单位。"),m,a("自铁锈1.09后出现"),n(s,{color:"orange"},{default:l(()=>[a("overrideAndReplace")]),_:1}),a("后,该方法则不建议使用。有关于新策略,请参考"),n(s,{color:"orange"},{default:l(()=>[a("overrideAndReplace")]),_:1}),a("代码文档指南。"),y,a(" 设置单位的科技等级,共有3个级别,1级GUI显示为绿色,2、3级显示为黄色。超过3报错。")])]),C,e("div",k,[f,e("p",null,[a("若设置成true,则会在单位死亡时产生血迹,"),v,a(" 图像在"),n(s,{color:"orange"},{default:l(()=>[a("drawable/blood_mark.png"),q,a("当hideScorchMark:true")]),_:1}),a("时可以隐藏非生物则为黑色爆炸效果。")])]),x,e("div",D,[A,e("p",null,[a("能量恢复是持续的,如果你设置了"),n(s,{color:"orange"},{default:l(()=>[a("energyNeedsToRechargeToFull")]),_:1}),a(", 那么攻击时按energyRegen恢复,耗尽时的灰条按此处设定值恢复。")])]),P])}const M=t(p,[["render",F]]);export{E as __pageData,M as default};
|
File diff suppressed because one or more lines are too long
|
@ -1,2 +0,0 @@
|
|||
import{_ as n,c as i,E as l,B as s,a as e,z as a,O as t,G as r,o as c}from"./chunks/framework.621e5595.js";const Z=JSON.parse('{"title":"[LogicBoolean] 逻辑序列组","description":"","frontmatter":{"outline":"deep"},"headers":[],"relativePath":"src/Unit/loginboolean.md","filePath":"src/Unit/loginboolean.md"}'),d={name:"src/Unit/loginboolean.md"},p=t("",4),u=a("code",null,"boolean",-1),h=t("",22),f=t("",6),m=a("br",null,null,-1),b=t("",4),_=a("h4",{id:"非",tabindex:"-1"},[e("非 "),a("a",{class:"header-anchor",href:"#非","aria-label":'Permalink to "非"'},"")],-1),g=a("p",null,[e("代码:not 中文释义:非"),a("br")],-1),y=a("code",null,"true",-1),T=a("code",null,"false",-1),q=a("code",null,"false",-1),A=a("code",null,"true",-1),C=a("code",null,"not>and>or",-1),D=a("br",null,null,-1),v=t("",7),k=t("",5),P=a("br",null,null,-1),I=t("",24),x=t("",13),F=t("",18),O=a("code",null,"self.hasFlag()",-1),U=a("code",null,"self.hasFlag(id=数字)",-1),E=a("br",null,null,-1),S=t("",15),R=t("",35),N={class:"danger custom-block"},V=a("p",{class:"custom-block-title"},"DANGER",-1),w=a("p",null,[a("a",{href:"https://www.bilibili.com/video/BV17v4y1r7dV",target:"_blank",rel:"noreferrer"},"https://www.bilibili.com/video/BV17v4y1r7dV"),e(" (感谢十山月)")],-1),W=a("iframe",{src:"//player.bilibili.com/player.html?aid=566144438&bvid=BV17v4y1r7dV&cid=988997369&page=1",scrolling:"no",border:"0",frameborder:"no",framespacing:"0",allowfullscreen:"true",width:"100%",height:"400"},`
|
||||
`,-1),B=t("",1),M=t("",2);function Q(L,G,H,Y,$,z){const o=r("font");return c(),i("div",null,[p,l(o,{color:"orange"},{default:s(()=>[e("布尔值")]),_:1}),e("表达“真(true)”或“假(false)”的一个状态。在铁锈中,布尔值("),u,e(")被运用于逻辑判断。"),h,a("blockquote",null,[a("p",null,[e("[!TIP] 请注意,铁锈中等于的符号为"),l(o,{color:"orange"},{default:s(()=>[e("==")]),_:1}),e(","),l(o,{color:"orange"},{default:s(()=>[e("=")]),_:1}),e("在铁锈中用于赋值或参数。")])]),f,a("blockquote",null,[a("p",null,[e("[!TIP] "),l(o,{color:"orange"},{default:s(()=>[e("and")]),_:1}),e("用于连接两个逻辑判断,只有在这两个逻辑判断的值都为"),l(o,{color:"orange"},{default:s(()=>[e("true")]),_:1}),e("时,"),l(o,{color:"orange"},{default:s(()=>[e("and")]),_:1}),e("的值才为true。 "),m])]),b,a("blockquote",null,[a("p",null,[e("[!TIP] "),l(o,{color:"orange"},{default:s(()=>[e("or")]),_:1}),e("用于连接两个逻辑判断,只要这两个逻辑判断的值有一个为"),l(o,{color:"orange"},{default:s(()=>[e("true")]),_:1}),e("时,"),l(o,{color:"orange"},{default:s(()=>[e("or")]),_:1}),e("的值就为true。")])]),_,g,a("blockquote",null,[a("p",null,[e("[!TIP] "),l(o,{color:"orange"},{default:s(()=>[e("not")]),_:1}),e("用于将某个逻辑判断的值取反,即"),y,e("变"),T,e(","),q,e("变"),A,e("。")])]),a("blockquote",null,[a("p",null,[e("[!NOTE] 多个逻辑运算符同时使用时,优先级为"),C,e(",同时"),l(o,{color:"orange"},{default:s(()=>[e("支持使用括号改变运算优先级")]),_:1}),e("。 "),D,e("推荐"),l(o,{color:"orange"},{default:s(()=>[e("在不确定优先级时打括号")]),_:1}),e("。")])]),v,a("blockquote",null,[a("p",null,[e("[!NOTE] 不同数据类型通常"),l(o,{color:"orange"},{default:s(()=>[e("不能直接进行算数运算")]),_:1}),e(",但在部分情况下,"),l(o,{color:"orange"},{default:s(()=>[e("number")]),_:1}),e("和"),l(o,{color:"orange"},{default:s(()=>[e("float")]),_:1}),e("类型可以混用(建议"),l(o,{color:"orange"},{default:s(()=>[e("所有数值全部使用float")]),_:1}),e("来避免混淆)。")])]),k,a("blockquote",null,[a("p",null,[e("[!NOTE] 对于"),l(o,{color:"orange"},{default:s(()=>[e("不满足交换律的运算符")]),_:1}),e(",需要注意"),l(o,{color:"orange"},{default:s(()=>[e("运算优先级")]),_:1}),e("是否正确。由于铁锈本身bug,"),l(o,{color:"orange"},{default:s(()=>[e("在数学上正确的优先级不一定在铁锈中正确")]),_:1}),e(",因此可能出现减法顺序混乱等问题。 "),P,e("为了避免可能的问题,请尽量在任何"),l(o,{color:"orange"},{default:s(()=>[e("不满足交换律的运算符")]),_:1}),e("两边打上括号。")])]),I,a("blockquote",null,[a("p",null,[e("[!NOTE] 引用资源时,请确保"),l(o,{color:"orange"},{default:s(()=>[e("这个资源在这个单位定义过")]),_:1}),e(",否则会报错。")])]),x,a("blockquote",null,[a("p",null,[e("[!NOTE] 单位计时部分能返回到最小时间精度为"),l(o,{color:"orange"},{default:s(()=>[e("0.1秒")]),_:1}),e("。")])]),F,a("p",null,[O,e("用于获取自身是否有"),l(o,{color:"orange"},{default:s(()=>[e("标志")]),_:1}),e(",格式为"),U,e("。")]),a("blockquote",null,[a("p",null,[e("[!NOTE] 不同于"),l(o,{color:"orange"},{default:s(()=>[e("标签(tag)")]),_:1}),e(","),l(o,{color:"orange"},{default:s(()=>[e("标志(flag)")]),_:1}),e("是内置的一些"),l(o,{color:"orange"},{default:s(()=>[e("布尔值")]),_:1}),e(",无需定义即可直接使用。"),E,e(" 标签的添加方法为"),l(o,{color:"orange"},{default:s(()=>[e("[action]addResource:flag=1,3-7,13")]),_:1}),e(",且只支持"),l(o,{color:"orange"},{default:s(()=>[e("0-31")]),_:1}),e(",标签的移除方法与之相反。")])]),S,a("blockquote",null,[a("p",null,[e("[!NOTE] 路径点类型可以是"),l(o,{color:"orange"},{default:s(()=>[e("move, attackMove, guard, loadInto, loadUp, attack, reclaim, repair, touchTarget, build, follow, setPassiveTarget")]),_:1}),e("。")])]),R,a("div",N,[V,a("p",null,[e("在"),l(o,{color:"orange"},{default:s(()=>[e("跨单位读取数组")]),_:1}),e("时,如果下标使用了逻辑,无论逻辑值都会返回第零项,")]),l(o,{color:"orange"},{default:s(()=>[e("为游戏bug")]),_:1}),e(",解决方法可以参考:"),w,W,B]),M])}const J=n(d,[["render",Q]]);export{Z as __pageData,J as default};
|
22
assets/src_Unit_loginboolean.md.ce8489af.js
Normal file
22
assets/src_Unit_loginboolean.md.ce8489af.js
Normal file
File diff suppressed because one or more lines are too long
2
assets/src_Unit_loginboolean.md.ce8489af.lean.js
Normal file
2
assets/src_Unit_loginboolean.md.ce8489af.lean.js
Normal file
|
@ -0,0 +1,2 @@
|
|||
import{_ as n,c as i,E as s,B as l,a as e,z as a,O as t,G as c,o as r}from"./chunks/framework.621e5595.js";const be=JSON.parse('{"title":"[LogicBoolean] 逻辑序列组","description":"","frontmatter":{"outline":"deep"},"headers":[],"relativePath":"src/Unit/loginboolean.md","filePath":"src/Unit/loginboolean.md"}'),d={name:"src/Unit/loginboolean.md"},p=t("",4),u=a("code",null,"boolean",-1),h=t("",22),f={class:"tip custom-block"},m=a("p",{class:"custom-block-title"},"TIP",-1),b=t("",6),_={class:"tip custom-block"},g=a("p",{class:"custom-block-title"},"TIP",-1),y=a("br",null,null,-1),T=t("",4),q={class:"tip custom-block"},A=a("p",{class:"custom-block-title"},"TIP",-1),C=a("h4",{id:"非",tabindex:"-1"},[e("非 "),a("a",{class:"header-anchor",href:"#非","aria-label":'Permalink to "非"'},"")],-1),D=a("p",null,[e("代码:not 中文释义:非"),a("br")],-1),k={class:"tip custom-block"},v=a("p",{class:"custom-block-title"},"TIP",-1),P=a("code",null,"true",-1),I=a("code",null,"false",-1),x=a("code",null,"false",-1),F=a("code",null,"true",-1),U={class:"info custom-block"},O=a("p",{class:"custom-block-title"},"INFO",-1),S=a("code",null,"not>and>or",-1),E=a("br",null,null,-1),R=t("",7),N={class:"info custom-block"},V=a("p",{class:"custom-block-title"},"INFO",-1),w=t("",5),B={class:"info custom-block"},W=a("p",{class:"custom-block-title"},"INFO",-1),M=a("br",null,null,-1),Q=t("",24),G={class:"info custom-block"},L=a("p",{class:"custom-block-title"},"INFO",-1),H=t("",13),Y={class:"info custom-block"},$=a("p",{class:"custom-block-title"},"INFO",-1),z=t("",18),j=a("code",null,"self.hasFlag()",-1),K=a("code",null,"self.hasFlag(id=数字)",-1),Z=a("br",null,null,-1),J=t("",15),X={class:"info custom-block"},ee=a("p",{class:"custom-block-title"},"INFO",-1),ae=t("",35),oe={class:"danger custom-block"},se=a("p",{class:"custom-block-title"},"DANGER",-1),le=a("p",null,[a("a",{href:"https://www.bilibili.com/video/BV17v4y1r7dV",target:"_blank",rel:"noreferrer"},"https://www.bilibili.com/video/BV17v4y1r7dV"),e(" (感谢十山月)")],-1),te=a("iframe",{src:"//player.bilibili.com/player.html?aid=566144438&bvid=BV17v4y1r7dV&cid=988997369&page=1",scrolling:"no",border:"0",frameborder:"no",framespacing:"0",allowfullscreen:"true",width:"100%",height:"400"},`
|
||||
`,-1),ne=t("",1),ie=t("",2);function ce(re,de,pe,ue,he,fe){const o=c("font");return r(),i("div",null,[p,s(o,{color:"orange"},{default:l(()=>[e("布尔值")]),_:1}),e("表达“真(true)”或“假(false)”的一个状态。在铁锈中,布尔值("),u,e(")被运用于逻辑判断。"),h,a("div",f,[m,a("p",null,[e("请注意,铁锈中等于的符号为"),s(o,{color:"orange"},{default:l(()=>[e("==")]),_:1}),e(","),s(o,{color:"orange"},{default:l(()=>[e("=")]),_:1}),e("在铁锈中用于赋值或参数。")])]),b,a("div",_,[g,s(o,{color:"orange"},{default:l(()=>[e("and")]),_:1}),e("用于连接两个逻辑判断,只有在这两个逻辑判断的值都为"),s(o,{color:"orange"},{default:l(()=>[e("true")]),_:1}),e("时,"),s(o,{color:"orange"},{default:l(()=>[e("and")]),_:1}),e("的值才为true。"),y]),T,a("div",q,[A,s(o,{color:"orange"},{default:l(()=>[e("or")]),_:1}),e("用于连接两个逻辑判断,只要这两个逻辑判断的值有一个为"),s(o,{color:"orange"},{default:l(()=>[e("true")]),_:1}),e("时,"),s(o,{color:"orange"},{default:l(()=>[e("or")]),_:1}),e("的值就为true。")]),C,D,a("div",k,[v,s(o,{color:"orange"},{default:l(()=>[e("not")]),_:1}),e("用于将某个逻辑判断的值取反,即"),P,e("变"),I,e(","),x,e("变"),F,e("。")]),a("div",U,[O,a("p",null,[e("多个逻辑运算符同时使用时,优先级为"),S,e(",同时"),s(o,{color:"orange"},{default:l(()=>[e("支持使用括号改变运算优先级")]),_:1}),e("。 "),E,e("推荐"),s(o,{color:"orange"},{default:l(()=>[e("在不确定优先级时打括号")]),_:1}),e("。")])]),R,a("div",N,[V,a("p",null,[e("不同数据类型通常"),s(o,{color:"orange"},{default:l(()=>[e("不能直接进行算数运算")]),_:1}),e(",但在部分情况下,"),s(o,{color:"orange"},{default:l(()=>[e("number")]),_:1}),e("和"),s(o,{color:"orange"},{default:l(()=>[e("float")]),_:1}),e("类型可以混用(建议"),s(o,{color:"orange"},{default:l(()=>[e("所有数值全部使用float")]),_:1}),e("来避免混淆)。")])]),w,a("div",B,[W,a("p",null,[e("对于"),s(o,{color:"orange"},{default:l(()=>[e("不满足交换律的运算符")]),_:1}),e(",需要注意"),s(o,{color:"orange"},{default:l(()=>[e("运算优先级")]),_:1}),e("是否正确。由于铁锈本身bug,"),s(o,{color:"orange"},{default:l(()=>[e("在数学上正确的优先级不一定在铁锈中正确")]),_:1}),e(",因此可能出现减法顺序混乱等问题。 "),M,e("为了避免可能的问题,请尽量在任何"),s(o,{color:"orange"},{default:l(()=>[e("不满足交换律的运算符")]),_:1}),e("两边打上括号。")])]),Q,a("div",G,[L,a("p",null,[e("引用资源时,请确保"),s(o,{color:"orange"},{default:l(()=>[e("这个资源在这个单位定义过")]),_:1}),e(",否则会报错。")])]),H,a("div",Y,[$,a("p",null,[e("单位计时部分能返回到最小时间精度为"),s(o,{color:"orange"},{default:l(()=>[e("0.1秒")]),_:1}),e("。")])]),z,a("p",null,[j,e("用于获取自身是否有"),s(o,{color:"orange"},{default:l(()=>[e("标志")]),_:1}),e(",格式为"),K,e("。")]),a("blockquote",null,[a("p",null,[e("[!NOTE] 不同于"),s(o,{color:"orange"},{default:l(()=>[e("标签(tag)")]),_:1}),e(","),s(o,{color:"orange"},{default:l(()=>[e("标志(flag)")]),_:1}),e("是内置的一些"),s(o,{color:"orange"},{default:l(()=>[e("布尔值")]),_:1}),e(",无需定义即可直接使用。"),Z,e(" 标签的添加方法为"),s(o,{color:"orange"},{default:l(()=>[e("[action]addResource:flag=1,3-7,13")]),_:1}),e(",且只支持"),s(o,{color:"orange"},{default:l(()=>[e("0-31")]),_:1}),e(",标签的移除方法与之相反。")])]),J,a("div",X,[ee,a("p",null,[e("路径点类型可以是"),s(o,{color:"orange"},{default:l(()=>[e("move, attackMove, guard, loadInto, loadUp, attack, reclaim, repair, touchTarget, build, follow, setPassiveTarget")]),_:1}),e("。")])]),ae,a("div",oe,[se,a("p",null,[e("在"),s(o,{color:"orange"},{default:l(()=>[e("跨单位读取数组")]),_:1}),e("时,如果下标使用了逻辑,无论逻辑值都会返回第零项,")]),s(o,{color:"orange"},{default:l(()=>[e("为游戏bug")]),_:1}),e(",解决方法可以参考:"),le,te,ne]),ie])}const _e=n(d,[["render",ce]]);export{be as __pageData,_e as default};
|
|
@ -1 +1 @@
|
|||
{"src_map_tsada.md":"c9825e13","index.md":"afaaa10c","markdown-examples.md":"ef4d628f","src_debug_test.md":"b63dafe9","src_unit_canbuild.md":"1a449380","src_unit_core.md":"0eaf9ec8","src_unit_graphics.md":"6130445c","api-dev.md":"9878a682","src_unit_loginboolean.md":"cb8a5f23"}
|
||||
{"index.md":"2330ee51","src_debug_test.md":"b63dafe9","src_unit_canbuild.md":"1a449380","src_unit_graphics.md":"6130445c","src_unit_loginboolean.md":"ce8489af","api-dev.md":"ea2d1417","src_map_tsada.md":"c9825e13","src_unit_core.md":"3a71bc88"}
|
||||
|
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue
Block a user