Deploying to gh-pages from @ LingASDJ/RW-API-Code@8786660ceb 🚀

This commit is contained in:
mason369 2023-04-13 04:32:58 +00:00
parent 2134bcaa20
commit b5f7a29032
17 changed files with 46 additions and 46 deletions

File diff suppressed because one or more lines are too long

View File

@ -6,7 +6,7 @@
<title>Runtime API Examples | RW-API_Code</title>
<meta name="description" content="Easy Code">
<link rel="preload stylesheet" href="/assets/style.0fe59653.css" as="style">
<script type="module" src="/assets/app.7481c566.js"></script>
<script type="module" src="/assets/app.40db9657.js"></script>
<link rel="preload" href="/assets/inter-roman-latin.2ed14f66.woff2" as="font" type="font/woff2" crossorigin="">
<link rel="modulepreload" href="/assets/chunks/framework.afbd7175.js">
<link rel="modulepreload" href="/assets/chunks/theme.a458785b.js">
@ -100,7 +100,7 @@
}</pre><h3 id="page-frontmatter" tabindex="-1">Page Frontmatter <a class="header-anchor" href="#page-frontmatter" aria-label="Permalink to &quot;Page Frontmatter&quot;"></a></h3><pre>{
&quot;outline&quot;: &quot;deep&quot;
}</pre><h2 id="more" tabindex="-1">More <a class="header-anchor" href="#more" aria-label="Permalink to &quot;More&quot;"></a></h2><p>Check out the documentation for the <a href="https://vitepress.dev/reference/runtime-api#usedata" target="_blank" rel="noreferrer">full list of runtime APIs</a>.</p></div></div></main><footer class="VPDocFooter" data-v-c4b0d3cf data-v-face870a><!--[--><!--]--><!----><div class="prev-next" data-v-face870a><div class="pager" data-v-face870a><!----></div><div class="pager" data-v-face870a><a class="pager-link next" href="/markdown-examples" data-v-face870a><span class="desc" data-v-face870a>下一篇文章</span><span class="title" data-v-face870a>主页-Home</span></a></div></div></footer><!--[--><!--]--></div></div></div><!--[--><!--]--></div></div><footer class="VPFooter has-sidebar" data-v-b2cf3e0b data-v-2f86ebd2><div class="container" data-v-2f86ebd2><p class="message" data-v-2f86ebd2>Rosy-Code Ling Web Stuido</p><p class="copyright" data-v-2f86ebd2>Copyright © 2023-RW-API-Code</p></div></footer><!--[--><!--]--></div></div>
<script>__VP_HASH_MAP__ = JSON.parse("{\"api-examples.md\":\"cd86cd6d\",\"index.md\":\"3f0b856d\",\"markdown-examples.md\":\"effb3764\",\"src_debug_test.md\":\"374e13c1\",\"src_map_tsada.md\":\"124b9478\",\"src_unit_canbuild.md\":\"a704448b\",\"src_unit_graphics.md\":\"11d4f4e2\",\"src_unit_loginboolean.md\":\"b0e99e47\",\"src_unit_core.md\":\"29521eb3\"}")
<script>__VP_HASH_MAP__ = JSON.parse("{\"src_map_tsada.md\":\"124b9478\",\"src_unit_loginboolean.md\":\"fb4b4496\",\"index.md\":\"3f0b856d\",\"markdown-examples.md\":\"effb3764\",\"src_unit_canbuild.md\":\"a704448b\",\"src_debug_test.md\":\"374e13c1\",\"src_unit_graphics.md\":\"11d4f4e2\",\"api-examples.md\":\"cd86cd6d\",\"src_unit_core.md\":\"707da377\"}")
__VP_SITE_DATA__ = JSON.parse("{\"lang\":\"en-US\",\"dir\":\"ltr\",\"title\":\"RW-API_Code\",\"description\":\"Easy Code\",\"base\":\"/\",\"head\":[],\"appearance\":true,\"themeConfig\":{\"nav\":[{\"text\":\"主页\",\"link\":\"/\"},{\"text\":\"单位API\",\"link\":\"/src/Unit/core\"},{\"text\":\"地图API\",\"link\":\"/src/Map/teada\"},{\"text\":\"调试API\",\"link\":\"/src/Debug/test\"},{\"text\":\"开发指南\",\"link\":\"/DEV\"}],\"docFooter\":{\"prev\":\"上一篇文章\",\"next\":\"下一篇文章\"},\"sidebar\":[{\"text\":\"RW-API-Code\",\"items\":[{\"text\":\"主页-Home\",\"link\":\"/markdown-examples\"},{\"text\":\"核心-CORE\",\"link\":\"/src/Unit/core\"},{\"text\":\"可建造-CORE\",\"link\":\"/src/Unit/canbuild\"},{\"text\":\"逻辑组-LogicBoolean\",\"link\":\"/src/Unit/loginboolean\"}]}],\"socialLinks\":[{\"icon\":\"github\",\"link\":\"https://github.com/vuejs/vitepress\"}],\"footer\":{\"message\":\"Rosy-Code Ling Web Stuido\",\"copyright\":\"Copyright © 2023-RW-API-Code\"}},\"locales\":{},\"scrollOffset\":90,\"cleanUrls\":true}")</script>
</body>

1
assets/app.40db9657.js Normal file
View File

@ -0,0 +1 @@
import{d as u,I as s,a1 as d,u as m,h as f,l as h,a2 as y,a3 as g,a4 as v,a5 as A,a6 as C,a7 as w,a8 as b,a9 as x,aa as E,ab as P,ac as T,ad as D,ae as S,af as _}from"./chunks/framework.afbd7175.js";import{t as R}from"./chunks/theme.a458785b.js";function L(e){return new Promise(t=>setTimeout(t,e))}async function j(){try{await L(1e3),console.log("timeout");const e=document.getElementsByClassName("copy");console.log(e),console.log(e.length);for(let t=0;t<e.length;t++){const n=e[t];n.addEventListener("touchend",async()=>{alert("touchend");const l=[...n.parentNode.querySelector("code").querySelectorAll("span")],c=[...new Set(l.map(i=>i.textContent))].join("");try{await navigator.clipboard.writeText(c),console.log("Text copied to clipboard")}catch{const r=document.createElement("textarea");r.value=c,document.body.appendChild(r),r.select(),document.execCommand("copy"),document.body.removeChild(r),console.log("Text copied to clipboard")}})}}catch(e){console.error(e)}}j();function p(e){if(e.extends){const t=p(e.extends);return{...t,...e,async enhanceApp(n){t.enhanceApp&&await t.enhanceApp(n),e.enhanceApp&&await e.enhanceApp(n)}}}return e}const o=p(R),O=u({name:"VitePressApp",setup(){const{site:e}=m();return f(()=>{h(()=>{document.documentElement.lang=e.value.lang,document.documentElement.dir=e.value.dir})}),y(),g(),v(),o.setup&&o.setup(),()=>A(o.Layout)}});async function B(){const e=I(),t=F();t.provide(C,e);const n=w(e.route);return t.provide(b,n),t.component("Content",x),t.component("ClientOnly",E),Object.defineProperties(t.config.globalProperties,{$frontmatter:{get(){return n.frontmatter.value}},$params:{get(){return n.page.value.params}}}),o.enhanceApp&&await o.enhanceApp({app:t,router:e,siteData:P}),{app:t,router:e,data:n}}function F(){return T(O)}function I(){let e=s,t;return D(n=>{let a=S(n);return e&&(t=a),(e||t===a)&&(a=a.replace(/\.js$/,".lean.js")),s&&(e=!1),_(()=>import(a),[])},o.NotFound)}s&&B().then(({app:e,router:t,data:n})=>{t.go().then(()=>{d(t.route,n.site),e.mount("#app")})});export{B as createApp};

View File

@ -1 +0,0 @@
import{d as l,I as c,a1 as u,u as d,h as m,l as f,a2 as h,a3 as g,a4 as y,a5 as v,a6 as A,a7 as C,a8 as b,a9 as w,aa as E,ab as P,ac as x,ad as T,ae as D,af as S}from"./chunks/framework.afbd7175.js";import{t as _}from"./chunks/theme.a458785b.js";function R(e){return new Promise(t=>setTimeout(t,e))}async function L(){try{await R(1e3),console.log("timeout");const e=document.getElementsByClassName("copy");console.log(e),console.log(e.length);for(let t=0;t<e.length;t++){const n=e[t];n.addEventListener("touchend",()=>{alert("touchend");const p=[...n.parentNode.querySelector("code").querySelectorAll("span")],r=[...new Set(p.map(o=>o.textContent))].join("");if(navigator.clipboard)navigator.clipboard.writeText(r).then(()=>{console.log("Text copied to clipboard")});else{const o=document.createElement("textarea");o.value=r,document.body.appendChild(o),o.select(),document.execCommand("copy"),document.body.removeChild(o)}console.log(r)})}}catch(e){console.error(e)}}L();function i(e){if(e.extends){const t=i(e.extends);return{...t,...e,async enhanceApp(n){t.enhanceApp&&await t.enhanceApp(n),e.enhanceApp&&await e.enhanceApp(n)}}}return e}const s=i(_),j=l({name:"VitePressApp",setup(){const{site:e}=d();return m(()=>{f(()=>{document.documentElement.lang=e.value.lang,document.documentElement.dir=e.value.dir})}),h(),g(),y(),s.setup&&s.setup(),()=>v(s.Layout)}});async function O(){const e=F(),t=B();t.provide(A,e);const n=C(e.route);return t.provide(b,n),t.component("Content",w),t.component("ClientOnly",E),Object.defineProperties(t.config.globalProperties,{$frontmatter:{get(){return n.frontmatter.value}},$params:{get(){return n.page.value.params}}}),s.enhanceApp&&await s.enhanceApp({app:t,router:e,siteData:P}),{app:t,router:e,data:n}}function B(){return x(j)}function F(){let e=c,t;return T(n=>{let a=D(n);return e&&(t=a),(e||t===a)&&(a=a.replace(/\.js$/,".lean.js")),c&&(e=!1),S(()=>import(a),[])},s.NotFound)}c&&O().then(({app:e,router:t,data:n})=>{t.go().then(()=>{u(t.route,n.site),e.mount("#app")})});export{O as createApp};

View File

@ -1,4 +1,4 @@
import{_ as t,o,c as r,x as e,a,C as l,z as n,N as i,D as c}from"./chunks/framework.afbd7175.js";const S=JSON.parse('{"title":"[core]组","description":"","frontmatter":{"outline":"deep"},"headers":[],"relativePath":"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 &quot;**[core]组**&quot;"></a></h1><h2 id="第一类-通用代码组" tabindex="-1">第一类-通用代码组 <a class="header-anchor" href="#第一类-通用代码组" aria-label="Permalink to &quot;第一类-通用代码组&quot;"></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 &quot;name&quot;"></a></h3><h4 id="name-代码简介" tabindex="-1">name-代码简介 <a class="header-anchor" href="#name-代码简介" aria-label="Permalink to &quot;name-代码简介&quot;"></a></h4><p>代码:name 中文释义:名字 类型:字符型 隶属于:通用代码组</p><h4 id="name-要点指示" tabindex="-1">name-要点指示 <a class="header-anchor" href="#name-要点指示" aria-label="Permalink to &quot;name-要点指示&quot;"></a></h4><hr><div class="vp-code-group"><div class="tabs"><input type="radio" name="group-uOWg3" id="tab-YL_7PCO" checked="checked"><label for="tab-YL_7PCO">JDSALing</label><input type="radio" name="group-uOWg3" id="tab-4kgbdZv"><label for="tab-4kgbdZv">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,o,c as r,x as e,a,C as l,z as n,N as i,D as c}from"./chunks/framework.afbd7175.js";const S=JSON.parse('{"title":"[core]组","description":"","frontmatter":{"outline":"deep"},"headers":[],"relativePath":"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 &quot;**[core]组**&quot;"></a></h1><h2 id="第一类-通用代码组" tabindex="-1">第一类-通用代码组 <a class="header-anchor" href="#第一类-通用代码组" aria-label="Permalink to &quot;第一类-通用代码组&quot;"></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 &quot;name&quot;"></a></h3><h4 id="name-代码简介" tabindex="-1">name-代码简介 <a class="header-anchor" href="#name-代码简介" aria-label="Permalink to &quot;name-代码简介&quot;"></a></h4><p>代码:name 中文释义:名字 类型:字符型 隶属于:通用代码组</p><h4 id="name-要点指示" tabindex="-1">name-要点指示 <a class="header-anchor" href="#name-要点指示" aria-label="Permalink to &quot;name-要点指示&quot;"></a></h4><hr><div class="vp-code-group"><div class="tabs"><input type="radio" name="group-S8wT2" id="tab-ewV2g9_" checked="checked"><label for="tab-ewV2g9_">JDSALing</label><input type="radio" name="group-S8wT2" id="tab-4aN8LCr"><label for="tab-4aN8LCr">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 style="color:#A6ACCD;">]</span></span>
@ -17,20 +17,20 @@ import{_ as t,o,c as r,x as e,a,C as l,z as n,N as i,D as c}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 &quot;price&quot;"></a></h3><h4 id="price-" tabindex="-1">price- <a class="header-anchor" href="#price-" aria-label="Permalink to &quot;price-&quot;"></a></h4><p>:price : : :</p><h4 id="price-" tabindex="-1">price- <a class="header-anchor" href="#price-" aria-label="Permalink to &quot;price-&quot;"></a></h4><p></p><div class="vp-code-group"><div class="tabs"><input type="radio" name="group-uEbjd" id="tab-iI6ETNN" checked="checked"><label for="tab-iI6ETNN">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 &quot;price&quot;"></a></h3><h4 id="price-" tabindex="-1">price- <a class="header-anchor" href="#price-" aria-label="Permalink to &quot;price-&quot;"></a></h4><p>:price : : :</p><h4 id="price-" tabindex="-1">price- <a class="header-anchor" href="#price-" aria-label="Permalink to &quot;price-&quot;"></a></h4><p></p><div class="vp-code-group"><div class="tabs"><input type="radio" name="group-PbY8M" id="tab-ZgSJLr_" checked="checked"><label for="tab-ZgSJLr_">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=数值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 &quot;price-&quot;"></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 &quot;radius&quot;"></a></h3><h4 id="radius-" tabindex="-1">radius- <a class="header-anchor" href="#radius-" aria-label="Permalink to &quot;radius-&quot;"></a></h4><p>:radius : : :</p><h4 id="radius-" tabindex="-1">radius- <a class="header-anchor" href="#radius-" aria-label="Permalink to &quot;radius-&quot;"></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 &quot;radius-&quot;"></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 &quot;mass&quot;"></a></h3><h4 id="mass-" tabindex="-1">mass- <a class="header-anchor" href="#mass-" aria-label="Permalink to &quot;mass-&quot;"></a></h4><p>:mass : : :</p><h4 id="mass-" tabindex="-1">mass- <a class="header-anchor" href="#mass-" aria-label="Permalink to &quot;mass-&quot;"></a></h4><p><code></code></p><h4 id="mass-" tabindex="-1">mass- <a class="header-anchor" href="#mass-" aria-label="Permalink to &quot;mass-&quot;"></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 &quot;maxHp&quot;"></a></h3><h4 id="maxhp-" tabindex="-1">maxHp- <a class="header-anchor" href="#maxhp-" aria-label="Permalink to &quot;maxHp-&quot;"></a></h4><p>:maxHp : : :</p><h4 id="maxhp-" tabindex="-1">maxHp- <a class="header-anchor" href="#maxhp-" aria-label="Permalink to &quot;maxHp-&quot;"></a></h4><div class="vp-code-group"><div class="tabs"><input type="radio" name="group-Rkpf7" id="tab-lyeYJd6" checked="checked"><label for="tab-lyeYJd6">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 &quot;maxHp&quot;"></a></h3><h4 id="maxhp-" tabindex="-1">maxHp- <a class="header-anchor" href="#maxhp-" aria-label="Permalink to &quot;maxHp-&quot;"></a></h4><p>:maxHp : : :</p><h4 id="maxhp-" tabindex="-1">maxHp- <a class="header-anchor" href="#maxhp-" aria-label="Permalink to &quot;maxHp-&quot;"></a></h4><div class="vp-code-group"><div class="tabs"><input type="radio" name="group-9ap4O" id="tab-23Jmgwf" checked="checked"><label for="tab-23Jmgwf">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 style="color:#A6ACCD;">]</span></span></code></pre></div></div></div><h4 id="maxhp-" tabindex="-1">maxHp- <a class="header-anchor" href="#maxhp-" aria-label="Permalink to &quot;maxHp-&quot;"></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;">maxHp:600</span></span></code></pre></div><h3 id="altnames" tabindex="-1">altNames <a class="header-anchor" href="#altnames" aria-label="Permalink to &quot;altNames&quot;"></a></h3><h4 id="altnames-" tabindex="-1">altNames- <a class="header-anchor" href="#altnames-" aria-label="Permalink to &quot;altNames-&quot;"></a></h4><p>:altNames :/ : :</p><h4 id="altnames-" tabindex="-1">altNames- <a class="header-anchor" href="#altnames-" aria-label="Permalink to &quot;altNames-&quot;"></a></h4><p>altNames:</p><h4 id="jdsaling" tabindex="-1"><strong>JDSALing</strong> <a class="header-anchor" href="#jdsaling" aria-label="Permalink to &quot;**JDSALing**&quot;"></a></h4>`,51),h=e("br",null,null,-1),u=i(`<h4 id="altnames-" tabindex="-1">altNames- <a class="header-anchor" href="#altnames-" aria-label="Permalink to &quot;altNames-&quot;"></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;">altNames:ling,tobby3600,coldmint</span></span></code></pre></div><hr><h3 id="class" tabindex="-1">class <a class="header-anchor" href="#class" aria-label="Permalink to &quot;class&quot;"></a></h3><h4 id="class-" tabindex="-1">class- <a class="header-anchor" href="#class-" aria-label="Permalink to &quot;class-&quot;"></a></h4><p>:class : : :</p><p><br> Luke使<code>CustomUnitMetadata</code><br> </p><h4 id="class-" tabindex="-1">class- <a class="header-anchor" href="#class-" aria-label="Permalink to &quot;class-&quot;"></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;">class:CustomUnitMetadata</span></span></code></pre></div><hr><h3 id="strictlevel" tabindex="-1">strictLevel <a class="header-anchor" href="#strictlevel" aria-label="Permalink to &quot;strictLevel&quot;"></a></h3><h4 id="strictlevel-" tabindex="-1">strictLevel- <a class="header-anchor" href="#strictlevel-" aria-label="Permalink to &quot;strictLevel-&quot;"></a></h4><p>:strictLevel : : :</p><div class="tip custom-block"><p class="custom-block-title">TIP</p><p>&quot;all-units.template&quot;,<br> 01</p></div><h4 id="strictlevel-" tabindex="-1">strictLevel- <a class="header-anchor" href="#strictlevel-" aria-label="Permalink to &quot;strictLevel-&quot;"></a></h4><div class="language-all-units.template,ini"><button title="Copy Code" class="copy"></button><span class="lang">all-units.template,ini</span><pre class="shiki material-theme-palenight"><code><span class="line"><span style="color:#A6ACCD;">[core]</span></span>
<span class="line"><span style="color:#A6ACCD;">strictLevel:1</span></span></code></pre></div><hr><h3 id="techlevel" tabindex="-1">techLevel <a class="header-anchor" href="#techlevel" aria-label="Permalink to &quot;techLevel&quot;"></a></h3><h4 id="techlevel-" tabindex="-1">techLevel- <a class="header-anchor" href="#techlevel-" aria-label="Permalink to &quot;techLevel-&quot;"></a></h4><p>:techLevel : : :</p>`,20),m={class:"tip custom-block"},g=e("p",{class:"custom-block-title"},"TIP",-1),b=e("br",null,null,-1),y=e("br",null,null,-1),C=i(`<h4 id="techlevel-" tabindex="-1">techLevel- <a class="header-anchor" href="#techlevel-" aria-label="Permalink to &quot;techLevel-&quot;"></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;">strictLevel:1</span></span></code></pre></div><hr><h3 id="techlevel" tabindex="-1">techLevel <a class="header-anchor" href="#techlevel" aria-label="Permalink to &quot;techLevel&quot;"></a></h3><h4 id="techlevel-" tabindex="-1">techLevel- <a class="header-anchor" href="#techlevel-" aria-label="Permalink to &quot;techLevel-&quot;"></a></h4><p>:techLevel : : :</p>`,20),g={class:"tip custom-block"},m=e("p",{class:"custom-block-title"},"TIP",-1),b=e("br",null,null,-1),y=e("br",null,null,-1),C=i(`<h4 id="techlevel-" tabindex="-1">techLevel- <a class="header-anchor" href="#techlevel-" aria-label="Permalink to &quot;techLevel-&quot;"></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;">techLevel:2</span></span></code></pre></div><hr><h3 id="buildspeed" tabindex="-1">buildSpeed <a class="header-anchor" href="#buildspeed" aria-label="Permalink to &quot;buildSpeed&quot;"></a></h3><h4 id="buildspeed-" tabindex="-1">buildSpeed- <a class="header-anchor" href="#buildspeed-" aria-label="Permalink to &quot;buildSpeed-&quot;"></a></h4><p>:buildSpeed : :/ :</p><div class="tip custom-block"><p class="custom-block-title">TIP</p><p><br> =1÷(60x)</p></div><h4 id="buildspeed-" tabindex="-1">buildSpeed- <a class="header-anchor" href="#buildspeed-" aria-label="Permalink to &quot;buildSpeed-&quot;"></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:30s</span></span>
<span class="line"><span style="color:#676E95;font-style:italic;">#或者</span></span>
@ -62,7 +62,7 @@ import{_ as t,o,c as r,x as e,a,C as l,z as n,N as i,D as c}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 &quot;borrowResourcesWhileAlive&quot;"></a></h3><h4 id="borrowresourceswhilealive-" tabindex="-1">borrowResourcesWhileAlive- <a class="header-anchor" href="#borrowresourceswhilealive-" aria-label="Permalink to &quot;borrowResourcesWhileAlive-&quot;"></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 &quot;borrowResourcesWhileAlive-&quot;"></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-OGFxU" id="tab-m_Q6pQZ" checked="checked"><label for="tab-m_Q6pQZ"></label><input type="radio" name="group-OGFxU" id="tab-8huwMRw"><label for="tab-8huwMRw"></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-7XzPJ" id="tab-BDP9SSM" checked="checked"><label for="tab-BDP9SSM"></label><input type="radio" name="group-7XzPJ" id="tab-CjWg0-p"><label for="tab-CjWg0-p"></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:</span><span style="color:#82AAFF;">true</span></span>
@ -107,4 +107,4 @@ import{_ as t,o,c as r,x as e,a,C as l,z as n,N as i,D as c}from"./chunks/framew
<span class="line"><span style="color:#A6ACCD;">shieldDeflectionDisplayRate:3</span></span></code></pre></div><hr><h3 id="showonminimap" tabindex="-1">showOnMinimap <a class="header-anchor" href="#showonminimap" aria-label="Permalink to &quot;showOnMinimap&quot;"></a></h3><h4 id="showonminimap-" tabindex="-1">showOnMinimap- <a class="header-anchor" href="#showonminimap-" aria-label="Permalink to &quot;showOnMinimap-&quot;"></a></h4><p>:showOnMinimap : : :UI</p><div class="tip custom-block"><p class="custom-block-title">TIP</p><p>truefalse</p></div><h4 id="showonminimap-" tabindex="-1">showOnMinimap- <a class="header-anchor" href="#showonminimap-" aria-label="Permalink to &quot;showOnMinimap-&quot;"></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;">showOnMinimap:true</span></span></code></pre></div><hr><h3 id="showonminimaptoenemies" tabindex="-1">showOnMinimapToEnemies <a class="header-anchor" href="#showonminimaptoenemies" aria-label="Permalink to &quot;showOnMinimapToEnemies&quot;"></a></h3><h4 id="showonminimaptoenemies-" tabindex="-1">showOnMinimapToEnemies- <a class="header-anchor" href="#showonminimaptoenemies-" aria-label="Permalink to &quot;showOnMinimapToEnemies-&quot;"></a></h4><p>:showOnMinimapToEnemies : : :UI</p><div class="tip custom-block"><p class="custom-block-title">TIP</p><p></p></div><h4 id="showonminimaptoenemies-" tabindex="-1">showOnMinimapToEnemies- <a class="header-anchor" href="#showonminimaptoenemies-" aria-label="Permalink to &quot;showOnMinimapToEnemies-&quot;"></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;">showOnMinimapToEnemies:true</span></span></code></pre></div><hr><h3 id="showactionswithmixedselectionifotherunitshavetag" tabindex="-1">showActionsWithMixedSelectionIfOtherUnitsHaveTag <a class="header-anchor" href="#showactionswithmixedselectionifotherunitshavetag" aria-label="Permalink to &quot;showActionsWithMixedSelectionIfOtherUnitsHaveTag&quot;"></a></h3><h4 id="showactionswithmixedselectionifotherunitshavetag-" tabindex="-1">showActionsWithMixedSelectionIfOtherUnitsHaveTag- <a class="header-anchor" href="#showactionswithmixedselectionifotherunitshavetag-" aria-label="Permalink to &quot;showActionsWithMixedSelectionIfOtherUnitsHaveTag-&quot;"></a></h4><p>:showActionsWithMixedSelectionIfOtherUnitsHaveTag : : :UI</p><div class="tip custom-block"><p class="custom-block-title">TIP</p><p>使(action)</p></div><h4 id="showactionswithmixedselectionifotherunitshavetag-" tabindex="-1">showActionsWithMixedSelectionIfOtherUnitsHaveTag- <a class="header-anchor" href="#showactionswithmixedselectionifotherunitshavetag-" aria-label="Permalink to &quot;showActionsWithMixedSelectionIfOtherUnitsHaveTag-&quot;"></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;">showActionsWithMixedSelectionIfOtherUnitsHaveTag:tag_联系</span></span></code></pre></div><h2 id="-" tabindex="-1">- <a class="header-anchor" href="#-" aria-label="Permalink to &quot;-&quot;"></a></h2>`,148);function P(F,_,T,R,w,B){const s=c("font");return o(),r("div",null,[d,e("p",null,[a(""),l(s,{color:"orange"},{default:n(()=>[a("Mod")]),_:1}),a(""),h,a(" "),l(s,{color:"orange"},{default:n(()=>[a("")]),_:1}),a(""),l(s,{color:"orange"},{default:n(()=>[a("mod")]),_:1}),a("")]),u,e("div",m,[g,e("p",null,[a(""),l(s,{color:"orange"},{default:n(()=>[a("builtFrom")]),_:1}),a(",使"),b,a("1.09"),l(s,{color:"orange"},{default:n(()=>[a("overrideAndReplace")]),_:1}),a("使"),l(s,{color:"orange"},{default:n(()=>[a("overrideAndReplace")]),_:1}),a(""),y,a(" 31GUI绿233")])]),C,e("div",k,[v,e("p",null,[a("true,,"),q,a(" "),l(s,{color:"orange"},{default:n(()=>[a("drawable/blood_mark.png---hideScorchMark:true")]),_:1}),a("")])]),x,e("div",D,[f,e("p",null,[a(""),l(s,{color:"orange"},{default:n(()=>[a("energyNeedsToRechargeToFull")]),_:1}),a(" energyRegen")])]),A])}const E=t(p,[["render",P]]);export{S as __pageData,E as default};
<span class="line"><span style="color:#A6ACCD;">showActionsWithMixedSelectionIfOtherUnitsHaveTag:tag_联系</span></span></code></pre></div><h2 id="-" tabindex="-1">- <a class="header-anchor" href="#-" aria-label="Permalink to &quot;-&quot;"></a></h2>`,148);function P(F,_,T,w,R,B){const s=c("font");return o(),r("div",null,[d,e("p",null,[a(""),l(s,{color:"orange"},{default:n(()=>[a("Mod")]),_:1}),a(""),h,a(" "),l(s,{color:"orange"},{default:n(()=>[a("")]),_:1}),a(""),l(s,{color:"orange"},{default:n(()=>[a("mod")]),_:1}),a("")]),u,e("div",g,[m,e("p",null,[a(""),l(s,{color:"orange"},{default:n(()=>[a("builtFrom")]),_:1}),a(",使"),b,a("1.09"),l(s,{color:"orange"},{default:n(()=>[a("overrideAndReplace")]),_:1}),a("使"),l(s,{color:"orange"},{default:n(()=>[a("overrideAndReplace")]),_:1}),a(""),y,a(" 31GUI绿233")])]),C,e("div",k,[v,e("p",null,[a("true,,"),q,a(" "),l(s,{color:"orange"},{default:n(()=>[a("drawable/blood_mark.png---hideScorchMark:true")]),_:1}),a("")])]),x,e("div",D,[f,e("p",null,[a(""),l(s,{color:"orange"},{default:n(()=>[a("energyNeedsToRechargeToFull")]),_:1}),a(" energyRegen")])]),A])}const M=t(p,[["render",P]]);export{S as __pageData,M as default};

View File

@ -1 +1 @@
import{_ as t,o,c as r,x as e,a,C as l,z as n,N as i,D as c}from"./chunks/framework.afbd7175.js";const S=JSON.parse('{"title":"[core]组","description":"","frontmatter":{"outline":"deep"},"headers":[],"relativePath":"src/Unit/core.md"}'),p={name:"src/Unit/core.md"},d=i("",51),h=e("br",null,null,-1),u=i("",20),m={class:"tip custom-block"},g=e("p",{class:"custom-block-title"},"TIP",-1),b=e("br",null,null,-1),y=e("br",null,null,-1),C=i("",13),k={class:"tip custom-block"},v=e("p",{class:"custom-block-title"},"TIP",-1),q=e("br",null,null,-1),x=i("",77),D={class:"tip custom-block"},f=e("p",{class:"custom-block-title"},"TIP",-1),A=i("",148);function P(F,_,T,R,w,B){const s=c("font");return o(),r("div",null,[d,e("p",null,[a("主要在"),l(s,{color:"orange"},{default:n(()=>[a("启用多个自定义Mod")]),_:1}),a("进行优先级定义"),h,a(" 以逗号分隔的名称列表。像"),l(s,{color:"orange"},{default:n(()=>[a("名称一样,但优先级较低")]),_:1}),a(",对于"),l(s,{color:"orange"},{default:n(()=>[a("启用多个自定义mod")]),_:1}),a("有用。")]),u,e("div",m,[g,e("p",null,[a("早期是用于在"),l(s,{color:"orange"},{default:n(()=>[a("builtFrom")]),_:1}),a("的代码,并结合科技等级使用。如果工厂的等级低于单位的目标科技等级,则会在工厂里面隐藏该单位。"),b,a("自铁锈1.09后出现"),l(s,{color:"orange"},{default:n(()=>[a("overrideAndReplace")]),_:1}),a("后,该方法则不建议使用。有关于新策略,请参考"),l(s,{color:"orange"},{default:n(()=>[a("overrideAndReplace")]),_:1}),a("代码文档指南。"),y,a(" 设置单位的科技等级共有3个级别1级GUI显示为绿色2、3级显示为黄色。超过3报错。")])]),C,e("div",k,[v,e("p",null,[a("若设置成true,则会在单位死亡时产生血迹,"),q,a(" 图像在"),l(s,{color:"orange"},{default:n(()=>[a("drawable/blood_mark.png---hideScorchMark:true")]),_:1}),a("时可以隐藏非生物则为黑色爆炸效果。")])]),x,e("div",D,[f,e("p",null,[a("能量恢复是持续的,如果你设置了"),l(s,{color:"orange"},{default:n(()=>[a("energyNeedsToRechargeToFull")]),_:1}),a(" 那么攻击时按energyRegen恢复耗尽时的灰条按此处设定值恢复。")])]),A])}const E=t(p,[["render",P]]);export{S as __pageData,E as default};
import{_ as t,o,c as r,x as e,a,C as l,z as n,N as i,D as c}from"./chunks/framework.afbd7175.js";const S=JSON.parse('{"title":"[core]组","description":"","frontmatter":{"outline":"deep"},"headers":[],"relativePath":"src/Unit/core.md"}'),p={name:"src/Unit/core.md"},d=i("",51),h=e("br",null,null,-1),u=i("",20),g={class:"tip custom-block"},m=e("p",{class:"custom-block-title"},"TIP",-1),b=e("br",null,null,-1),y=e("br",null,null,-1),C=i("",13),k={class:"tip custom-block"},v=e("p",{class:"custom-block-title"},"TIP",-1),q=e("br",null,null,-1),x=i("",77),D={class:"tip custom-block"},f=e("p",{class:"custom-block-title"},"TIP",-1),A=i("",148);function P(F,_,T,w,R,B){const s=c("font");return o(),r("div",null,[d,e("p",null,[a("主要在"),l(s,{color:"orange"},{default:n(()=>[a("启用多个自定义Mod")]),_:1}),a("进行优先级定义"),h,a(" 以逗号分隔的名称列表。像"),l(s,{color:"orange"},{default:n(()=>[a("名称一样,但优先级较低")]),_:1}),a(",对于"),l(s,{color:"orange"},{default:n(()=>[a("启用多个自定义mod")]),_:1}),a("有用。")]),u,e("div",g,[m,e("p",null,[a("早期是用于在"),l(s,{color:"orange"},{default:n(()=>[a("builtFrom")]),_:1}),a("的代码,并结合科技等级使用。如果工厂的等级低于单位的目标科技等级,则会在工厂里面隐藏该单位。"),b,a("自铁锈1.09后出现"),l(s,{color:"orange"},{default:n(()=>[a("overrideAndReplace")]),_:1}),a("后,该方法则不建议使用。有关于新策略,请参考"),l(s,{color:"orange"},{default:n(()=>[a("overrideAndReplace")]),_:1}),a("代码文档指南。"),y,a(" 设置单位的科技等级共有3个级别1级GUI显示为绿色2、3级显示为黄色。超过3报错。")])]),C,e("div",k,[v,e("p",null,[a("若设置成true,则会在单位死亡时产生血迹,"),q,a(" 图像在"),l(s,{color:"orange"},{default:n(()=>[a("drawable/blood_mark.png---hideScorchMark:true")]),_:1}),a("时可以隐藏非生物则为黑色爆炸效果。")])]),x,e("div",D,[f,e("p",null,[a("能量恢复是持续的,如果你设置了"),l(s,{color:"orange"},{default:n(()=>[a("energyNeedsToRechargeToFull")]),_:1}),a(" 那么攻击时按energyRegen恢复耗尽时的灰条按此处设定值恢复。")])]),A])}const M=t(p,[["render",P]]);export{S as __pageData,M as default};

View File

@ -1,2 +1,2 @@
import{_ as n,o as r,c as i,C as l,z as s,a as e,x as a,N as t,D as c}from"./chunks/framework.afbd7175.js";const Z=JSON.parse('{"title":"[LogicBoolean] 逻辑序列组","description":"","frontmatter":{"outline":"deep"},"headers":[],"relativePath":"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),k=t("",7),v=t("",5),P=a("br",null,null,-1),I=t("",24),x=t("",13),F=t("",18),U=a("code",null,"self.hasFlag()",-1),O=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),B=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),W=t("",1),M=t("",2);function Q(z,L,G,Y,$,H){const o=c("font");return r(),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("。")])]),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("number")]),_:1}),e("和"),l(o,{color:"orange"},{default:s(()=>[e("float")]),_:1}),e("类型可以混用(建议"),l(o,{color:"orange"},{default:s(()=>[e("所有数值全部使用float")]),_: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("运算优先级")]),_: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,[U,e("用于获取自身是否有"),l(o,{color:"orange"},{default:s(()=>[e("标志")]),_:1}),e(",格式为"),O,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,B,W]),M])}const J=n(d,[["render",Q]]);export{Z as __pageData,J as default};
import{_ as n,o as r,c as i,C as l,z as s,a as e,x as a,N as t,D as c}from"./chunks/framework.afbd7175.js";const j=JSON.parse('{"title":"[LogicBoolean] 逻辑序列组","description":"","frontmatter":{"outline":"deep"},"headers":[],"relativePath":"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),k=t("",7),v=t("",5),P=a("br",null,null,-1),x=t("",24),I=t("",13),F=t("",18),U=a("code",null,"self.hasFlag()",-1),O=a("code",null,"self.hasFlag(id=数字)",-1),E=a("br",null,null,-1),S=t("",15),N=t("",35),R={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),B=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),W=t("",1),M=t("",2);function L(Q,G,Y,$,z,H){const o=c("font");return r(),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("。")])]),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("number")]),_:1}),e("和"),l(o,{color:"orange"},{default:s(()=>[e("float")]),_:1}),e("类型可以混用(建议"),l(o,{color:"orange"},{default:s(()=>[e("所有数值全部使用float")]),_: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("运算优先级")]),_:1}),e("是否正确。由于铁锈本身bug"),l(o,{color:"orange"},{default:s(()=>[e("在数学上正确的优先级不一定在铁锈中正确")]),_:1}),e(",因此可能出现减法顺序混乱等问题。 "),P,e("为了避免可能的问题,请尽量在任何"),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("这个资源在这个单位定义过")]),_:1}),e(",否则会报错。")])]),I,a("blockquote",null,[a("p",null,[e("[!NOTE] 单位计时部分能返回到最小时间精度为"),l(o,{color:"orange"},{default:s(()=>[e("0.1秒")]),_:1}),e("。")])]),F,a("p",null,[U,e("用于获取自身是否有"),l(o,{color:"orange"},{default:s(()=>[e("标志")]),_:1}),e(",格式为"),O,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("。")])]),N,a("div",R,[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,B,W]),M])}const K=n(d,[["render",L]]);export{j as __pageData,K as default};

View File

@ -1 +1 @@
{"api-examples.md":"cd86cd6d","index.md":"3f0b856d","markdown-examples.md":"effb3764","src_debug_test.md":"374e13c1","src_map_tsada.md":"124b9478","src_unit_canbuild.md":"a704448b","src_unit_graphics.md":"11d4f4e2","src_unit_loginboolean.md":"b0e99e47","src_unit_core.md":"29521eb3"}
{"src_map_tsada.md":"124b9478","src_unit_loginboolean.md":"fb4b4496","index.md":"3f0b856d","markdown-examples.md":"effb3764","src_unit_canbuild.md":"a704448b","src_debug_test.md":"374e13c1","src_unit_graphics.md":"11d4f4e2","api-examples.md":"cd86cd6d","src_unit_core.md":"707da377"}

File diff suppressed because one or more lines are too long

View File

@ -6,7 +6,7 @@
<title>Markdown Extension Examples | RW-API_Code</title>
<meta name="description" content="Easy Code">
<link rel="preload stylesheet" href="/assets/style.0fe59653.css" as="style">
<script type="module" src="/assets/app.7481c566.js"></script>
<script type="module" src="/assets/app.40db9657.js"></script>
<link rel="preload" href="/assets/inter-roman-latin.2ed14f66.woff2" as="font" type="font/woff2" crossorigin="">
<link rel="modulepreload" href="/assets/chunks/framework.afbd7175.js">
<link rel="modulepreload" href="/assets/chunks/theme.a458785b.js">
@ -47,7 +47,7 @@
<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 &quot;More&quot;"></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></div></div></main><footer class="VPDocFooter" data-v-c4b0d3cf data-v-face870a><!--[--><!--]--><!----><div class="prev-next" data-v-face870a><div class="pager" data-v-face870a><!----></div><div class="pager" data-v-face870a><a class="pager-link next" href="/src/Unit/core" data-v-face870a><span class="desc" data-v-face870a>下一篇文章</span><span class="title" data-v-face870a>核心-CORE</span></a></div></div></footer><!--[--><!--]--></div></div></div><!--[--><!--]--></div></div><footer class="VPFooter has-sidebar" data-v-b2cf3e0b data-v-2f86ebd2><div class="container" data-v-2f86ebd2><p class="message" data-v-2f86ebd2>Rosy-Code Ling Web Stuido</p><p class="copyright" data-v-2f86ebd2>Copyright © 2023-RW-API-Code</p></div></footer><!--[--><!--]--></div></div>
<script>__VP_HASH_MAP__ = JSON.parse("{\"api-examples.md\":\"cd86cd6d\",\"index.md\":\"3f0b856d\",\"markdown-examples.md\":\"effb3764\",\"src_debug_test.md\":\"374e13c1\",\"src_map_tsada.md\":\"124b9478\",\"src_unit_canbuild.md\":\"a704448b\",\"src_unit_graphics.md\":\"11d4f4e2\",\"src_unit_loginboolean.md\":\"b0e99e47\",\"src_unit_core.md\":\"29521eb3\"}")
<script>__VP_HASH_MAP__ = JSON.parse("{\"src_map_tsada.md\":\"124b9478\",\"src_unit_loginboolean.md\":\"fb4b4496\",\"index.md\":\"3f0b856d\",\"markdown-examples.md\":\"effb3764\",\"src_unit_canbuild.md\":\"a704448b\",\"src_debug_test.md\":\"374e13c1\",\"src_unit_graphics.md\":\"11d4f4e2\",\"api-examples.md\":\"cd86cd6d\",\"src_unit_core.md\":\"707da377\"}")
__VP_SITE_DATA__ = JSON.parse("{\"lang\":\"en-US\",\"dir\":\"ltr\",\"title\":\"RW-API_Code\",\"description\":\"Easy Code\",\"base\":\"/\",\"head\":[],\"appearance\":true,\"themeConfig\":{\"nav\":[{\"text\":\"主页\",\"link\":\"/\"},{\"text\":\"单位API\",\"link\":\"/src/Unit/core\"},{\"text\":\"地图API\",\"link\":\"/src/Map/teada\"},{\"text\":\"调试API\",\"link\":\"/src/Debug/test\"},{\"text\":\"开发指南\",\"link\":\"/DEV\"}],\"docFooter\":{\"prev\":\"上一篇文章\",\"next\":\"下一篇文章\"},\"sidebar\":[{\"text\":\"RW-API-Code\",\"items\":[{\"text\":\"主页-Home\",\"link\":\"/markdown-examples\"},{\"text\":\"核心-CORE\",\"link\":\"/src/Unit/core\"},{\"text\":\"可建造-CORE\",\"link\":\"/src/Unit/canbuild\"},{\"text\":\"逻辑组-LogicBoolean\",\"link\":\"/src/Unit/loginboolean\"}]}],\"socialLinks\":[{\"icon\":\"github\",\"link\":\"https://github.com/vuejs/vitepress\"}],\"footer\":{\"message\":\"Rosy-Code Ling Web Stuido\",\"copyright\":\"Copyright © 2023-RW-API-Code\"}},\"locales\":{},\"scrollOffset\":90,\"cleanUrls\":true}")</script>
</body>

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