Deploying to gh-pages from @ LingASDJ/RW-API-Code@77f0a1aa5e 🚀
This commit is contained in:
parent
fa929a0189
commit
6306a12bdd
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -1 +0,0 @@
|
|||
node_modules
|
File diff suppressed because one or more lines are too long
|
@ -1,16 +0,0 @@
|
|||
import{u as p,o,c as i,x as a,t as s,b as t,N as c,a as e}from"./chunks/framework.0e180df0.js";const d=c(`<h1 id="runtime-api-examples" tabindex="-1">Runtime API Examples <a class="header-anchor" href="#runtime-api-examples" aria-label="Permalink to "Runtime API Examples""></a></h1><p>This page demonstrates usage of some of the runtime APIs provided by VitePress.</p><p>The main <code>useData()</code> API can be used to access site, theme, and page data for the current page. It works in both <code>.md</code> and <code>.vue</code> files:</p><div class="language-md"><button title="Copy Code" class="copy"></button><span class="lang">md</span><pre class="shiki material-theme-palenight"><code><span class="line"><span style="color:#A6ACCD;"><script setup></span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;">import { useData } from 'vitepress'</span></span>
|
||||
<span class="line"></span>
|
||||
<span class="line"><span style="color:#A6ACCD;">const { theme, page, frontmatter } = useData()</span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;"></script></span></span>
|
||||
<span class="line"></span>
|
||||
<span class="line"><span style="color:#89DDFF;">## </span><span style="color:#FFCB6B;">Results</span></span>
|
||||
<span class="line"></span>
|
||||
<span class="line"><span style="color:#89DDFF;">### </span><span style="color:#FFCB6B;">Theme Data</span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;"><pre>{{ theme }}</pre></span></span>
|
||||
<span class="line"></span>
|
||||
<span class="line"><span style="color:#89DDFF;">### </span><span style="color:#FFCB6B;">Page Data</span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;"><pre>{{ page }}</pre></span></span>
|
||||
<span class="line"></span>
|
||||
<span class="line"><span style="color:#89DDFF;">### </span><span style="color:#FFCB6B;">Page Frontmatter</span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;"><pre>{{ frontmatter }}</pre></span></span></code></pre></div><h2 id="results" tabindex="-1">Results <a class="header-anchor" href="#results" aria-label="Permalink to "Results""></a></h2><h3 id="theme-data" tabindex="-1">Theme Data <a class="header-anchor" href="#theme-data" aria-label="Permalink to "Theme Data""></a></h3>`,6),m=a("h3",{id:"page-data",tabindex:"-1"},[e("Page Data "),a("a",{class:"header-anchor",href:"#page-data","aria-label":'Permalink to "Page Data"'},"")],-1),h=a("h3",{id:"page-frontmatter",tabindex:"-1"},[e("Page Frontmatter "),a("a",{class:"header-anchor",href:"#page-frontmatter","aria-label":'Permalink to "Page Frontmatter"'},"")],-1),u=a("h2",{id:"more",tabindex:"-1"},[e("More "),a("a",{class:"header-anchor",href:"#more","aria-label":'Permalink to "More"'},"")],-1),_=a("p",null,[e("Check out the documentation for the "),a("a",{href:"https://vitepress.dev/reference/runtime-api#usedata",target:"_blank",rel:"noreferrer"},"full list of runtime APIs"),e(".")],-1),b=JSON.parse('{"title":"Runtime API Examples","description":"","frontmatter":{"outline":"deep"},"headers":[],"relativePath":"api-examples.md"}'),g={name:"api-examples.md"},y=Object.assign(g,{setup(f){const{site:D,theme:n,page:l,frontmatter:r}=p();return(A,C)=>(o(),i("div",null,[d,a("pre",null,s(t(n)),1),m,a("pre",null,s(t(l)),1),h,a("pre",null,s(t(r)),1),u,_]))}});export{b as __pageData,y as default};
|
|
@ -1 +0,0 @@
|
|||
import{u as p,o,c as i,x as a,t as s,b as t,N as c,a as e}from"./chunks/framework.0e180df0.js";const d=c("",6),m=a("h3",{id:"page-data",tabindex:"-1"},[e("Page Data "),a("a",{class:"header-anchor",href:"#page-data","aria-label":'Permalink to "Page Data"'},"")],-1),h=a("h3",{id:"page-frontmatter",tabindex:"-1"},[e("Page Frontmatter "),a("a",{class:"header-anchor",href:"#page-frontmatter","aria-label":'Permalink to "Page Frontmatter"'},"")],-1),u=a("h2",{id:"more",tabindex:"-1"},[e("More "),a("a",{class:"header-anchor",href:"#more","aria-label":'Permalink to "More"'},"")],-1),_=a("p",null,[e("Check out the documentation for the "),a("a",{href:"https://vitepress.dev/reference/runtime-api#usedata",target:"_blank",rel:"noreferrer"},"full list of runtime APIs"),e(".")],-1),b=JSON.parse('{"title":"Runtime API Examples","description":"","frontmatter":{"outline":"deep"},"headers":[],"relativePath":"api-examples.md"}'),g={name:"api-examples.md"},y=Object.assign(g,{setup(f){const{site:D,theme:n,page:l,frontmatter:r}=p();return(A,C)=>(o(),i("div",null,[d,a("pre",null,s(t(n)),1),m,a("pre",null,s(t(l)),1),h,a("pre",null,s(t(r)),1),u,_]))}});export{b as __pageData,y as default};
|
|
@ -1 +1 @@
|
|||
import{d as p,I as s,a1 as i,u,h as c,l,a2 as d,a3 as f,a4 as m,a5 as h,a6 as A,a7 as g,a8 as P,a9 as v,aa as y,ab as C,ac as w,ad as _,ae as b,af as E}from"./chunks/framework.afbd7175.js";import{t as R}from"./chunks/theme.1d818c65.js";function r(e){if(e.extends){const a=r(e.extends);return{...a,...e,async enhanceApp(t){a.enhanceApp&&await a.enhanceApp(t),e.enhanceApp&&await e.enhanceApp(t)}}}return e}const n=r(R),D=p({name:"VitePressApp",setup(){const{site:e}=u();return c(()=>{l(()=>{document.documentElement.lang=e.value.lang,document.documentElement.dir=e.value.dir})}),d(),f(),m(),n.setup&&n.setup(),()=>h(n.Layout)}});async function O(){const e=T(),a=S();a.provide(A,e);const t=g(e.route);return a.provide(P,t),a.component("Content",v),a.component("ClientOnly",y),Object.defineProperties(a.config.globalProperties,{$frontmatter:{get(){return t.frontmatter.value}},$params:{get(){return t.page.value.params}}}),n.enhanceApp&&await n.enhanceApp({app:a,router:e,siteData:C}),{app:a,router:e,data:t}}function S(){return w(D)}function T(){let e=s,a;return _(t=>{let o=b(t);return e&&(a=o),(e||a===o)&&(o=o.replace(/\.js$/,".lean.js")),s&&(e=!1),E(()=>import(o),[])},n.NotFound)}s&&O().then(({app:e,router:a,data:t})=>{a.go().then(()=>{i(a.route,t.site),e.mount("#app")})});export{O as createApp};
|
||||
import{d as p,I as s,a1 as i,u,h as c,l,a2 as d,a3 as f,a4 as m,a5 as h,a6 as A,a7 as g,a8 as P,a9 as v,aa as y,ab as C,ac as w,ad as _,ae as b,af as E}from"./chunks/framework.afbd7175.js";import{t as R}from"./chunks/theme.a458785b.js";function r(e){if(e.extends){const a=r(e.extends);return{...a,...e,async enhanceApp(t){a.enhanceApp&&await a.enhanceApp(t),e.enhanceApp&&await e.enhanceApp(t)}}}return e}const n=r(R),D=p({name:"VitePressApp",setup(){const{site:e}=u();return c(()=>{l(()=>{document.documentElement.lang=e.value.lang,document.documentElement.dir=e.value.dir})}),d(),f(),m(),n.setup&&n.setup(),()=>h(n.Layout)}});async function O(){const e=T(),a=S();a.provide(A,e);const t=g(e.route);return a.provide(P,t),a.component("Content",v),a.component("ClientOnly",y),Object.defineProperties(a.config.globalProperties,{$frontmatter:{get(){return t.frontmatter.value}},$params:{get(){return t.page.value.params}}}),n.enhanceApp&&await n.enhanceApp({app:a,router:e,siteData:C}),{app:a,router:e,data:t}}function S(){return w(D)}function T(){let e=s,a;return _(t=>{let o=b(t);return e&&(a=o),(e||a===o)&&(o=o.replace(/\.js$/,".lean.js")),s&&(e=!1),E(()=>import(o),[])},n.NotFound)}s&&O().then(({app:e,router:a,data:t})=>{a.go().then(()=>{i(a.route,t.site),e.mount("#app")})});export{O as createApp};
|
|
@ -1 +0,0 @@
|
|||
import{d as p,I as s,a1 as i,u,h as c,l,a2 as d,a3 as f,a4 as m,a5 as h,a6 as A,a7 as g,a8 as P,a9 as v,aa as y,ab as C,ac as w,ad as _,ae as b,af as E}from"./chunks/framework.0e180df0.js";import{t as R}from"./chunks/theme.f24bf721.js";function r(e){if(e.extends){const a=r(e.extends);return{...a,...e,async enhanceApp(t){a.enhanceApp&&await a.enhanceApp(t),e.enhanceApp&&await e.enhanceApp(t)}}}return e}const n=r(R),D=p({name:"VitePressApp",setup(){const{site:e}=u();return c(()=>{l(()=>{document.documentElement.lang=e.value.lang,document.documentElement.dir=e.value.dir})}),d(),f(),m(),n.setup&&n.setup(),()=>h(n.Layout)}});async function O(){const e=T(),a=S();a.provide(A,e);const t=g(e.route);return a.provide(P,t),a.component("Content",v),a.component("ClientOnly",y),Object.defineProperties(a.config.globalProperties,{$frontmatter:{get(){return t.frontmatter.value}},$params:{get(){return t.page.value.params}}}),n.enhanceApp&&await n.enhanceApp({app:a,router:e,siteData:C}),{app:a,router:e,data:t}}function S(){return w(D)}function T(){let e=s,a;return _(t=>{let o=b(t);return e&&(a=o),(e||a===o)&&(o=o.replace(/\.js$/,".lean.js")),s&&(e=!1),E(()=>import(o),[])},n.NotFound)}s&&O().then(({app:e,router:a,data:t})=>{a.go().then(()=>{i(a.route,t.site),e.mount("#app")})});export{O as createApp};
|
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
|
@ -1 +0,0 @@
|
|||
import{_ as e,o as t,c as a}from"./chunks/framework.0e180df0.js";const p=JSON.parse('{"title":"","description":"","frontmatter":{"layout":"home","hero":{"name":"RW-API_Code","text":"Easy Code","tagline":"My great project tagline","actions":[{"theme":"brand","text":"Markdown Examples","link":"/markdown-examples"},{"theme":"alt","text":"API Examples","link":"/api-examples"}]},"features":[{"title":"Feature A","details":"Lorem ipsum dolor sit amet, consectetur adipiscing elit"},{"title":"Feature B","details":"Lorem ipsum dolor sit amet, consectetur adipiscing elit"},{"title":"Feature C","details":"Lorem ipsum dolor sit amet, consectetur adipiscing elit"}]},"headers":[],"relativePath":"index.md"}'),i={name:"index.md"};function o(s,r,n,l,c,d){return t(),a("div")}const u=e(i,[["render",o]]);export{p as __pageData,u as default};
|
|
@ -1 +0,0 @@
|
|||
import{_ as e,o as t,c as a}from"./chunks/framework.0e180df0.js";const p=JSON.parse('{"title":"","description":"","frontmatter":{"layout":"home","hero":{"name":"RW-API_Code","text":"Easy Code","tagline":"My great project tagline","actions":[{"theme":"brand","text":"Markdown Examples","link":"/markdown-examples"},{"theme":"alt","text":"API Examples","link":"/api-examples"}]},"features":[{"title":"Feature A","details":"Lorem ipsum dolor sit amet, consectetur adipiscing elit"},{"title":"Feature B","details":"Lorem ipsum dolor sit amet, consectetur adipiscing elit"},{"title":"Feature C","details":"Lorem ipsum dolor sit amet, consectetur adipiscing elit"}]},"headers":[],"relativePath":"index.md"}'),i={name:"index.md"};function o(s,r,n,l,c,d){return t(),a("div")}const u=e(i,[["render",o]]);export{p as __pageData,u as default};
|
|
@ -1,33 +0,0 @@
|
|||
import{_ as s,o as a,c as n,N as l}from"./chunks/framework.0e180df0.js";const g=JSON.parse('{"title":"Markdown Extension Examples","description":"","frontmatter":{},"headers":[],"relativePath":"markdown-examples.md"}'),e={name:"markdown-examples.md"},p=l(`<h1 id="markdown-extension-examples" tabindex="-1">Markdown Extension Examples <a class="header-anchor" href="#markdown-extension-examples" aria-label="Permalink to "Markdown Extension Examples""></a></h1><p>This page demonstrates some of the built-in markdown extensions provided by VitePress.</p><h2 id="syntax-highlighting" tabindex="-1">Syntax Highlighting <a class="header-anchor" href="#syntax-highlighting" aria-label="Permalink to "Syntax Highlighting""></a></h2><p>VitePress provides Syntax Highlighting powered by <a href="https://github.com/shikijs/shiki" target="_blank" rel="noreferrer">Shiki</a>, with additional features like line-highlighting:</p><p><strong>Input</strong></p><div class="language-"><button title="Copy Code" class="copy"></button><span class="lang"></span><pre class="shiki material-theme-palenight"><code><span class="line"><span style="color:#A6ACCD;">\`\`\`js{4}</span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;">export default {</span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;"> data () {</span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;"> return {</span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;"> msg: 'Highlighted!'</span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;"> }</span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;"> }</span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;">}</span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;">\`\`\`</span></span></code></pre></div><p><strong>Output</strong></p><div class="language-js"><button title="Copy Code" class="copy"></button><span class="lang">js</span><pre class="shiki material-theme-palenight has-highlighted-lines"><code><span class="line"><span style="color:#89DDFF;font-style:italic;">export</span><span style="color:#A6ACCD;"> </span><span style="color:#89DDFF;font-style:italic;">default</span><span style="color:#A6ACCD;"> </span><span style="color:#89DDFF;">{</span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;"> </span><span style="color:#F07178;">data</span><span style="color:#A6ACCD;"> </span><span style="color:#89DDFF;">()</span><span style="color:#A6ACCD;"> </span><span style="color:#89DDFF;">{</span></span>
|
||||
<span class="line"><span style="color:#F07178;"> </span><span style="color:#89DDFF;font-style:italic;">return</span><span style="color:#F07178;"> </span><span style="color:#89DDFF;">{</span></span>
|
||||
<span class="line highlighted"><span style="color:#F07178;"> msg</span><span style="color:#89DDFF;">:</span><span style="color:#F07178;"> </span><span style="color:#89DDFF;">'</span><span style="color:#C3E88D;">Highlighted!</span><span style="color:#89DDFF;">'</span></span>
|
||||
<span class="line"><span style="color:#F07178;"> </span><span style="color:#89DDFF;">}</span></span>
|
||||
<span class="line"><span style="color:#F07178;"> </span><span style="color:#89DDFF;">}</span></span>
|
||||
<span class="line"><span style="color:#89DDFF;">}</span></span></code></pre></div><h2 id="custom-containers" tabindex="-1">Custom Containers <a class="header-anchor" href="#custom-containers" aria-label="Permalink to "Custom Containers""></a></h2><p><strong>Input</strong></p><div class="language-md"><button title="Copy Code" class="copy"></button><span class="lang">md</span><pre class="shiki material-theme-palenight"><code><span class="line"><span style="color:#A6ACCD;">::: info</span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;">This is an info box.</span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;">:::</span></span>
|
||||
<span class="line"></span>
|
||||
<span class="line"><span style="color:#A6ACCD;">::: tip</span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;">This is a tip.</span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;">:::</span></span>
|
||||
<span class="line"></span>
|
||||
<span class="line"><span style="color:#A6ACCD;">::: warning</span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;">This is a warning.</span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;">:::</span></span>
|
||||
<span class="line"></span>
|
||||
<span class="line"><span style="color:#A6ACCD;">::: danger</span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;">This is a dangerous warning.</span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;">:::</span></span>
|
||||
<span class="line"></span>
|
||||
<span class="line"><span style="color:#A6ACCD;">::: details</span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;">This is a details block.</span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;">:::</span></span></code></pre></div><p><strong>Output</strong></p><div class="info custom-block"><p class="custom-block-title">INFO</p><p>This is an info box.</p></div><div class="tip custom-block"><p class="custom-block-title">TIP</p><p>This is a tip.</p></div><div class="warning custom-block"><p class="custom-block-title">WARNING</p><p>This is a warning.</p></div><div class="danger custom-block"><p class="custom-block-title">DANGER</p><p>This is a dangerous warning.</p></div><details class="details custom-block"><summary>Details</summary><p>This is a details block.</p></details><h2 id="more" tabindex="-1">More <a class="header-anchor" href="#more" aria-label="Permalink to "More""></a></h2><p>Check out the documentation for the <a href="https://vitepress.dev/guide/markdown" target="_blank" rel="noreferrer">full list of markdown extensions</a>.</p>`,19),o=[p];function t(i,c,r,d,h,C){return a(),n("div",null,o)}const A=s(e,[["render",t]]);export{g as __pageData,A as default};
|
|
@ -1 +0,0 @@
|
|||
import{_ as s,o as a,c as n,N as l}from"./chunks/framework.0e180df0.js";const g=JSON.parse('{"title":"Markdown Extension Examples","description":"","frontmatter":{},"headers":[],"relativePath":"markdown-examples.md"}'),e={name:"markdown-examples.md"},p=l("",19),o=[p];function t(i,c,r,d,h,C){return a(),n("div",null,o)}const A=s(e,[["render",t]]);export{g as __pageData,A as default};
|
|
@ -1 +0,0 @@
|
|||
import{_ as e,o as t,c as a,x as n}from"./chunks/framework.0e180df0.js";const f=JSON.parse('{"title":"","description":"","frontmatter":{},"headers":[],"relativePath":"src/Unit/canbuild.md"}'),s={name:"src/Unit/canbuild.md"},c=n("p",null,"xx",-1),o=[c];function r(i,d,_,l,p,u){return t(),a("div",null,o)}const x=e(s,[["render",r]]);export{f as __pageData,x as default};
|
|
@ -1 +0,0 @@
|
|||
import{_ as e,o as t,c as a,x as n}from"./chunks/framework.0e180df0.js";const f=JSON.parse('{"title":"","description":"","frontmatter":{},"headers":[],"relativePath":"src/Unit/canbuild.md"}'),s={name:"src/Unit/canbuild.md"},c=n("p",null,"xx",-1),o=[c];function r(i,d,_,l,p,u){return t(),a("div",null,o)}const x=e(s,[["render",r]]);export{f as __pageData,x as default};
|
|
@ -1,20 +0,0 @@
|
|||
import{_ as a,o as s,c as n,N as e}from"./chunks/framework.0e180df0.js";const m=JSON.parse('{"title":"[core]组","description":"","frontmatter":{"outline":"deep"},"headers":[],"relativePath":"src/Unit/core.md"}'),l={name:"src/Unit/core.md"},p=e(`<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><h2 id="name" tabindex="-1">name <a class="header-anchor" href="#name" aria-label="Permalink to "name""></a></h2><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><div class="vp-code-group"><div class="tabs"><input type="radio" name="group-VvB7f" id="tab-1Ujf2Fh" checked="checked"><label for="tab-1Ujf2Fh">JDSALing</label><input type="radio" name="group-VvB7f" id="tab-sX64hET"><label for="tab-sX64hET">Tobby3600</label></div><div class="blocks"><div class="language-user active"><button title="Copy Code" class="copy"></button><span class="lang">user</span><pre class="shiki material-theme-palenight"><code><span class="line"><span style="color:#A6ACCD;">定义单位原始名称,可以是中文。</span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;">游戏使用它区分其它单位。</span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;"></span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;">如果没有在[displayText或者语言文件设置显示名称],</span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;">那么它也将作为单位的显示名称。 </span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;"></span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;">具体描述文件位置(内部):</span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;">1.assets/translationsStrings_zh.properties</span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;">格式:units.单位名称.name=写单位显示的名称</span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;">units.单位名称.description= [[填单位显示的描述]]</span></span></code></pre></div><div class="language-user"><button title="Copy Code" class="copy"></button><span class="lang">user</span><pre class="shiki material-theme-palenight"><code><span class="line"><span style="color:#A6ACCD;">ini文件的单独定义(外部-推荐):</span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;"> </span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;">2.displayText: -单位的标题</span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;">displayDescription: -单位的描述</span></span></code></pre></div></div></div><p>特别提醒:<code>displayText支持本地化</code>,例如如果要写一个<code>多语言的单位描述</code>,可以通过以下例子:</p><h4 id="name-演示例子" tabindex="-1">name-演示例子 <a class="header-anchor" href="#name-演示例子" aria-label="Permalink to "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:#A6ACCD;">演示例子</span></span>
|
||||
<span class="line"><span style="color:#89DDFF;">[core]</span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;">name: Ling</span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;">displayText: English Title Text</span></span>
|
||||
<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>`,11),o=[p];function t(c,i,r,d,h,C){return s(),n("div",null,o)}const u=a(l,[["render",t]]);export{m as __pageData,u as default};
|
|
@ -1 +0,0 @@
|
|||
import{_ as a,o as s,c as n,N as e}from"./chunks/framework.0e180df0.js";const m=JSON.parse('{"title":"[core]组","description":"","frontmatter":{"outline":"deep"},"headers":[],"relativePath":"src/Unit/core.md"}'),l={name:"src/Unit/core.md"},p=e("",11),o=[p];function t(c,i,r,d,h,C){return s(),n("div",null,o)}const u=a(l,[["render",t]]);export{m as __pageData,u as default};
|
|
@ -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 "**[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><div class="vp-code-group"><div class="tabs"><input type="radio" name="group-W8ZZ8" id="tab-E0WW0g8" checked="checked"><label for="tab-E0WW0g8">JDSALing</label><input type="radio" name="group-W8ZZ8" id="tab-4nQE2a8"><label for="tab-4nQE2a8">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 I=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 "**[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><div class="vp-code-group"><div class="tabs"><input type="radio" name="group-wMewP" id="tab-nNVjisL" checked="checked"><label for="tab-nNVjisL">JDSALing</label><input type="radio" name="group-wMewP" id="tab-3QUxlXi"><label for="tab-3QUxlXi">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,13 +17,13 @@ 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><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-1wlv4" id="tab-WI8mO43" checked="checked"><label for="tab-WI8mO43">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><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-mdF1l" id="tab-pgQ4rGx" checked="checked"><label for="tab-pgQ4rGx">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 "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><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><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><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-zYBa9" id="tab-i8Bewy3" checked="checked"><label for="tab-i8Bewy3">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><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-QBxkP" id="tab-4cm4QAd" checked="checked"><label for="tab-4cm4QAd">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 "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>
|
||||
|
@ -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><h3 id="borrowresourceswhilealive-b-r-w-a" tabindex="-1">borrowResourcesWhileAlive(B.R.W.A) <a class="header-anchor" href="#borrowresourceswhilealive-b-r-w-a" aria-label="Permalink to "borrowResourcesWhileAlive(B.R.W.A)""></a></h3><h4 id="b-r-w-a-代码简介" tabindex="-1">B.R.W.A-代码简介 <a class="header-anchor" href="#b-r-w-a-代码简介" aria-label="Permalink to "B.R.W.A-代码简介""></a></h4><p>代码:armour 中文释义:资源活着时借用 类型:Price型 隶属于:单位统计代码组</p><div class="tip custom-block"><p class="custom-block-title">TIP</p><p>创建时获取这些资源,删除或销毁时将其返回。 例如用于电力逻辑,负数供电和正数耗电。</p></div><h4 id="b-r-w-a-演示例子" tabindex="-1">B.R.W.A-演示例子: <a class="header-anchor" href="#b-r-w-a-演示例子" aria-label="Permalink to "B.R.W.A-演示例子:""></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-ma_iU" id="tab-HVnA1Ba" checked="checked"><label for="tab-HVnA1Ba">考考你</label><input type="radio" name="group-ma_iU" id="tab-Q9fi6Mz"><label for="tab-Q9fi6Mz">显示答案</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-p7QLE" id="tab-SpvEucP" checked="checked"><label for="tab-SpvEucP">考考你</label><input type="radio" name="group-p7QLE" id="tab-D3hLpYp"><label for="tab-D3hLpYp">显示答案</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><h3 id="showonminimap" tabindex="-1">showOnMinimap <a class="header-anchor" href="#showonminimap" aria-label="Permalink to "showOnMinimap""></a></h3><h4 id="showonminimap-代码简介" tabindex="-1">showOnMinimap-代码简介 <a class="header-anchor" href="#showonminimap-代码简介" aria-label="Permalink to "showOnMinimap-代码简介""></a></h4><p>代码:shieldDeflectionDisplayRate 中文释义:显示在小地图上 类型:布尔型 隶属于:UI和图形代码组</p><div class="tip custom-block"><p class="custom-block-title">TIP</p><p>默认为true。如果为false,则在小地图上不显示此单位。</p></div><h4 id="showonminimap-演示例子" tabindex="-1">showOnMinimap-演示例子: <a class="header-anchor" href="#showonminimap-演示例子" aria-label="Permalink to "showOnMinimap-演示例子:""></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><h3 id="showonminimaptoenemies" tabindex="-1">showOnMinimapToEnemies <a class="header-anchor" href="#showonminimaptoenemies" aria-label="Permalink to "showOnMinimapToEnemies""></a></h3><h4 id="showonminimaptoenemies-代码简介" tabindex="-1">showOnMinimapToEnemies-代码简介 <a class="header-anchor" href="#showonminimaptoenemies-代码简介" aria-label="Permalink to "showOnMinimapToEnemies-代码简介""></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 "showOnMinimapToEnemies-演示例子:""></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><h3 id="showactionswithmixedselectionifotherunitshavetag" tabindex="-1">showActionsWithMixedSelectionIfOtherUnitsHaveTag <a class="header-anchor" href="#showactionswithmixedselectionifotherunitshavetag" aria-label="Permalink to "showActionsWithMixedSelectionIfOtherUnitsHaveTag""></a></h3><h4 id="showactionswithmixedselectionifotherunitshavetag-代码简介" tabindex="-1">showActionsWithMixedSelectionIfOtherUnitsHaveTag-代码简介 <a class="header-anchor" href="#showactionswithmixedselectionifotherunitshavetag-代码简介" aria-label="Permalink to "showActionsWithMixedSelectionIfOtherUnitsHaveTag-代码简介""></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 "showActionsWithMixedSelectionIfOtherUnitsHaveTag-演示例子""></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 "第四组-构建代码""></a></h2>`,130);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",b,[m,e("p",null,[a("早期是用于在"),l(s,{color:"orange"},{default:n(()=>[a("builtFrom")]),_:1}),a("的代码,并结合科技等级使用。如果工厂的等级低于单位的目标科技等级,则会在工厂里面隐藏该单位。"),y,a("自铁锈1.09后出现"),l(s,{color:"orange"},{default:n(()=>[a("overrideAndReplace")]),_:1}),a("后,该方法则不建议使用。有关于新策略,请参考"),l(s,{color:"orange"},{default:n(()=>[a("overrideAndReplace")]),_:1}),a("代码文档指南。"),g,a(" 设置单位的科技等级,共有3个级别,1级GUI显示为绿色,2、3级显示为黄色。超过3报错。")])]),C,e("div",k,[q,e("p",null,[a("若设置成true,则会在单位死亡时产生血迹,"),v,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 "第四组-构建代码""></a></h2>`,130);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",b,[m,e("p",null,[a("早期是用于在"),l(s,{color:"orange"},{default:n(()=>[a("builtFrom")]),_:1}),a("的代码,并结合科技等级使用。如果工厂的等级低于单位的目标科技等级,则会在工厂里面隐藏该单位。"),y,a("自铁锈1.09后出现"),l(s,{color:"orange"},{default:n(()=>[a("overrideAndReplace")]),_:1}),a("后,该方法则不建议使用。有关于新策略,请参考"),l(s,{color:"orange"},{default:n(()=>[a("overrideAndReplace")]),_:1}),a("代码文档指南。"),g,a(" 设置单位的科技等级,共有3个级别,1级GUI显示为绿色,2、3级显示为黄色。超过3报错。")])]),C,e("div",k,[q,e("p",null,[a("若设置成true,则会在单位死亡时产生血迹,"),v,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{I as __pageData,E as default};
|
|
@ -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("",46),h=e("br",null,null,-1),u=i("",17),b={class:"tip custom-block"},m=e("p",{class:"custom-block-title"},"TIP",-1),y=e("br",null,null,-1),g=e("br",null,null,-1),C=i("",11),k={class:"tip custom-block"},q=e("p",{class:"custom-block-title"},"TIP",-1),v=e("br",null,null,-1),x=i("",67),D={class:"tip custom-block"},f=e("p",{class:"custom-block-title"},"TIP",-1),A=i("",130);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",b,[m,e("p",null,[a("早期是用于在"),l(s,{color:"orange"},{default:n(()=>[a("builtFrom")]),_:1}),a("的代码,并结合科技等级使用。如果工厂的等级低于单位的目标科技等级,则会在工厂里面隐藏该单位。"),y,a("自铁锈1.09后出现"),l(s,{color:"orange"},{default:n(()=>[a("overrideAndReplace")]),_:1}),a("后,该方法则不建议使用。有关于新策略,请参考"),l(s,{color:"orange"},{default:n(()=>[a("overrideAndReplace")]),_:1}),a("代码文档指南。"),g,a(" 设置单位的科技等级,共有3个级别,1级GUI显示为绿色,2、3级显示为黄色。超过3报错。")])]),C,e("div",k,[q,e("p",null,[a("若设置成true,则会在单位死亡时产生血迹,"),v,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 I=JSON.parse('{"title":"[core]组","description":"","frontmatter":{"outline":"deep"},"headers":[],"relativePath":"src/Unit/core.md"}'),p={name:"src/Unit/core.md"},d=i("",46),h=e("br",null,null,-1),u=i("",17),b={class:"tip custom-block"},m=e("p",{class:"custom-block-title"},"TIP",-1),y=e("br",null,null,-1),g=e("br",null,null,-1),C=i("",11),k={class:"tip custom-block"},q=e("p",{class:"custom-block-title"},"TIP",-1),v=e("br",null,null,-1),x=i("",67),D={class:"tip custom-block"},f=e("p",{class:"custom-block-title"},"TIP",-1),A=i("",130);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",b,[m,e("p",null,[a("早期是用于在"),l(s,{color:"orange"},{default:n(()=>[a("builtFrom")]),_:1}),a("的代码,并结合科技等级使用。如果工厂的等级低于单位的目标科技等级,则会在工厂里面隐藏该单位。"),y,a("自铁锈1.09后出现"),l(s,{color:"orange"},{default:n(()=>[a("overrideAndReplace")]),_:1}),a("后,该方法则不建议使用。有关于新策略,请参考"),l(s,{color:"orange"},{default:n(()=>[a("overrideAndReplace")]),_:1}),a("代码文档指南。"),g,a(" 设置单位的科技等级,共有3个级别,1级GUI显示为绿色,2、3级显示为黄色。超过3报错。")])]),C,e("div",k,[q,e("p",null,[a("若设置成true,则会在单位死亡时产生血迹,"),v,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{I as __pageData,E as default};
|
|
@ -1 +0,0 @@
|
|||
import{_ as e,o as t,c as s,x as a}from"./chunks/framework.0e180df0.js";const x=JSON.parse('{"title":"","description":"","frontmatter":{},"headers":[],"relativePath":"src/Unit/graphics.md"}'),r={name:"src/Unit/graphics.md"},c=a("p",null,"xxxx",-1),o=[c];function n(i,p,_,d,l,h){return t(),s("div",null,o)}const f=e(r,[["render",n]]);export{x as __pageData,f as default};
|
|
@ -1 +0,0 @@
|
|||
import{_ as e,o as t,c as s,x as a}from"./chunks/framework.0e180df0.js";const x=JSON.parse('{"title":"","description":"","frontmatter":{},"headers":[],"relativePath":"src/Unit/graphics.md"}'),r={name:"src/Unit/graphics.md"},c=a("p",null,"xxxx",-1),o=[c];function n(i,p,_,d,l,h){return t(),s("div",null,o)}const f=e(r,[["render",n]]);export{x as __pageData,f as default};
|
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
|
@ -1 +1 @@
|
|||
{"src_unit_graphics.md":"11d4f4e2","index.md":"58a89ee7","src_unit_canbuild.md":"a704448b","markdown-examples.md":"effb3764","api-examples.md":"cd86cd6d","src_unit_loginboolean.md":"de707165","src_unit_core.md":"084b12e0"}
|
||||
{"src_unit_canbuild.md":"a704448b","markdown-examples.md":"effb3764","index.md":"58a89ee7","api-examples.md":"cd86cd6d","src_unit_core.md":"d496b398","src_unit_loginboolean.md":"3c874e6e","src_unit_graphics.md":"11d4f4e2"}
|
||||
|
|
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
Loading…
Reference in New Issue
Block a user