Deploying to gh-pages from @ LingASDJ/RW-API-Code@65a4363053 🚀
This commit is contained in:
parent
5665cdce69
commit
0a6e0baefa
10
api-dev.html
10
api-dev.html
File diff suppressed because one or more lines are too long
|
@ -1,4 +1,4 @@
|
|||
import{_ as e,K as p,o as c,c as r,k as s,a,O as n,w as o,X as t}from"./chunks/framework.d377e0cc.js";const Q=JSON.parse('{"title":"","description":"","frontmatter":{"outline":"deep"},"headers":[],"relativePath":"api-dev.md","filePath":"api-dev.md"}'),i={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),h=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),u={class:"tip custom-block"},D=s("p",{class:"custom-block-title"},"TIP",-1),_=s("br",null,null,-1),y=s("br",null,null,-1),C=s("br",null,null,-1),b=s("blockquote",null,[s("p",null,[a("1.确保代码的解释通俗易懂,能让新手迅速入门"),s("br"),a("2.编写的代码应该以以下格式进行:")]),s("h3",null,"代码的格式编写规范:"),a("1.代码的英文名和附属信息(参考站点已添加的代码例子)"),s("br")],-1),A=s("p",null,[a("2.代码的简介"),s("br"),a(" 3.代码的要点指示"),s("br"),a(" 4.代码的演示例子"),s("br"),a(" 5.代码的扩展例子(可选)"),s("br"),a(" 6.GIF演示/视频演示(可选)")],-1),m={class:"tip custom-block"},F=s("p",{class:"custom-block-title"},"TIP",-1),g=s("br",null,null,-1),f={class:"warning custom-block"},k=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),q={class:"info custom-block"},P=s("p",{class:"custom-block-title"},"INFO",-1),T=t(`<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,K as p,o as c,c as r,k as s,a,O as n,w as o,X as t}from"./chunks/framework.d377e0cc.js";const Q=JSON.parse('{"title":"","description":"","frontmatter":{"outline":"deep"},"headers":[],"relativePath":"api-dev.md","filePath":"api-dev.md"}'),i={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://rust.coldmint.top/ftp/ling/cdnpng/logo.png"})],-1),h={class:"tip custom-block"},D=s("p",{class:"custom-block-title"},"TIP",-1),_=s("br",null,null,-1),y=s("br",null,null,-1),C=s("br",null,null,-1),b=s("blockquote",null,[s("p",null,[a("1.确保代码的解释通俗易懂,能让新手迅速入门"),s("br"),a("2.编写的代码应该以以下格式进行:")]),s("h3",null,"代码的格式编写规范:"),a("1.代码的英文名和附属信息(参考站点已添加的代码例子)"),s("br")],-1),A=s("p",null,[a("2.代码的简介"),s("br"),a(" 3.代码的要点指示"),s("br"),a(" 4.代码的演示例子"),s("br"),a(" 5.代码的扩展例子(可选)"),s("br"),a(" 6.GIF演示/视频演示(可选)")],-1),m={class:"tip custom-block"},F=s("p",{class:"custom-block-title"},"TIP",-1),g=s("br",null,null,-1),f={class:"warning custom-block"},k=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),q={class:"info custom-block"},P=s("p",{class:"custom-block-title"},"INFO",-1),T=t(`<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),w={class:"tip custom-block"},x=s("p",{class:"custom-block-title"},"TIP",-1),I=s("br",null,null,-1),N=s("blockquote",null,[s("p",null,[a("npm i docsify-cli -g"),s("br"),a("docsify serve docs")])],-1),E=s("div",{class:"info custom-block"},[s("p",{class:"custom-block-title"},"INFO"),s("p",null,"2.Netlify部署")],-1),S={class:"tip custom-block"},R=s("p",{class:"custom-block-title"},"TIP",-1),M=s("br",null,null,-1),V=s("br",null,null,-1),O=s("br",null,null,-1),G=t(`<h4 id="_1-md扩展格式" tabindex="-1">1.MD扩展格式: <a class="header-anchor" href="#_1-md扩展格式" aria-label="Permalink to "1.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>
|
||||
|
@ -34,4 +34,4 @@ import{_ as e,K as p,o as c,c as r,k as s,a,O as n,w as o,X as t}from"./chunks/f
|
|||
`,-1),$=t(`<div class="language-html"><button title="Copy Code" class="copy"></button><span class="lang">html</span><pre class="shiki material-theme-palenight"><code><span class="line"><span style="color:#89DDFF;"><</span><span style="color:#F07178;">iframe</span><span style="color:#89DDFF;"> </span><span style="color:#C792EA;">src</span><span style="color:#89DDFF;">=</span><span style="color:#89DDFF;">"</span><span style="color:#C3E88D;">视频地址</span><span style="color:#89DDFF;">"</span><span style="color:#89DDFF;"> </span><span style="color:#C792EA;">scrolling</span><span style="color:#89DDFF;">=</span><span style="color:#89DDFF;">"</span><span style="color:#C3E88D;">no</span><span style="color:#89DDFF;">"</span><span style="color:#89DDFF;"> border=</span><span style="color:#89DDFF;">"</span><span style="color:#C3E88D;">0</span><span style="color:#89DDFF;">"</span><span style="color:#89DDFF;"> </span><span style="color:#C792EA;">frameborder</span><span style="color:#89DDFF;">=</span><span style="color:#89DDFF;">"</span><span style="color:#C3E88D;">no</span><span style="color:#89DDFF;">"</span><span style="color:#89DDFF;"> </span><span style="color:#C792EA;">framespacing</span><span style="color:#89DDFF;">=</span><span style="color:#89DDFF;">"</span><span style="color:#C3E88D;">0</span><span style="color:#89DDFF;">"</span><span style="color:#89DDFF;"> </span><span style="color:#C792EA;">allowfullscreen</span><span style="color:#89DDFF;">=</span><span style="color:#89DDFF;">"</span><span style="color:#C3E88D;">true</span><span style="color:#89DDFF;">"</span><span style="color:#89DDFF;"> </span><span style="color:#C792EA;">width</span><span style="color:#89DDFF;">=</span><span style="color:#89DDFF;">"</span><span style="color:#C3E88D;">100%</span><span style="color:#89DDFF;">"</span><span style="color:#89DDFF;"> </span><span style="color:#C792EA;">height</span><span style="color:#89DDFF;">=</span><span style="color:#89DDFF;">"</span><span style="color:#C3E88D;">400</span><span style="color:#89DDFF;">"</span><span style="color:#89DDFF;">></span></span>
|
||||
<span class="line"><span style="color:#89DDFF;"></</span><span style="color:#F07178;">iframe</span><span style="color:#89DDFF;">></span></span></code></pre></div><h4 id="_3-插入表格" tabindex="-1">3.插入表格 <a class="header-anchor" href="#_3-插入表格" aria-label="Permalink to "3.插入表格""></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="_4-扩展写法-高级" tabindex="-1">4.扩展写法(高级) <a class="header-anchor" href="#_4-扩展写法-高级" aria-label="Permalink to "4.扩展写法(高级)""></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="info custom-block"><p class="custom-block-title">INFO</p><p>编写于2023-5-9 RTS-Code-API[第3版-第3次修订]</p></div>`,12);function j(H,W,z,X,J,K){const l=p("font");return c(),r("div",null,[d,h,s("div",u,[D,s("p",null,[a("0.如果你确定你想"),n(l,{color:"orange"},{default:o(()=>[a("帮忙开发此站点")]),_:1}),a(","),_,a(" 就可以点击右上角的Github按钮,"),n(l,{color:"orange"},{default:o(()=>[a("Clone我们的库")]),_:1}),a(","),y,a(" 编写代码并进行PR申请,我非常感谢你的帮忙,感谢各位的支持与帮助。"),C]),b,A]),s("div",m,[F,s("p",null,[a("使用外部资源时,请使用支持HTTPS协议的资源地址传输。"),g,a(" 否则在"),n(l,{color:"orange"},{default:o(()=>[a("Google Chrome等一系列以CEF的内核")]),_:1}),a("上会因为强制替换HTTPS导致资源无法打开。")])]),s("div",f,[k,s("p",null,[a("不能使用过于高深的说明,严禁出现谜语人话语,无用话语,任何玩梗, 夹带私货等一系列与本站无关的东西,违者将不能通过"),n(l,{color:"green"},{default:o(()=>[a("PR审核")]),_:1})])]),v,s("div",q,[P,s("p",null,[a("为了更好的方便一起编写站点的贡献者,本站点提供了以下的"),n(l,{color:"green"},{default:o(()=>[a("扩展MD格式供各位书写")]),_:1})])]),T,s("div",w,[x,s("p",null,[a("如果要本地测试,请确保设备有"),n(l,{color:"green"},{default:o(()=>[a("Node.js")]),_:1}),a(" 并在项目根目录使用以下命令:"),I]),N]),E,s("div",S,[R,s("p",null,[a("如果你已经发送了PR请求,可以通过我的Netlify预览站点进行预览,"),M,a(" Netlify会在你的PR请求下面显示你的预览页面地址。"),V,a(" 点击"),s("b",null,[n(l,{color:"orange"},{default:o(()=>[a("😎 Deploy Preview后面的链接")]),_:1})]),a("即可看见效果"),O,a(" 由于某些原因,TX会拦截Netlify的站点,请使用浏览器预览。")])]),G,B,$])}const U=e(i,[["render",j]]);export{Q as __pageData,U 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="_4-扩展写法-高级" tabindex="-1">4.扩展写法(高级) <a class="header-anchor" href="#_4-扩展写法-高级" aria-label="Permalink to "4.扩展写法(高级)""></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="info custom-block"><p class="custom-block-title">INFO</p><p>编写于2023-5-9 RTS-Code-API[第3版-第3次修订]</p></div>`,12);function j(H,W,z,X,J,K){const l=p("font");return c(),r("div",null,[d,u,s("div",h,[D,s("p",null,[a("0.如果你确定你想"),n(l,{color:"orange"},{default:o(()=>[a("帮忙开发此站点")]),_:1}),a(","),_,a(" 就可以点击右上角的Github按钮,"),n(l,{color:"orange"},{default:o(()=>[a("Clone我们的库")]),_:1}),a(","),y,a(" 编写代码并进行PR申请,我非常感谢你的帮忙,感谢各位的支持与帮助。"),C]),b,A]),s("div",m,[F,s("p",null,[a("使用外部资源时,请使用支持HTTPS协议的资源地址传输。"),g,a(" 否则在"),n(l,{color:"orange"},{default:o(()=>[a("Google Chrome等一系列以CEF的内核")]),_:1}),a("上会因为强制替换HTTPS导致资源无法打开。")])]),s("div",f,[k,s("p",null,[a("不能使用过于高深的说明,严禁出现谜语人话语,无用话语,任何玩梗, 夹带私货等一系列与本站无关的东西,违者将不能通过"),n(l,{color:"green"},{default:o(()=>[a("PR审核")]),_:1})])]),v,s("div",q,[P,s("p",null,[a("为了更好的方便一起编写站点的贡献者,本站点提供了以下的"),n(l,{color:"green"},{default:o(()=>[a("扩展MD格式供各位书写")]),_:1})])]),T,s("div",w,[x,s("p",null,[a("如果要本地测试,请确保设备有"),n(l,{color:"green"},{default:o(()=>[a("Node.js")]),_:1}),a(" 并在项目根目录使用以下命令:"),I]),N]),E,s("div",S,[R,s("p",null,[a("如果你已经发送了PR请求,可以通过我的Netlify预览站点进行预览,"),M,a(" Netlify会在你的PR请求下面显示你的预览页面地址。"),V,a(" 点击"),s("b",null,[n(l,{color:"orange"},{default:o(()=>[a("😎 Deploy Preview后面的链接")]),_:1})]),a("即可看见效果"),O,a(" 由于某些原因,TX会拦截Netlify的站点,请使用浏览器预览。")])]),G,B,$])}const U=e(i,[["render",j]]);export{Q as __pageData,U as default};
|
|
@ -1,2 +1,2 @@
|
|||
import{_ as e,K as p,o as c,c as r,k as s,a,O as n,w as o,X as t}from"./chunks/framework.d377e0cc.js";const Q=JSON.parse('{"title":"","description":"","frontmatter":{"outline":"deep"},"headers":[],"relativePath":"api-dev.md","filePath":"api-dev.md"}'),i={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),h=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),u={class:"tip custom-block"},D=s("p",{class:"custom-block-title"},"TIP",-1),_=s("br",null,null,-1),y=s("br",null,null,-1),C=s("br",null,null,-1),b=s("blockquote",null,[s("p",null,[a("1.确保代码的解释通俗易懂,能让新手迅速入门"),s("br"),a("2.编写的代码应该以以下格式进行:")]),s("h3",null,"代码的格式编写规范:"),a("1.代码的英文名和附属信息(参考站点已添加的代码例子)"),s("br")],-1),A=s("p",null,[a("2.代码的简介"),s("br"),a(" 3.代码的要点指示"),s("br"),a(" 4.代码的演示例子"),s("br"),a(" 5.代码的扩展例子(可选)"),s("br"),a(" 6.GIF演示/视频演示(可选)")],-1),m={class:"tip custom-block"},F=s("p",{class:"custom-block-title"},"TIP",-1),g=s("br",null,null,-1),f={class:"warning custom-block"},k=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),q={class:"info custom-block"},P=s("p",{class:"custom-block-title"},"INFO",-1),T=t("",6),w={class:"tip custom-block"},x=s("p",{class:"custom-block-title"},"TIP",-1),I=s("br",null,null,-1),N=s("blockquote",null,[s("p",null,[a("npm i docsify-cli -g"),s("br"),a("docsify serve docs")])],-1),E=s("div",{class:"info custom-block"},[s("p",{class:"custom-block-title"},"INFO"),s("p",null,"2.Netlify部署")],-1),S={class:"tip custom-block"},R=s("p",{class:"custom-block-title"},"TIP",-1),M=s("br",null,null,-1),V=s("br",null,null,-1),O=s("br",null,null,-1),G=t("",12),B=s("iframe",{src:"https://vdse.bdstatic.com//192d9a98d782d9c74c96f09db9378d93.mp4",scrolling:"no",border:"0",frameborder:"no",framespacing:"0",allowfullscreen:"true",width:"100%",height:"400"},`
|
||||
`,-1),$=t("",12);function j(H,W,z,X,J,K){const l=p("font");return c(),r("div",null,[d,h,s("div",u,[D,s("p",null,[a("0.如果你确定你想"),n(l,{color:"orange"},{default:o(()=>[a("帮忙开发此站点")]),_:1}),a(","),_,a(" 就可以点击右上角的Github按钮,"),n(l,{color:"orange"},{default:o(()=>[a("Clone我们的库")]),_:1}),a(","),y,a(" 编写代码并进行PR申请,我非常感谢你的帮忙,感谢各位的支持与帮助。"),C]),b,A]),s("div",m,[F,s("p",null,[a("使用外部资源时,请使用支持HTTPS协议的资源地址传输。"),g,a(" 否则在"),n(l,{color:"orange"},{default:o(()=>[a("Google Chrome等一系列以CEF的内核")]),_:1}),a("上会因为强制替换HTTPS导致资源无法打开。")])]),s("div",f,[k,s("p",null,[a("不能使用过于高深的说明,严禁出现谜语人话语,无用话语,任何玩梗, 夹带私货等一系列与本站无关的东西,违者将不能通过"),n(l,{color:"green"},{default:o(()=>[a("PR审核")]),_:1})])]),v,s("div",q,[P,s("p",null,[a("为了更好的方便一起编写站点的贡献者,本站点提供了以下的"),n(l,{color:"green"},{default:o(()=>[a("扩展MD格式供各位书写")]),_:1})])]),T,s("div",w,[x,s("p",null,[a("如果要本地测试,请确保设备有"),n(l,{color:"green"},{default:o(()=>[a("Node.js")]),_:1}),a(" 并在项目根目录使用以下命令:"),I]),N]),E,s("div",S,[R,s("p",null,[a("如果你已经发送了PR请求,可以通过我的Netlify预览站点进行预览,"),M,a(" Netlify会在你的PR请求下面显示你的预览页面地址。"),V,a(" 点击"),s("b",null,[n(l,{color:"orange"},{default:o(()=>[a("😎 Deploy Preview后面的链接")]),_:1})]),a("即可看见效果"),O,a(" 由于某些原因,TX会拦截Netlify的站点,请使用浏览器预览。")])]),G,B,$])}const U=e(i,[["render",j]]);export{Q as __pageData,U as default};
|
||||
import{_ as e,K as p,o as c,c as r,k as s,a,O as n,w as o,X as t}from"./chunks/framework.d377e0cc.js";const Q=JSON.parse('{"title":"","description":"","frontmatter":{"outline":"deep"},"headers":[],"relativePath":"api-dev.md","filePath":"api-dev.md"}'),i={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://rust.coldmint.top/ftp/ling/cdnpng/logo.png"})],-1),h={class:"tip custom-block"},D=s("p",{class:"custom-block-title"},"TIP",-1),_=s("br",null,null,-1),y=s("br",null,null,-1),C=s("br",null,null,-1),b=s("blockquote",null,[s("p",null,[a("1.确保代码的解释通俗易懂,能让新手迅速入门"),s("br"),a("2.编写的代码应该以以下格式进行:")]),s("h3",null,"代码的格式编写规范:"),a("1.代码的英文名和附属信息(参考站点已添加的代码例子)"),s("br")],-1),A=s("p",null,[a("2.代码的简介"),s("br"),a(" 3.代码的要点指示"),s("br"),a(" 4.代码的演示例子"),s("br"),a(" 5.代码的扩展例子(可选)"),s("br"),a(" 6.GIF演示/视频演示(可选)")],-1),m={class:"tip custom-block"},F=s("p",{class:"custom-block-title"},"TIP",-1),g=s("br",null,null,-1),f={class:"warning custom-block"},k=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),q={class:"info custom-block"},P=s("p",{class:"custom-block-title"},"INFO",-1),T=t("",6),w={class:"tip custom-block"},x=s("p",{class:"custom-block-title"},"TIP",-1),I=s("br",null,null,-1),N=s("blockquote",null,[s("p",null,[a("npm i docsify-cli -g"),s("br"),a("docsify serve docs")])],-1),E=s("div",{class:"info custom-block"},[s("p",{class:"custom-block-title"},"INFO"),s("p",null,"2.Netlify部署")],-1),S={class:"tip custom-block"},R=s("p",{class:"custom-block-title"},"TIP",-1),M=s("br",null,null,-1),V=s("br",null,null,-1),O=s("br",null,null,-1),G=t("",12),B=s("iframe",{src:"https://vdse.bdstatic.com//192d9a98d782d9c74c96f09db9378d93.mp4",scrolling:"no",border:"0",frameborder:"no",framespacing:"0",allowfullscreen:"true",width:"100%",height:"400"},`
|
||||
`,-1),$=t("",12);function j(H,W,z,X,J,K){const l=p("font");return c(),r("div",null,[d,u,s("div",h,[D,s("p",null,[a("0.如果你确定你想"),n(l,{color:"orange"},{default:o(()=>[a("帮忙开发此站点")]),_:1}),a(","),_,a(" 就可以点击右上角的Github按钮,"),n(l,{color:"orange"},{default:o(()=>[a("Clone我们的库")]),_:1}),a(","),y,a(" 编写代码并进行PR申请,我非常感谢你的帮忙,感谢各位的支持与帮助。"),C]),b,A]),s("div",m,[F,s("p",null,[a("使用外部资源时,请使用支持HTTPS协议的资源地址传输。"),g,a(" 否则在"),n(l,{color:"orange"},{default:o(()=>[a("Google Chrome等一系列以CEF的内核")]),_:1}),a("上会因为强制替换HTTPS导致资源无法打开。")])]),s("div",f,[k,s("p",null,[a("不能使用过于高深的说明,严禁出现谜语人话语,无用话语,任何玩梗, 夹带私货等一系列与本站无关的东西,违者将不能通过"),n(l,{color:"green"},{default:o(()=>[a("PR审核")]),_:1})])]),v,s("div",q,[P,s("p",null,[a("为了更好的方便一起编写站点的贡献者,本站点提供了以下的"),n(l,{color:"green"},{default:o(()=>[a("扩展MD格式供各位书写")]),_:1})])]),T,s("div",w,[x,s("p",null,[a("如果要本地测试,请确保设备有"),n(l,{color:"green"},{default:o(()=>[a("Node.js")]),_:1}),a(" 并在项目根目录使用以下命令:"),I]),N]),E,s("div",S,[R,s("p",null,[a("如果你已经发送了PR请求,可以通过我的Netlify预览站点进行预览,"),M,a(" Netlify会在你的PR请求下面显示你的预览页面地址。"),V,a(" 点击"),s("b",null,[n(l,{color:"orange"},{default:o(()=>[a("😎 Deploy Preview后面的链接")]),_:1})]),a("即可看见效果"),O,a(" 由于某些原因,TX会拦截Netlify的站点,请使用浏览器预览。")])]),G,B,$])}const U=e(i,[["render",j]]);export{Q as __pageData,U as default};
|
|
@ -958,4 +958,4 @@ import{_ as tn,o as nn,b as rn,w as an,l as sn,p as on,m as cn,k as T,G as le,a5
|
|||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/class fs{constructor(e,n){this.app=e,this.installations=n,this.initialized=!1}_init(e){this.initialized||((e==null?void 0:e.dataCollectionEnabled)!==void 0&&(this.dataCollectionEnabled=e.dataCollectionEnabled),(e==null?void 0:e.instrumentationEnabled)!==void 0&&(this.instrumentationEnabled=e.instrumentationEnabled),f.getInstance().requiredApisAvailable()?Ie().then(n=>{n&&(Wa(),Xt(this).then(()=>tt(this),()=>tt(this)),this.initialized=!0)}).catch(n=>{w.info(`Environment doesn't support IndexedDB: ${n}`)}):w.info('Firebase Performance cannot start if the browser does not support "Fetch" and "Promise", or cookies are disabled.'))}set instrumentationEnabled(e){_.getInstance().instrumentationEnabled=e}get instrumentationEnabled(){return _.getInstance().instrumentationEnabled}set dataCollectionEnabled(e){_.getInstance().dataCollectionEnabled=e}get dataCollectionEnabled(){return _.getInstance().dataCollectionEnabled}}const hs="[DEFAULT]";function ps(t=ft()){return t=ye(t),j(t,"performance").getImmediate()}const ms=(t,{options:e})=>{const n=t.getProvider("app").getImmediate(),r=t.getProvider("installations-internal").getImmediate();if(n.name!==hs)throw p.create("FB not default");if(typeof window>"u")throw p.create("no window");Ea(window);const i=new fs(n,r);return i._init(e),i};function gs(){R(new v("performance",ms,"PUBLIC")),E(Ke,ge),E(Ke,ge,"esm2017")}gs();const bs=t=>(on("data-v-980a75a4"),t=t(),cn(),t),_s=bs(()=>T("div",{"data-v-98ddab3d":"","data-v-8f7cd5e4":"",class:"VPContent",id:"VPContent"},[T("div",{"data-v-6c4a3ffe":"","data-v-98ddab3d":"",class:"NotFound"},[T("img",{src:"https://rwapi-code.netlify.app/images/logo.png",alt:"",class:"notfound-img"}),T("p",{"data-v-6c4a3ffe":"",class:"code"},"404"),T("h1",{"data-v-6c4a3ffe":"",class:"title"}," 你干嘛~,这里什么都没有! "),T("div",{"data-v-6c4a3ffe":"",class:"divider"}),T("blockquote",{"data-v-6c4a3ffe":"",class:"quote"}," 你寻找的页面可能不存在或被迁移…… "),T("div",{"data-v-6c4a3ffe":"",class:"action"},[T("a",{"data-v-6c4a3ffe":"",class:"link",href:"/","aria-label":"go to home"}," 返回主页 ")])])],-1)),Is={__name:"NotFound",setup(t){const{Layout:e}=rt;return(n,r)=>(nn(),rn(sn(e),null,{"not-found":an(()=>[_s]),_:1}))}},ys=tn(Is,[["__scopeId","data-v-980a75a4"]]),Es=()=>{const e=dt({apiKey:"AIzaSyANVvapu0ihi1cM8ZzuXTkwjx9lM_J1RyQ",authDomain:"rw-api-code-d0779.firebaseapp.com",projectId:"rw-api-code-d0779",storageBucket:"rw-api-code-d0779.appspot.com",messagingSenderId:"363611843335",appId:"1:363611843335:web:f15aef7ab427f52b4033a2",measurementId:"G-XJH5TKP5VL"});return ha(e),ps(e),"Firebase initialized successfully"};(async function(){try{const t=await Es();console.log(t)}catch(t){console.error(t)}})();function ws(t){return new Promise(e=>setTimeout(e,t))}async function Ts(){try{await navigator.permissions.query({name:"clipboard-write"})}catch(t){console.error(t)}}async function vs(){try{await ws(1e3);const t=document.getElementsByClassName("copy");for(let e=0;e<t.length;e++){const n=t[e];n.addEventListener("touchend",async()=>{await Ts();const a=[...n.parentNode.querySelector("code").querySelectorAll("span")],s=[...new Set(a.map(o=>o.textContent))].join("");try{await navigator.clipboard.writeText(s)}catch{const c=document.createElement("textarea");c.value=s,document.body.appendChild(c),c.select(),document.execCommand("copy"),document.body.removeChild(c)}})}}catch(t){console.error(t)}}vs();const As={...rt,Layout:ys};function Zt(t){if(t.extends){const e=Zt(t.extends);return{...e,...t,async enhanceApp(n){e.enhanceApp&&await e.enhanceApp(n),t.enhanceApp&&await t.enhanceApp(n)}}}return t}const $=Zt(As),Ss=yn({name:"VitePressApp",setup(){const{site:t}=En();return wn(()=>{Tn(()=>{document.documentElement.lang=t.value.lang,document.documentElement.dir=t.value.dir})}),vn(),An(),Sn(),$.setup&&$.setup(),()=>Cn($.Layout)}});async function Cs(){const t=Ds(),e=Rs();e.provide(un,t);const n=dn(t.route);return e.provide(fn,n),e.component("Content",hn),e.component("ClientOnly",pn),Object.defineProperties(e.config.globalProperties,{$frontmatter:{get(){return n.frontmatter.value}},$params:{get(){return n.page.value.params}}}),$.enhanceApp&&await $.enhanceApp({app:e,router:t,siteData:mn}),{app:e,router:t,data:n}}function Rs(){return gn(Ss)}function Ds(){let t=le,e;return bn(n=>{let r=_n(n);return r?(t&&(e=r),(t||e===r)&&(r=r.replace(/\.js$/,".lean.js")),le&&(t=!1),In(()=>import(r),[])):null},$.NotFound)}le&&Cs().then(({app:t,router:e,data:n})=>{e.go().then(()=>{ln(e.route,n.site),t.mount("#app")})});export{Cs as createApp};
|
||||
*/class fs{constructor(e,n){this.app=e,this.installations=n,this.initialized=!1}_init(e){this.initialized||((e==null?void 0:e.dataCollectionEnabled)!==void 0&&(this.dataCollectionEnabled=e.dataCollectionEnabled),(e==null?void 0:e.instrumentationEnabled)!==void 0&&(this.instrumentationEnabled=e.instrumentationEnabled),f.getInstance().requiredApisAvailable()?Ie().then(n=>{n&&(Wa(),Xt(this).then(()=>tt(this),()=>tt(this)),this.initialized=!0)}).catch(n=>{w.info(`Environment doesn't support IndexedDB: ${n}`)}):w.info('Firebase Performance cannot start if the browser does not support "Fetch" and "Promise", or cookies are disabled.'))}set instrumentationEnabled(e){_.getInstance().instrumentationEnabled=e}get instrumentationEnabled(){return _.getInstance().instrumentationEnabled}set dataCollectionEnabled(e){_.getInstance().dataCollectionEnabled=e}get dataCollectionEnabled(){return _.getInstance().dataCollectionEnabled}}const hs="[DEFAULT]";function ps(t=ft()){return t=ye(t),j(t,"performance").getImmediate()}const ms=(t,{options:e})=>{const n=t.getProvider("app").getImmediate(),r=t.getProvider("installations-internal").getImmediate();if(n.name!==hs)throw p.create("FB not default");if(typeof window>"u")throw p.create("no window");Ea(window);const i=new fs(n,r);return i._init(e),i};function gs(){R(new v("performance",ms,"PUBLIC")),E(Ke,ge),E(Ke,ge,"esm2017")}gs();const bs=t=>(on("data-v-3835a11e"),t=t(),cn(),t),_s=bs(()=>T("div",{"data-v-98ddab3d":"","data-v-8f7cd5e4":"",class:"VPContent",id:"VPContent"},[T("div",{"data-v-6c4a3ffe":"","data-v-98ddab3d":"",class:"NotFound"},[T("img",{src:"https://rust.coldmint.top/ftp/ling/cdnpng/logo.png",alt:"",class:"notfound-img"}),T("p",{"data-v-6c4a3ffe":"",class:"code"},"404"),T("h1",{"data-v-6c4a3ffe":"",class:"title"}," 你干嘛~,这里什么都没有! "),T("div",{"data-v-6c4a3ffe":"",class:"divider"}),T("blockquote",{"data-v-6c4a3ffe":"",class:"quote"}," 你寻找的页面可能不存在或被迁移…… "),T("div",{"data-v-6c4a3ffe":"",class:"action"},[T("a",{"data-v-6c4a3ffe":"",class:"link",href:"/","aria-label":"go to home"}," 返回主页 ")])])],-1)),Is={__name:"NotFound",setup(t){const{Layout:e}=rt;return(n,r)=>(nn(),rn(sn(e),null,{"not-found":an(()=>[_s]),_:1}))}},ys=tn(Is,[["__scopeId","data-v-3835a11e"]]),Es=()=>{const e=dt({apiKey:"AIzaSyANVvapu0ihi1cM8ZzuXTkwjx9lM_J1RyQ",authDomain:"rw-api-code-d0779.firebaseapp.com",projectId:"rw-api-code-d0779",storageBucket:"rw-api-code-d0779.appspot.com",messagingSenderId:"363611843335",appId:"1:363611843335:web:f15aef7ab427f52b4033a2",measurementId:"G-XJH5TKP5VL"});return ha(e),ps(e),"Firebase initialized successfully"};(async function(){try{const t=await Es();console.log(t)}catch(t){console.error(t)}})();function ws(t){return new Promise(e=>setTimeout(e,t))}async function Ts(){try{await navigator.permissions.query({name:"clipboard-write"})}catch(t){console.error(t)}}async function vs(){try{await ws(1e3);const t=document.getElementsByClassName("copy");for(let e=0;e<t.length;e++){const n=t[e];n.addEventListener("touchend",async()=>{await Ts();const a=[...n.parentNode.querySelector("code").querySelectorAll("span")],s=[...new Set(a.map(o=>o.textContent))].join("");try{await navigator.clipboard.writeText(s)}catch{const c=document.createElement("textarea");c.value=s,document.body.appendChild(c),c.select(),document.execCommand("copy"),document.body.removeChild(c)}})}}catch(t){console.error(t)}}vs();const As={...rt,Layout:ys};function Zt(t){if(t.extends){const e=Zt(t.extends);return{...e,...t,async enhanceApp(n){e.enhanceApp&&await e.enhanceApp(n),t.enhanceApp&&await t.enhanceApp(n)}}}return t}const $=Zt(As),Ss=yn({name:"VitePressApp",setup(){const{site:t}=En();return wn(()=>{Tn(()=>{document.documentElement.lang=t.value.lang,document.documentElement.dir=t.value.dir})}),vn(),An(),Sn(),$.setup&&$.setup(),()=>Cn($.Layout)}});async function Cs(){const t=Ds(),e=Rs();e.provide(un,t);const n=dn(t.route);return e.provide(fn,n),e.component("Content",hn),e.component("ClientOnly",pn),Object.defineProperties(e.config.globalProperties,{$frontmatter:{get(){return n.frontmatter.value}},$params:{get(){return n.page.value.params}}}),$.enhanceApp&&await $.enhanceApp({app:e,router:t,siteData:mn}),{app:e,router:t,data:n}}function Rs(){return gn(Ss)}function Ds(){let t=le,e;return bn(n=>{let r=_n(n);return r?(t&&(e=r),(t||e===r)&&(r=r.replace(/\.js$/,".lean.js")),le&&(t=!1),In(()=>import(r),[])):null},$.NotFound)}le&&Cs().then(({app:t,router:e,data:n})=>{e.go().then(()=>{ln(e.route,n.site),t.mount("#app")})});export{Cs as createApp};
|
|
@ -1 +0,0 @@
|
|||
import{_ as e,o as t,c as i}from"./chunks/framework.d377e0cc.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":"让我们立刻开始吧![开发中]"},{"title":"RW-Engine指南","details":"学习铁锈Mod RW-Engine的使用(仅Android)","link":"/src/RW-Engine/quick-start","linkText":"让我们立刻开始吧![开发中]"}]},"headers":[],"relativePath":"index.md","filePath":"index.md"}'),n={name:"index.md"};function a(o,d,l,r,s,c){return t(),i("div")}const x=e(n,[["render",a]]);export{m as __pageData,x as default};
|
|
@ -1 +0,0 @@
|
|||
import{_ as e,o as t,c as i}from"./chunks/framework.d377e0cc.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":"让我们立刻开始吧![开发中]"},{"title":"RW-Engine指南","details":"学习铁锈Mod RW-Engine的使用(仅Android)","link":"/src/RW-Engine/quick-start","linkText":"让我们立刻开始吧![开发中]"}]},"headers":[],"relativePath":"index.md","filePath":"index.md"}'),n={name:"index.md"};function a(o,d,l,r,s,c){return t(),i("div")}const x=e(n,[["render",a]]);export{m as __pageData,x as default};
|
1
assets/index.md.f503aa80.js
Normal file
1
assets/index.md.f503aa80.js
Normal file
|
@ -0,0 +1 @@
|
|||
import{_ as t,o as e,c as n}from"./chunks/framework.d377e0cc.js";const m=JSON.parse('{"title":"","description":"","frontmatter":{"layout":"home","action":null,"hero":{"name":"铁锈战争-API-Code","text":"轻松编码,轻松学习","tagline":"学习Mod,制作Mod,创新Mod","image":{"src":"https://rust.coldmint.top/ftp/ling/cdnpng/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":"让我们立刻开始吧![开发中]"},{"title":"RW-Engine指南","details":"学习铁锈Mod RW-Engine的使用(仅Android)","link":"/src/RW-Engine/quick-start","linkText":"让我们立刻开始吧![开发中]"}]},"headers":[],"relativePath":"index.md","filePath":"index.md"}'),i={name:"index.md"};function o(a,d,l,r,s,c){return e(),n("div")}const x=t(i,[["render",o]]);export{m as __pageData,x as default};
|
1
assets/index.md.f503aa80.lean.js
Normal file
1
assets/index.md.f503aa80.lean.js
Normal file
|
@ -0,0 +1 @@
|
|||
import{_ as t,o as e,c as n}from"./chunks/framework.d377e0cc.js";const m=JSON.parse('{"title":"","description":"","frontmatter":{"layout":"home","action":null,"hero":{"name":"铁锈战争-API-Code","text":"轻松编码,轻松学习","tagline":"学习Mod,制作Mod,创新Mod","image":{"src":"https://rust.coldmint.top/ftp/ling/cdnpng/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":"让我们立刻开始吧![开发中]"},{"title":"RW-Engine指南","details":"学习铁锈Mod RW-Engine的使用(仅Android)","link":"/src/RW-Engine/quick-start","linkText":"让我们立刻开始吧![开发中]"}]},"headers":[],"relativePath":"index.md","filePath":"index.md"}'),i={name:"index.md"};function o(a,d,l,r,s,c){return e(),n("div")}const x=t(i,[["render",o]]);export{m as __pageData,x as default};
|
|
@ -19,7 +19,7 @@ import{_ as a,o as t,c as e,X as n}from"./chunks/framework.d377e0cc.js";const k=
|
|||
<span class="line"><span style="color:#A6ACCD;">shootDelay:60</span></span></code></pre></div><hr><h3 id="maxattackrange" tabindex="-1">maxAttackRange <a class="header-anchor" href="#maxattackrange" aria-label="Permalink to "maxAttackRange""></a></h3><h4 id="maxattackrange-代码简介" tabindex="-1">maxAttackRange-代码简介 <a class="header-anchor" href="#maxattackrange-代码简介" aria-label="Permalink to "maxAttackRange-代码简介""></a></h4><p>代码:maxAttackRange 中文释义:攻击距离 类型:整数int 隶属于:攻击属性代码组</p><h4 id="maxattackrange-要点指示" tabindex="-1">maxAttackRange-要点指示 <a class="header-anchor" href="#maxattackrange-要点指示" aria-label="Permalink to "maxAttackRange-要点指示""></a></h4><p>设置单位炮塔的攻击距离,在炮塔节使用limitingRange覆盖</p><details class="details custom-block"><summary>Details</summary><p>limitingRange不能超过maxAttackRange,如果炮塔都使用了limitingRange,那此处需要删除maxAttackRange</p></details><h4 id="maxattackrange-演示例子" tabindex="-1">maxAttackRange-演示例子 <a class="header-anchor" href="#maxattackrange-演示例子" aria-label="Permalink to "maxAttackRange-演示例子""></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;">[attack]</span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;">maxAttackRange:1000</span></span></code></pre></div><hr><h3 id="aimoffsetspread" tabindex="-1">aimOffsetSpread <a class="header-anchor" href="#aimoffsetspread" aria-label="Permalink to "aimOffsetSpread""></a></h3><h4 id="aimoffsetspread-代码简介" tabindex="-1">aimOffsetSpread-代码简介 <a class="header-anchor" href="#aimoffsetspread-代码简介" aria-label="Permalink to "aimOffsetSpread-代码简介""></a></h4><p>代码:aimOffsetSpread 中文释义:攻击偏移 类型:浮点值float 隶属于:攻击属性组</p><h4 id="aimoffsetspread-要点指示" tabindex="-1">aimOffsetSpread-要点指示 <a class="header-anchor" href="#aimoffsetspread-要点指示" aria-label="Permalink to "aimOffsetSpread-要点指示""></a></h4><p>攻击时按照敌人半径乘对应值进行位置偏移,填0时攻击中心</p><h4 id="aimoffsetspread-演示例子" tabindex="-1">aimOffsetSpread-演示例子 <a class="header-anchor" href="#aimoffsetspread-演示例子" aria-label="Permalink to "aimOffsetSpread-演示例子""></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;">[attack]</span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;">aimOffsetSpread:0.6</span></span></code></pre></div><hr><h3 id="shootdelaymultiplier-shootdamagemultiplier" tabindex="-1">shootDelayMultiplier/shootDamageMultiplier <a class="header-anchor" href="#shootdelaymultiplier-shootdamagemultiplier" aria-label="Permalink to "shootDelayMultiplier/shootDamageMultiplier""></a></h3><h4 id="shootdelaymultiplier-shootdamagemultiplier-代码简介" tabindex="-1">shootDelayMultiplier/shootDamageMultiplier-代码简介 <a class="header-anchor" href="#shootdelaymultiplier-shootdamagemultiplier-代码简介" aria-label="Permalink to "shootDelayMultiplier/shootDamageMultiplier-代码简介""></a></h4><p>代码:shootDelayMultiplier/shootDamageMultiplier 中文释义:攻击间隔乘数/攻击伤害乘数 类型:浮点值 隶属于:攻击属性代码组</p><h4 id="shootdelaymultiplier-shootdamagemultiplier-要点指示" tabindex="-1">shootDelayMultiplier/shootDamageMultiplier-要点指示 <a class="header-anchor" href="#shootdelaymultiplier-shootdamagemultiplier-要点指示" aria-label="Permalink to "shootDelayMultiplier/shootDamageMultiplier-要点指示""></a></h4><p>设置单位的攻击间隔乘数和攻击伤害乘数,在行动节使用setUnitStats修改</p><h4 id="shootdelaymultiplier-shootdamagemultiplier-演示例子" tabindex="-1">shootDelayMultiplier/shootDamageMultiplier-演示例子 <a class="header-anchor" href="#shootdelaymultiplier-shootdamagemultiplier-演示例子" aria-label="Permalink to "shootDelayMultiplier/shootDamageMultiplier-演示例子""></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;">[action_1]</span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;">setUnitStats:</span><span style="color:#F07178;">shootDelayMultiplier</span><span style="color:#89DDFF;">=</span><span style="color:#A6ACCD;">0.8,</span><span style="color:#F07178;">shootDamageMultiplier</span><span style="color:#89DDFF;">=</span><span style="color:#A6ACCD;">1.4</span></span></code></pre></div><hr><h2 id="第四类-显示相关组" tabindex="-1">第四类-显示相关组 <a class="header-anchor" href="#第四类-显示相关组" aria-label="Permalink to "第四类-显示相关组""></a></h2><div class="vp-code-group"><div class="tabs"><input type="radio" name="group-CIZKt" id="tab-gPCATRp" checked="checked"><label for="tab-gPCATRp">屑狐狸</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 style="color:#89DDFF;">\`</span><span style="color:#FFCB6B;">显示代码</span><span style="color:#89DDFF;">\`</span><span style="color:#FFCB6B;">,用于让单位在攻击时效果更好</span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;">setUnitStats:</span><span style="color:#F07178;">shootDelayMultiplier</span><span style="color:#89DDFF;">=</span><span style="color:#A6ACCD;">0.8,</span><span style="color:#F07178;">shootDamageMultiplier</span><span style="color:#89DDFF;">=</span><span style="color:#A6ACCD;">1.4</span></span></code></pre></div><hr><h2 id="第四类-显示相关组" tabindex="-1">第四类-显示相关组 <a class="header-anchor" href="#第四类-显示相关组" aria-label="Permalink to "第四类-显示相关组""></a></h2><div class="vp-code-group"><div class="tabs"><input type="radio" name="group-3KHRr" id="tab-DTXzN-1" checked="checked"><label for="tab-DTXzN-1">屑狐狸</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 style="color:#89DDFF;">\`</span><span style="color:#FFCB6B;">显示代码</span><span style="color:#89DDFF;">\`</span><span style="color:#FFCB6B;">,用于让单位在攻击时效果更好</span></span>
|
||||
<span class="line"><span style="color:#FFCB6B;">对于部分有对应需求的单位来说这部分较为有用</span></span></code></pre></div></div></div><h3 id="setmainturretas" tabindex="-1">setMainTurretAs <a class="header-anchor" href="#setmainturretas" aria-label="Permalink to "setMainTurretAs""></a></h3><h4 id="setmainturretas-代码简介" tabindex="-1">setMainTurretAs-代码简介 <a class="header-anchor" href="#setmainturretas-代码简介" aria-label="Permalink to "setMainTurretAs-代码简介""></a></h4><p>代码:setMainTurretAs 中文释义:设置主炮塔 类型:炮塔turret ref 隶属于:显示相关组</p><h4 id="setmainturretas-要点指示" tabindex="-1">setMainTurretAs-要点指示 <a class="header-anchor" href="#setmainturretas-要点指示" aria-label="Permalink to "setMainTurretAs-要点指示""></a></h4><p>设置单位主炮塔</p><h4 id="setmainturretas-演示例子" tabindex="-1">setMainTurretAs-演示例子 <a class="header-anchor" href="#setmainturretas-演示例子" aria-label="Permalink to "setMainTurretAs-演示例子""></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;">[attack]</span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;">setMainTurretAs:31</span></span></code></pre></div><hr><h3 id="turretrotatewithbody" tabindex="-1">turretRotateWithBody <a class="header-anchor" href="#turretrotatewithbody" aria-label="Permalink to "turretRotateWithBody""></a></h3><h4 id="turretrotatewithbody-代码简介" tabindex="-1">turretRotateWithBody-代码简介 <a class="header-anchor" href="#turretrotatewithbody-代码简介" aria-label="Permalink to "turretRotateWithBody-代码简介""></a></h4><p>代码:turretRotateWithBody 中文释义:炮塔跟随主体旋转 类型:布尔值bool 隶属于:显示相关组</p><h4 id="turretrotatewithbody-要点指示" tabindex="-1">turretRotateWithBody-要点指示 <a class="header-anchor" href="#turretrotatewithbody-要点指示" aria-label="Permalink to "turretRotateWithBody-要点指示""></a></h4><p>设置单位炮塔跟随主体旋转,比如重型拦截机</p><h4 id="turretrotatewithbody-演示例子" tabindex="-1">turretRotateWithBody-演示例子 <a class="header-anchor" href="#turretrotatewithbody-演示例子" aria-label="Permalink to "turretRotateWithBody-演示例子""></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;">[attack]</span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;">turretRotateWithBody:true</span></span></code></pre></div><hr><h3 id="attackmovement" tabindex="-1">attackMovement <a class="header-anchor" href="#attackmovement" aria-label="Permalink to "attackMovement""></a></h3><h4 id="attackmovement-代码简介" tabindex="-1">attackMovement-代码简介 <a class="header-anchor" href="#attackmovement-代码简介" aria-label="Permalink to "attackMovement-代码简介""></a></h4><p>代码:attackMovement 中文释义:攻击移动类型 类型:字符串string 隶属于:显示相关组</p><h4 id="attackmovement-要点指示" tabindex="-1">attackMovement-要点指示 <a class="header-anchor" href="#attackmovement-要点指示" aria-label="Permalink to "attackMovement-要点指示""></a></h4><p>设置单位攻击移动类型</p><div class="tip custom-block"><p class="custom-block-title">TIP</p><p>可填类型如下</p><table><thead><tr><th>类型</th><th>normal</th><th>bomber</th><th>moveaway</th><th>strafing</th></tr></thead><tbody><tr><td>效果</td><td>无</td><td>轰炸机</td><td>无效</td><td>无效</td></tr></tbody></table></div><h4 id="attackmovement-演示例子" tabindex="-1">attackMovement-演示例子 <a class="header-anchor" href="#attackmovement-演示例子" aria-label="Permalink to "attackMovement-演示例子""></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;">[attack]</span></span>
|
|
@ -1,4 +1,4 @@
|
|||
import{_ as n,K as i,o,c,k as s,a,O as t,w as p,X as e}from"./chunks/framework.d377e0cc.js";const _=JSON.parse('{"title":"[canBuild]建造组","description":"","frontmatter":{"outline":"deep"},"headers":[],"relativePath":"src/Unit/canbuild.md","filePath":"src/Unit/canbuild.md"}'),r={name:"src/Unit/canbuild.md"},d=e(`<h1 id="canbuild-建造组" tabindex="-1"><strong>[canBuild]建造组</strong> <a class="header-anchor" href="#canbuild-建造组" aria-label="Permalink to "**[canBuild]建造组**""></a></h1><h3 id="canbuild-name" tabindex="-1">[canBuild_NAME] <a class="header-anchor" href="#canbuild-name" aria-label="Permalink to "[canBuild_NAME]""></a></h3><h4 id="canbuild-name-代码简介" tabindex="-1">[canBuild_NAME]-代码简介 <a class="header-anchor" href="#canbuild-name-代码简介" aria-label="Permalink to "[canBuild_NAME]-代码简介""></a></h4><p>代码: [canBuild_NAME] 中文释义:可建造_名字 类型:字符型 canBuild_NAME = 组名 如果不填写此组名 将默认拥有一个命名为空格的组名。</p><div class="tip custom-block"><p class="custom-block-title">TIP</p><p>建议将NAME命名为此组的描述或可建造单位的昵称。<br> 以便于阅读代码。</p></div><div class="vp-code-group"><div class="tabs"><input type="radio" name="group-6aPuN" id="tab-xmn6QWP" checked="checked"><label for="tab-xmn6QWP">allureluoli</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:#89DDFF;">[</span><span style="color:#A6ACCD;">canBuild_造小坦</span><span style="color:#89DDFF;">]</span></span>
|
||||
import{_ as n,K as i,o,c,k as s,a,O as t,w as p,X as e}from"./chunks/framework.d377e0cc.js";const _=JSON.parse('{"title":"[canBuild]建造组","description":"","frontmatter":{"outline":"deep"},"headers":[],"relativePath":"src/Unit/canbuild.md","filePath":"src/Unit/canbuild.md"}'),r={name:"src/Unit/canbuild.md"},d=e(`<h1 id="canbuild-建造组" tabindex="-1"><strong>[canBuild]建造组</strong> <a class="header-anchor" href="#canbuild-建造组" aria-label="Permalink to "**[canBuild]建造组**""></a></h1><h3 id="canbuild-name" tabindex="-1">[canBuild_NAME] <a class="header-anchor" href="#canbuild-name" aria-label="Permalink to "[canBuild_NAME]""></a></h3><h4 id="canbuild-name-代码简介" tabindex="-1">[canBuild_NAME]-代码简介 <a class="header-anchor" href="#canbuild-name-代码简介" aria-label="Permalink to "[canBuild_NAME]-代码简介""></a></h4><p>代码: [canBuild_NAME] 中文释义:可建造_名字 类型:字符型 canBuild_NAME = 组名 如果不填写此组名 将默认拥有一个命名为空格的组名。</p><div class="tip custom-block"><p class="custom-block-title">TIP</p><p>建议将NAME命名为此组的描述或可建造单位的昵称。<br> 以便于阅读代码。</p></div><div class="vp-code-group"><div class="tabs"><input type="radio" name="group-oheZ2" id="tab-LSZhPaS" checked="checked"><label for="tab-LSZhPaS">allureluoli</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:#89DDFF;">[</span><span style="color:#A6ACCD;">canBuild_造小坦</span><span style="color:#89DDFF;">]</span></span>
|
||||
<span class="line"><span style="color:#89DDFF;">[</span><span style="color:#A6ACCD;">canBuild_SmallTank</span><span style="color:#89DDFF;">]</span></span>
|
||||
<span class="line"><span style="color:#89DDFF;">[</span><span style="color:#A6ACCD;">canBuild_建造科技</span><span style="color:#89DDFF;">]</span></span></code></pre></div></div></div><div class="danger custom-block"><p class="custom-block-title">DANGER</p><p>[canBuild_NAME] 中的NAME命名禁止重复,否则会引发报错。<br> 其中下划线作为分隔符也是重要的,如果没有将引发报错。</p></div><h4 id="canbuild-name-演示例子" tabindex="-1">[canBuild_NAME]-演示例子 <a class="header-anchor" href="#canbuild-name-演示例子" aria-label="Permalink to "[canBuild_NAME]-演示例子""></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;">[canBuild_SmallTank]</span><span style="color:#A6ACCD;"> </span><span style="color:#676E95;font-style:italic;">#英文命名</span></span>
|
||||
<span class="line"><span style="color:#89DDFF;">[canBuild_小坦克]</span><span style="color:#A6ACCD;"> </span><span style="color:#676E95;font-style:italic;">#中文命名</span></span>
|
|
@ -1,4 +1,4 @@
|
|||
import{_ as t,K as o,o as r,c,k as e,a,O as n,w as l,X as i}from"./chunks/framework.d377e0cc.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-4CfYc" id="tab-5Vl4-vn" checked="checked"><label for="tab-5Vl4-vn">JDSALing</label><input type="radio" name="group-4CfYc" id="tab-VPwTAH-"><label for="tab-VPwTAH-">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,K as o,o as r,c,k as e,a,O as n,w as l,X as i}from"./chunks/framework.d377e0cc.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-KL-m8" id="tab--5W3FC-" checked="checked"><label for="tab--5W3FC-">JDSALing</label><input type="radio" name="group-KL-m8" id="tab-uh18tz2"><label for="tab-uh18tz2">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>
|
||||
|
@ -16,13 +16,13 @@ import{_ as t,K as o,o as r,c,k as e,a,O as n,w as l,X as i}from"./chunks/framew
|
|||
<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-uXJRe" id="tab-RFhjWa4" checked="checked"><label for="tab-RFhjWa4">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-QlXl0" id="tab-azzR8t4" checked="checked"><label for="tab-azzR8t4">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-15AxF" id="tab-AooGhqE" checked="checked"><label for="tab-AooGhqE">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-vHG4v" id="tab-ICSJhfJ" checked="checked"><label for="tab-ICSJhfJ">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>
|
||||
|
@ -61,7 +61,7 @@ import{_ as t,K as o,o as r,c,k as e,a,O as n,w as l,X as i}from"./chunks/framew
|
|||
<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-H06TY" id="tab-9gBRuyM" checked="checked"><label for="tab-9gBRuyM">考考你</label><input type="radio" name="group-H06TY" id="tab-Xg83MSt"><label for="tab-Xg83MSt">显示答案</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-3F4C-" id="tab-VYJt-eN" checked="checked"><label for="tab-VYJt-eN">考考你</label><input type="radio" name="group-3F4C-" id="tab-L1jlRUs"><label for="tab-L1jlRUs">显示答案</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>
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -9,7 +9,7 @@ import{_ as e,o as a,c as t,X as n}from"./chunks/framework.d377e0cc.js";const u=
|
|||
<span class="line"><span style="color:#A6ACCD;">reverseSpeedPercentage:0.4</span></span></code></pre></div><hr><h3 id="maxturnspeed" tabindex="-1">maxTurnSpeed <a class="header-anchor" href="#maxturnspeed" aria-label="Permalink to "maxTurnSpeed""></a></h3><h4 id="maxturnspeed-代码简介" tabindex="-1">maxTurnSpeed-代码简介 <a class="header-anchor" href="#maxturnspeed-代码简介" aria-label="Permalink to "maxTurnSpeed-代码简介""></a></h4><p>代码:maxTurnSpeed 中文释义:转弯速度 类型:浮点数 隶属于:速度相关组</p><h4 id="maxturnspeed-要点指示" tabindex="-1">maxTurnSpeed-要点指示 <a class="header-anchor" href="#maxturnspeed-要点指示" aria-label="Permalink to "maxTurnSpeed-要点指示""></a></h4><p>定义单位转弯的速度</p><div class="tip custom-block"><p class="custom-block-title">TIP</p><p>转弯速度的单位是<strong>度/帧</strong>,如果转弯速度为1,那么一秒将旋转60度</p></div><h4 id="maxturnspeed-演示例子" tabindex="-1">maxTurnSpeed-演示例子 <a class="header-anchor" href="#maxturnspeed-演示例子" aria-label="Permalink to "maxTurnSpeed-演示例子""></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;">[movement]</span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;">maxTurnSpeed:1.5</span></span></code></pre></div><hr><h3 id="turnacceleration" tabindex="-1">turnAcceleration <a class="header-anchor" href="#turnacceleration" aria-label="Permalink to "turnAcceleration""></a></h3><h4 id="turnacceleration-代码简介" tabindex="-1">turnAcceleration-代码简介 <a class="header-anchor" href="#turnacceleration-代码简介" aria-label="Permalink to "turnAcceleration-代码简介""></a></h4><p>代码:turnAcceleration 中文释义:转弯速度 类型:浮点数 隶属于:速度相关组</p><h4 id="turnacceleration-要点指示" tabindex="-1">turnAcceleration-要点指示 <a class="header-anchor" href="#turnacceleration-要点指示" aria-label="Permalink to "turnAcceleration-要点指示""></a></h4><p>定义单位转弯的加速度,开始转弯时将从零开始加速直到转弯速度</p><div class="tip custom-block"><p class="custom-block-title">TIP</p><p>转弯加速度是按帧计算的,如果想要每秒增加0.6需要填0.01</p></div><h4 id="turnacceleration-演示例子" tabindex="-1">turnAcceleration-演示例子 <a class="header-anchor" href="#turnacceleration-演示例子" aria-label="Permalink to "turnAcceleration-演示例子""></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;">[movement]</span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;">maxTurnSpeed:1.5</span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;">turnAcceleration:0.01</span></span></code></pre></div><hr><h2 id="第三类-高度相关组" tabindex="-1">第三类-高度相关组 <a class="header-anchor" href="#第三类-高度相关组" aria-label="Permalink to "第三类-高度相关组""></a></h2><h3 id="targetheight" tabindex="-1">targetHeight <a class="header-anchor" href="#targetheight" aria-label="Permalink to "targetHeight""></a></h3><h4 id="targetheight-代码简介" tabindex="-1">targetHeight-代码简介 <a class="header-anchor" href="#targetheight-代码简介" aria-label="Permalink to "targetHeight-代码简介""></a></h4><p>代码:targetHeight 中文释义:到达高度 类型:浮点数 隶属于:高度相关组</p><h4 id="targetheight-要点指示" tabindex="-1">targetHeight-要点指示 <a class="header-anchor" href="#targetheight-要点指示" aria-label="Permalink to "targetHeight-要点指示""></a></h4><p>定义单位的高度,当单位创建完成时会从0到达这个高度</p><div class="tip custom-block"><p class="custom-block-title">TIP</p><p>如果运动类型为AIR,targetHeight默认值将为20</p></div><div class="vp-code-group"><div class="tabs"><input type="radio" name="group-6KoQZ" id="tab-4A6Fmv6" checked="checked"><label for="tab-4A6Fmv6">摸鱼人time</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;">turnAcceleration:0.01</span></span></code></pre></div><hr><h2 id="第三类-高度相关组" tabindex="-1">第三类-高度相关组 <a class="header-anchor" href="#第三类-高度相关组" aria-label="Permalink to "第三类-高度相关组""></a></h2><h3 id="targetheight" tabindex="-1">targetHeight <a class="header-anchor" href="#targetheight" aria-label="Permalink to "targetHeight""></a></h3><h4 id="targetheight-代码简介" tabindex="-1">targetHeight-代码简介 <a class="header-anchor" href="#targetheight-代码简介" aria-label="Permalink to "targetHeight-代码简介""></a></h4><p>代码:targetHeight 中文释义:到达高度 类型:浮点数 隶属于:高度相关组</p><h4 id="targetheight-要点指示" tabindex="-1">targetHeight-要点指示 <a class="header-anchor" href="#targetheight-要点指示" aria-label="Permalink to "targetHeight-要点指示""></a></h4><p>定义单位的高度,当单位创建完成时会从0到达这个高度</p><div class="tip custom-block"><p class="custom-block-title">TIP</p><p>如果运动类型为AIR,targetHeight默认值将为20</p></div><div class="vp-code-group"><div class="tabs"><input type="radio" name="group-Ha8FM" id="tab-3s7xxdU" checked="checked"><label for="tab-3s7xxdU">摸鱼人time</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:#FFCB6B;">如果高度位于0到10之间,可以被对表面攻击命中</span></span>
|
||||
<span class="line"><span style="color:#FFCB6B;">如果高度大于10,可以被对空攻击命中</span></span>
|
File diff suppressed because one or more lines are too long
|
@ -1 +1 @@
|
|||
{"src_unit_canbuild.md":"21abd042","src_unit_turret.md":"d370e296","src_unit_attack.md":"4a140f14","src_map_tsada.md":"a63d0bb5","index.md":"0f854d6b","api-dev.md":"d8be9e57","src_debug_test.md":"5eb6a57a","src_unit_movement.md":"3718f30f","src_unit_spawnunit_spawnprojectile.md":"d50999f9","src_unit_core.md":"65ae624b","src_unit_graphics.md":"8ae7ad98","src_rw-engine_quick-start.md":"921da213","src_unit_loginboolean.md":"3cfa50ce"}
|
||||
{"src_debug_test.md":"5eb6a57a","src_rw-engine_quick-start.md":"921da213","api-dev.md":"8b5f2e0b","index.md":"f503aa80","src_map_tsada.md":"a63d0bb5","src_unit_graphics.md":"8ae7ad98","src_unit_attack.md":"931b363f","src_unit_movement.md":"7904c445","src_unit_canbuild.md":"4adb04fa","src_unit_spawnunit_spawnprojectile.md":"d50999f9","src_unit_turret.md":"d370e296","src_unit_core.md":"dc2a8558","src_unit_loginboolean.md":"c1c29977"}
|
||||
|
|
10
index.html
10
index.html
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
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