Deploying to gh-pages from @ LingASDJ/RW-API-Code@24632b2c43 🚀
This commit is contained in:
parent
82ec457169
commit
f9a0c0b6f3
|
@ -6,10 +6,10 @@
|
|||
<title>RW-API_Code | RW-API_Code</title>
|
||||
<meta name="description" content="Easy Code">
|
||||
<link rel="preload stylesheet" href="/assets/style.dbcdd58f.css" as="style">
|
||||
<script type="module" src="/assets/app.7a314688.js"></script>
|
||||
<script type="module" src="/assets/app.b13d313f.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.fcc0bf38.js">
|
||||
<link rel="modulepreload" href="/assets/chunks/theme.06d606dd.js">
|
||||
<link rel="modulepreload" href="/assets/chunks/theme.f2414e3d.js">
|
||||
<link rel="modulepreload" href="/assets/api-dev.md.0a3ae762.lean.js">
|
||||
<script id="check-dark-light">(()=>{const e=localStorage.getItem("vitepress-theme-appearance")||"",a=window.matchMedia("(prefers-color-scheme: dark)").matches;(!e||e==="auto"?a:e==="dark")&&document.documentElement.classList.add("dark")})();</script>
|
||||
</head>
|
||||
|
@ -51,7 +51,7 @@
|
|||
<span class="line"><span style="color:#89DDFF;"></</span><span style="color:#F07178;">iframe</span><span style="color:#89DDFF;">></span></span></code></pre></div><h4 id="_3-插入表格" tabindex="-1">3.插入表格 <a class="header-anchor" href="#_3-插入表格" aria-label="Permalink to "3.插入表格""></a></h4><h3 id="代码演示" tabindex="-1">代码演示: <a class="header-anchor" href="#代码演示" aria-label="Permalink to "代码演示:""></a></h3><table><thead><tr><th>A</th><th>B</th><th>C</th></tr></thead><tbody><tr><td>1</td><td>2</td><td>3</td></tr></tbody></table><h3 id="代码例子" tabindex="-1">代码例子: <a class="header-anchor" href="#代码例子" aria-label="Permalink to "代码例子:""></a></h3><div class="language-markdown"><button title="Copy Code" class="copy"></button><span class="lang">markdown</span><pre class="shiki material-theme-palenight"><code><span class="line"><span style="color:#A6ACCD;">|A|B|C| </span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;">|-|-|-</span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;">|1|2|3|</span></span></code></pre></div><p>如果你仍然不会Markdown表格写法,这里给你一个链接:</p><h3><a href="https://tableconvert.com/zh-cn/markdown-to-markdown" target="_blank">TableConvert-MD-点击进入</a></h3><h3 id="_4-扩展写法-高级" tabindex="-1">4.扩展写法(高级) <a class="header-anchor" href="#_4-扩展写法-高级" aria-label="Permalink to "4.扩展写法(高级)""></a></h3><p>有一些时候,我们可能需要在已经标记的后面再添加东西, 但Markdown解析方式在标签后面再有一个标签就不会识别了。<br> 所以这里我们必须直接使用原生Html的代码, 通过浏览器的检查元素,你应该能迅速找到模块框架, 将它的模块元素区域复制下来,并调用。</p><div class="tip custom-block"><p class="custom-block-title">TIP</p><p>该文档可能还有很多缺陷,如果你有更好的建议,请发送Issues或者PR给我。</p></div><div class="info custom-block"><p class="custom-block-title">INFO</p><p>编写于2023-5-9 RTS-Code-API[第3版-第3次修订]</p></div></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="/" 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("{\"src_map_tsada.md\":\"95d6f1dd\",\"src_debug_test.md\":\"501f237e\",\"api-dev.md\":\"0a3ae762\",\"src_unit_loginboolean.md\":\"1e3da8cb\",\"src_unit_graphics.md\":\"79ebfee0\",\"src_unit_canbuild.md\":\"69e28850\",\"index.md\":\"06b32d05\",\"src_unit_core.md\":\"a24f8008\"}")
|
||||
<script>__VP_HASH_MAP__ = JSON.parse("{\"src_map_tsada.md\":\"95d6f1dd\",\"index.md\":\"06b32d05\",\"src_unit_core.md\":\"5b1af198\",\"src_unit_canbuild.md\":\"73220d4a\",\"api-dev.md\":\"0a3ae762\",\"src_unit_graphics.md\":\"8b2546fa\",\"src_debug_test.md\":\"501f237e\",\"src_unit_loginboolean.md\":\"285eb6af\"}")
|
||||
__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\":\"/api-dev\"}],\"docFooter\":{\"prev\":\"上一篇文章\",\"next\":\"下一篇文章\"},\"sidebar\":[{\"text\":\"RW-API-Code\",\"items\":[{\"text\":\"主页-Home\",\"link\":\"/\"},{\"text\":\"-------------------------\",\"link\":\"\"},{\"text\":\"[API-单位组-Unit]\",\"link\":\"\"},{\"text\":\"核心-CORE\",\"link\":\"/src/Unit/core\"},{\"text\":\"可建造-CANBUILD\",\"link\":\"/src/Unit/canbuild\"},{\"text\":\"图像-GRAPHICS\",\"link\":\"/src/Unit/graphics\"},{\"text\":\"逻辑-LOGIC\",\"link\":\"/src/Unit/loginboolean\"},{\"text\":\"-------------------------\",\"link\":\"\"}]}],\"socialLinks\":[{\"icon\":\"github\",\"link\":\"https://github.com/LingASDJ/RW-API-Code/\"}],\"footer\":{\"message\":\"Rosy-Code Ling Web Stuido\",\"copyright\":\"Copyright © 2023-RW-API-Code\"},\"search\":{\"provider\":\"local\",\"options\":{\"locales\":{\"zh\":{\"translations\":{\"button\":{\"buttonText\":\"搜索文档\",\"buttonAriaLabel\":\"搜索文档\"},\"modal\":{\"noResultsText\":\"你干嘛~哎呦~无法找到相关结果\",\"resetButtonTitle\":\"清除查询条件\",\"footer\":{\"selectText\":\"选择\",\"navigateText\":\"切换\",\"closeText\":\"关闭\",\"closeKeyAriaLabel\":\"关闭\",\"selectKeyAriaLabel\":\"选择\",\"navigateUpKeyAriaLabel\":\"上一个\",\"navigateDownKeyAriaLabel\":\"下一个\"},\"backButtonTitle\":\"返回上一级\",\"displayDetails\":\"显示详情\"}}}},\"translations\":{\"button\":{\"buttonText\":\"搜索文档\",\"buttonAriaLabel\":\"搜索文档\"},\"modal\":{\"noResultsText\":\"无法找到相关结果\",\"resetButtonTitle\":\"清除查询条件\",\"footer\":{\"selectText\":\"选择\",\"navigateText\":\"切换\",\"closeText\":\"关闭\",\"closeKeyAriaLabel\":\"关闭\",\"selectKeyAriaLabel\":\"选择\",\"navigateUpKeyAriaLabel\":\"上一个\",\"navigateDownKeyAriaLabel\":\"下一个\"},\"backButtonTitle\":\"返回上一级\",\"displayDetails\":\"显示详情\"}}}}},\"locales\":{},\"scrollOffset\":90,\"cleanUrls\":true}")</script>
|
||||
|
||||
</body>
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import{_ as tn,o as nn,D as rn,E as an,b as sn,S as on,U as cn,C as T,d as ln,Q as le,a5 as un,u as dn,q as fn,k as hn,a6 as pn,a7 as mn,a8 as gn,a9 as bn,aa as _n,ab as In,ac as yn,ad as En,ae as wn,af as Tn,ag as vn,ah as An,ai as Sn,M as Cn}from"./chunks/framework.fcc0bf38.js";import{t as rt}from"./chunks/theme.06d606dd.js";/**
|
||||
import{_ as tn,o as nn,D as rn,E as an,b as sn,S as on,U as cn,C as T,d as ln,Q as le,a5 as un,u as dn,q as fn,k as hn,a6 as pn,a7 as mn,a8 as gn,a9 as bn,aa as _n,ab as In,ac as yn,ad as En,ae as wn,af as Tn,ag as vn,ah as An,ai as Sn,M as Cn}from"./chunks/framework.fcc0bf38.js";import{t as rt}from"./chunks/theme.f2414e3d.js";/**
|
||||
* @license
|
||||
* Copyright 2017 Google LLC
|
||||
*
|
File diff suppressed because one or more lines are too long
1
assets/chunks/@localSearchIndexroot.ed1a7f9d.js
Normal file
1
assets/chunks/@localSearchIndexroot.ed1a7f9d.js
Normal file
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,4 +1,4 @@
|
|||
import{_ as n,c as i,C as s,a,I as o,E as c,V as e,J as t,o as p}from"./chunks/framework.fcc0bf38.js";const _=JSON.parse('{"title":"[canBuild]建造组","description":"","frontmatter":{"outline":"deep"},"headers":[],"relativePath":"src/Unit/canbuild.md","filePath":"src/Unit/canbuild.md"}'),r={name:"src/Unit/canbuild.md"},d=e(`<h1 id="canbuild-建造组" tabindex="-1"><strong>[canBuild]建造组</strong> <a class="header-anchor" href="#canbuild-建造组" aria-label="Permalink to "**[canBuild]建造组**""></a></h1><h3 id="canbuild-name" tabindex="-1">[canBuild_NAME] <a class="header-anchor" href="#canbuild-name" aria-label="Permalink to "[canBuild_NAME]""></a></h3><h4 id="canbuild-name-代码简介" tabindex="-1">[canBuild_NAME]-代码简介 <a class="header-anchor" href="#canbuild-name-代码简介" aria-label="Permalink to "[canBuild_NAME]-代码简介""></a></h4><p>代码: [canBuild_NAME] 中文释义:可建造_名字 类型:字符型 canBuild_NAME = 组名 如果不填写此组名 将默认拥有一个命名为空格的组名。</p><div class="tip custom-block"><p class="custom-block-title">TIP</p><p>建议将NAME命名为此组的描述或可建造单位的昵称。<br> 以便于阅读代码。</p></div><div class="vp-code-group"><div class="tabs"><input type="radio" name="group-CFR2f" id="tab-sg0uAkI" checked="checked"><label for="tab-sg0uAkI">allureluoli</label></div><div class="blocks"><div class="language-bash active"><button title="Copy Code" class="copy"></button><span class="lang">bash</span><pre class="shiki material-theme-palenight"><code><span class="line"><span style="color:#89DDFF;">[</span><span style="color:#A6ACCD;">canBuild_造小坦</span><span style="color:#89DDFF;">]</span></span>
|
||||
import{_ as n,c as i,C as s,a,I as o,E as c,V as e,J as t,o as p}from"./chunks/framework.fcc0bf38.js";const _=JSON.parse('{"title":"[canBuild]建造组","description":"","frontmatter":{"outline":"deep"},"headers":[],"relativePath":"src/Unit/canbuild.md","filePath":"src/Unit/canbuild.md"}'),r={name:"src/Unit/canbuild.md"},d=e(`<h1 id="canbuild-建造组" tabindex="-1"><strong>[canBuild]建造组</strong> <a class="header-anchor" href="#canbuild-建造组" aria-label="Permalink to "**[canBuild]建造组**""></a></h1><h3 id="canbuild-name" tabindex="-1">[canBuild_NAME] <a class="header-anchor" href="#canbuild-name" aria-label="Permalink to "[canBuild_NAME]""></a></h3><h4 id="canbuild-name-代码简介" tabindex="-1">[canBuild_NAME]-代码简介 <a class="header-anchor" href="#canbuild-name-代码简介" aria-label="Permalink to "[canBuild_NAME]-代码简介""></a></h4><p>代码: [canBuild_NAME] 中文释义:可建造_名字 类型:字符型 canBuild_NAME = 组名 如果不填写此组名 将默认拥有一个命名为空格的组名。</p><div class="tip custom-block"><p class="custom-block-title">TIP</p><p>建议将NAME命名为此组的描述或可建造单位的昵称。<br> 以便于阅读代码。</p></div><div class="vp-code-group"><div class="tabs"><input type="radio" name="group-1i8oj" id="tab-ANqAJDc" checked="checked"><label for="tab-ANqAJDc">allureluoli</label></div><div class="blocks"><div class="language-bash active"><button title="Copy Code" class="copy"></button><span class="lang">bash</span><pre class="shiki material-theme-palenight"><code><span class="line"><span style="color:#89DDFF;">[</span><span style="color:#A6ACCD;">canBuild_造小坦</span><span style="color:#89DDFF;">]</span></span>
|
||||
<span class="line"><span style="color:#89DDFF;">[</span><span style="color:#A6ACCD;">canBuild_SmallTank</span><span style="color:#89DDFF;">]</span></span>
|
||||
<span class="line"><span style="color:#89DDFF;">[</span><span style="color:#A6ACCD;">canBuild_建造科技</span><span style="color:#89DDFF;">]</span></span></code></pre></div></div></div><div class="danger custom-block"><p class="custom-block-title">DANGER</p><p>[canBuild_NAME] 中的NAME命名禁止重复,否则会引发报错。<br> 其中下划线作为分隔符也是重要的,如果没有将引发报错。</p></div><h4 id="canbuild-name-演示例子" tabindex="-1">[canBuild_NAME]-演示例子 <a class="header-anchor" href="#canbuild-name-演示例子" aria-label="Permalink to "[canBuild_NAME]-演示例子""></a></h4><div class="language-ini"><button title="Copy Code" class="copy"></button><span class="lang">ini</span><pre class="shiki material-theme-palenight"><code><span class="line"><span style="color:#89DDFF;">[canBuild_SmallTank]</span><span style="color:#A6ACCD;"> </span><span style="color:#676E95;font-style:italic;">#英文命名</span></span>
|
||||
<span class="line"><span style="color:#89DDFF;">[canBuild_小坦克]</span><span style="color:#A6ACCD;"> </span><span style="color:#676E95;font-style:italic;">#中文命名</span></span>
|
|
@ -1,4 +1,4 @@
|
|||
import{_ as t,c as o,C as e,a,I as n,E as l,V as i,J as r,o as c}from"./chunks/framework.fcc0bf38.js";const E=JSON.parse('{"title":"[core]组","description":"","frontmatter":{"outline":"deep"},"headers":[],"relativePath":"src/Unit/core.md","filePath":"src/Unit/core.md"}'),p={name:"src/Unit/core.md"},d=i(`<h1 id="core-组" tabindex="-1"><strong>[core]组</strong> <a class="header-anchor" href="#core-组" aria-label="Permalink to "**[core]组**""></a></h1><h2 id="第一类-通用代码组" tabindex="-1">第一类-通用代码组 <a class="header-anchor" href="#第一类-通用代码组" aria-label="Permalink to "第一类-通用代码组""></a></h2><div class="tip custom-block"><p class="custom-block-title">TIP</p><p>以下的代码为<code>通用代码</code>,多半是必要的代码,如果不包括这些,可能在<code>绝大多数情况下导致错误</code>。</p></div><h3 id="name" tabindex="-1">name <a class="header-anchor" href="#name" aria-label="Permalink to "name""></a></h3><h4 id="name-代码简介" tabindex="-1">name-代码简介 <a class="header-anchor" href="#name-代码简介" aria-label="Permalink to "name-代码简介""></a></h4><p>代码:name 中文释义:名字 类型:字符型 隶属于:通用代码组</p><h4 id="name-要点指示" tabindex="-1">name-要点指示 <a class="header-anchor" href="#name-要点指示" aria-label="Permalink to "name-要点指示""></a></h4><hr><div class="vp-code-group"><div class="tabs"><input type="radio" name="group-fu86t" id="tab-5KFsmmb" checked="checked"><label for="tab-5KFsmmb">JDSALing</label><input type="radio" name="group-fu86t" id="tab-hmE7Tqc"><label for="tab-hmE7Tqc">Tobby3600</label></div><div class="blocks"><div class="language-bash active"><button title="Copy Code" class="copy"></button><span class="lang">bash</span><pre class="shiki material-theme-palenight"><code><span class="line"><span style="color:#FFCB6B;">定义单位原始名称,可以是中文。</span></span>
|
||||
import{_ as t,c as o,C as e,a,I as n,E as l,V as i,J as r,o as c}from"./chunks/framework.fcc0bf38.js";const E=JSON.parse('{"title":"[core]组","description":"","frontmatter":{"outline":"deep"},"headers":[],"relativePath":"src/Unit/core.md","filePath":"src/Unit/core.md"}'),p={name:"src/Unit/core.md"},d=i(`<h1 id="core-组" tabindex="-1"><strong>[core]组</strong> <a class="header-anchor" href="#core-组" aria-label="Permalink to "**[core]组**""></a></h1><h2 id="第一类-通用代码组" tabindex="-1">第一类-通用代码组 <a class="header-anchor" href="#第一类-通用代码组" aria-label="Permalink to "第一类-通用代码组""></a></h2><div class="tip custom-block"><p class="custom-block-title">TIP</p><p>以下的代码为<code>通用代码</code>,多半是必要的代码,如果不包括这些,可能在<code>绝大多数情况下导致错误</code>。</p></div><h3 id="name" tabindex="-1">name <a class="header-anchor" href="#name" aria-label="Permalink to "name""></a></h3><h4 id="name-代码简介" tabindex="-1">name-代码简介 <a class="header-anchor" href="#name-代码简介" aria-label="Permalink to "name-代码简介""></a></h4><p>代码:name 中文释义:名字 类型:字符型 隶属于:通用代码组</p><h4 id="name-要点指示" tabindex="-1">name-要点指示 <a class="header-anchor" href="#name-要点指示" aria-label="Permalink to "name-要点指示""></a></h4><hr><div class="vp-code-group"><div class="tabs"><input type="radio" name="group-6FeDG" id="tab-sLDQzKl" checked="checked"><label for="tab-sLDQzKl">JDSALing</label><input type="radio" name="group-6FeDG" id="tab-dAKWSIl"><label for="tab-dAKWSIl">Tobby3600</label></div><div class="blocks"><div class="language-bash active"><button title="Copy Code" class="copy"></button><span class="lang">bash</span><pre class="shiki material-theme-palenight"><code><span class="line"><span style="color:#FFCB6B;">定义单位原始名称,可以是中文。</span></span>
|
||||
<span class="line"><span style="color:#FFCB6B;">游戏使用它区分其它单位。</span></span>
|
||||
<span class="line"></span>
|
||||
<span class="line"><span style="color:#FFCB6B;">如果没有在[displayText或者语言文件设置显示名称],</span></span>
|
||||
|
@ -16,20 +16,20 @@ import{_ as t,c as o,C as e,a,I as n,E as l,V as i,J as r,o as c}from"./chunks/f
|
|||
<span class="line"><span style="color:#A6ACCD;">displayText_zh:中文标题</span></span>
|
||||
<span class="line"></span>
|
||||
<span class="line"><span style="color:#A6ACCD;">displayDescription: -English Description</span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;">displayDescription_zh:-中文描述</span></span></code></pre></div><hr><h3 id="price" tabindex="-1">price <a class="header-anchor" href="#price" aria-label="Permalink to "price""></a></h3><h4 id="price-代码简介" tabindex="-1">price-代码简介 <a class="header-anchor" href="#price-代码简介" aria-label="Permalink to "price-代码简介""></a></h4><p>代码:price 中文释义:价格 类型:整数 隶属于:通用代码组</p><h4 id="price-要点指示" tabindex="-1">price-要点指示 <a class="header-anchor" href="#price-要点指示" aria-label="Permalink to "price-要点指示""></a></h4><p>定义单位的价格,显示在单位信息中,建造时也以此价格为准。</p><div class="vp-code-group"><div class="tabs"><input type="radio" name="group-TM4nq" id="tab-JWd-UmJ" checked="checked"><label for="tab-JWd-UmJ">Tobby3600</label></div><div class="blocks"><div class="language-bash active"><button title="Copy Code" class="copy"></button><span class="lang">bash</span><pre class="shiki material-theme-palenight"><code><span class="line"><span style="color:#FFCB6B;">默认情况下,price只需要填写一个整数,此时使用的是游戏内自带的资金credit;</span><span style="color:#A6ACCD;"> </span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;">displayDescription_zh:-中文描述</span></span></code></pre></div><hr><h3 id="price" tabindex="-1">price <a class="header-anchor" href="#price" aria-label="Permalink to "price""></a></h3><h4 id="price-代码简介" tabindex="-1">price-代码简介 <a class="header-anchor" href="#price-代码简介" aria-label="Permalink to "price-代码简介""></a></h4><p>代码:price 中文释义:价格 类型:整数 隶属于:通用代码组</p><h4 id="price-要点指示" tabindex="-1">price-要点指示 <a class="header-anchor" href="#price-要点指示" aria-label="Permalink to "price-要点指示""></a></h4><p>定义单位的价格,显示在单位信息中,建造时也以此价格为准。</p><div class="vp-code-group"><div class="tabs"><input type="radio" name="group-bSO31" id="tab-wrmIaZo" checked="checked"><label for="tab-wrmIaZo">Tobby3600</label></div><div class="blocks"><div class="language-bash active"><button title="Copy Code" class="copy"></button><span class="lang">bash</span><pre class="shiki material-theme-palenight"><code><span class="line"><span style="color:#FFCB6B;">默认情况下,price只需要填写一个整数,此时使用的是游戏内自带的资金credit;</span><span style="color:#A6ACCD;"> </span></span>
|
||||
<span class="line"><span style="color:#FFCB6B;">想要更改资源类型,可以使用:</span></span>
|
||||
<span class="line"><span style="color:#89DDFF;">\`</span><span style="color:#FFCB6B;">price:资源1</span><span style="color:#C3E88D;">=数值1,资源2=数值2,资源3=数值3,……</span><span style="color:#89DDFF;">\`</span><span style="color:#A6ACCD;"> </span><span style="color:#FFCB6B;">的格式</span></span>
|
||||
<span class="line"><span style="color:#FFCB6B;">(前提是此资源要在使用的单位进行定义)。</span></span></code></pre></div></div></div><h4 id="price-演示例子" tabindex="-1">price-演示例子 <a class="header-anchor" href="#price-演示例子" aria-label="Permalink to "price-演示例子""></a></h4><div class="language-ini"><button title="Copy Code" class="copy"></button><span class="lang">ini</span><pre class="shiki material-theme-palenight"><code><span class="line"><span style="color:#89DDFF;">[core]</span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;">price:120,石油=80,铁=60</span></span></code></pre></div><hr><h3 id="radius" tabindex="-1">radius <a class="header-anchor" href="#radius" aria-label="Permalink to "radius""></a></h3><h4 id="radius-代码简介" tabindex="-1">radius-代码简介 <a class="header-anchor" href="#radius-代码简介" aria-label="Permalink to "radius-代码简介""></a></h4><p>代码:radius 中文释义:半径 类型:整数 隶属于:通用代码组</p><h4 id="radius-要点指示" tabindex="-1">radius-要点指示 <a class="header-anchor" href="#radius-要点指示" aria-label="Permalink to "radius-要点指示""></a></h4><p>半径定义单位的<code>实际碰撞体积和显示范围</code>,在未设置<code>选择框大小</code>时,半径决定是单位选择框的大小。 半径的单位是像素(px)。</p><h4 id="radius-演示例子" tabindex="-1">radius-演示例子 <a class="header-anchor" href="#radius-演示例子" aria-label="Permalink to "radius-演示例子""></a></h4><div class="language-ini"><button title="Copy Code" class="copy"></button><span class="lang">ini</span><pre class="shiki material-theme-palenight"><code><span class="line"><span style="color:#89DDFF;">[core]</span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;">radius:20</span></span></code></pre></div><hr><h3 id="mass" tabindex="-1">mass <a class="header-anchor" href="#mass" aria-label="Permalink to "mass""></a></h3><h4 id="mass-代码简介" tabindex="-1">mass-代码简介 <a class="header-anchor" href="#mass-代码简介" aria-label="Permalink to "mass-代码简介""></a></h4><p>代码:mass 中文释义:质量 类型:整数 隶属于:通用代码组</p><h4 id="mass-要点指示" tabindex="-1">mass-要点指示 <a class="header-anchor" href="#mass-要点指示" aria-label="Permalink to "mass-要点指示""></a></h4><p>质量决定单位在各种碰撞时的效果。<code>质量越大,其他单位越难推动</code>。</p><h4 id="mass-演示例子" tabindex="-1">mass-演示例子 <a class="header-anchor" href="#mass-演示例子" aria-label="Permalink to "mass-演示例子""></a></h4><div class="language-ini"><button title="Copy Code" class="copy"></button><span class="lang">ini</span><pre class="shiki material-theme-palenight"><code><span class="line"><span style="color:#89DDFF;">[core]</span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;">mass:2000</span></span></code></pre></div><hr><h3 id="maxhp" tabindex="-1">maxHp <a class="header-anchor" href="#maxhp" aria-label="Permalink to "maxHp""></a></h3><h4 id="maxhp-代码简介" tabindex="-1">maxHp-代码简介 <a class="header-anchor" href="#maxhp-代码简介" aria-label="Permalink to "maxHp-代码简介""></a></h4><p>代码:maxHp 中文释义:最大生命值 类型:整数 隶属于:通用代码组</p><h4 id="maxhp-要点指示" tabindex="-1">maxHp-要点指示 <a class="header-anchor" href="#maxhp-要点指示" aria-label="Permalink to "maxHp-要点指示""></a></h4><div class="vp-code-group"><div class="tabs"><input type="radio" name="group-mFXk-" id="tab-_qTFqUf" checked="checked"><label for="tab-_qTFqUf">tobby3600</label></div><div class="blocks"><div class="language-bash active"><button title="Copy Code" class="copy"></button><span class="lang">bash</span><pre class="shiki material-theme-palenight"><code><span class="line"><span style="color:#FFCB6B;">最大生命值定义单位在不修改它时最多能够有多少血量,</span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;">mass:2000</span></span></code></pre></div><hr><h3 id="maxhp" tabindex="-1">maxHp <a class="header-anchor" href="#maxhp" aria-label="Permalink to "maxHp""></a></h3><h4 id="maxhp-代码简介" tabindex="-1">maxHp-代码简介 <a class="header-anchor" href="#maxhp-代码简介" aria-label="Permalink to "maxHp-代码简介""></a></h4><p>代码:maxHp 中文释义:最大生命值 类型:整数 隶属于:通用代码组</p><h4 id="maxhp-要点指示" tabindex="-1">maxHp-要点指示 <a class="header-anchor" href="#maxhp-要点指示" aria-label="Permalink to "maxHp-要点指示""></a></h4><div class="vp-code-group"><div class="tabs"><input type="radio" name="group-XybCu" id="tab-pFqf5Kd" checked="checked"><label for="tab-pFqf5Kd">tobby3600</label></div><div class="blocks"><div class="language-bash active"><button title="Copy Code" class="copy"></button><span class="lang">bash</span><pre class="shiki material-theme-palenight"><code><span class="line"><span style="color:#FFCB6B;">最大生命值定义单位在不修改它时最多能够有多少血量,</span></span>
|
||||
<span class="line"><span style="color:#FFCB6B;">单位默认生成时即是这个血量。</span></span>
|
||||
<span class="line"><span style="color:#82AAFF;">maxHp可以通过单位参考.maxHp</span><span style="color:#89DDFF;">()</span><span style="color:#A6ACCD;">来获取,</span></span>
|
||||
<span class="line"><span style="color:#FFCB6B;">也可以通过[action]进行修改。</span></span></code></pre></div></div></div><h4 id="maxhp-演示例子" tabindex="-1">maxHp-演示例子 <a class="header-anchor" href="#maxhp-演示例子" aria-label="Permalink to "maxHp-演示例子""></a></h4><div class="language-ini"><button title="Copy Code" class="copy"></button><span class="lang">ini</span><pre class="shiki material-theme-palenight"><code><span class="line"><span style="color:#89DDFF;">[core]</span></span>
|
||||
<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 "altNames""></a></h3><h4 id="altnames-代码简介" tabindex="-1">altNames-代码简介 <a class="header-anchor" href="#altnames-代码简介" aria-label="Permalink to "altNames-代码简介""></a></h4><p>代码:altNames 中文释义:别名/曾用名 类型:字符型 隶属于:通用代码组</p><h4 id="altnames-要点指示" tabindex="-1">altNames-要点指示 <a class="header-anchor" href="#altnames-要点指示" aria-label="Permalink to "altNames-要点指示""></a></h4><p>altNames代码要点指示:</p><h4 id="jdsaling的小提示" tabindex="-1"><strong>JDSALing的小提示</strong> <a class="header-anchor" href="#jdsaling的小提示" aria-label="Permalink to "**JDSALing的小提示**""></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 "altNames-演示例子""></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 "class""></a></h3><h4 id="class-代码简介" tabindex="-1">class-代码简介 <a class="header-anchor" href="#class-代码简介" aria-label="Permalink to "class-代码简介""></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 "class-演示例子""></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 "strictLevel""></a></h3><h4 id="strictlevel-代码简介" tabindex="-1">strictLevel-代码简介 <a class="header-anchor" href="#strictlevel-代码简介" aria-label="Permalink to "strictLevel-代码简介""></a></h4><p>代码:strictLevel 中文释义:严格级别 类型:数字固定型 隶属于:通用代码组</p><div class="tip custom-block"><p class="custom-block-title">TIP</p><p>建议添加到"all-units.template"以应用于所有单位,进行统一查错。<br> 默认值为0,忽略代码重复。设为1时如果当前单位内有重复代码,则报错。</p></div><h4 id="strictlevel-演示例子" tabindex="-1">strictLevel-演示例子 <a class="header-anchor" href="#strictlevel-演示例子" aria-label="Permalink to "strictLevel-演示例子""></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 "techLevel""></a></h3><h4 id="techlevel-代码简介" tabindex="-1">techLevel-代码简介 <a class="header-anchor" href="#techlevel-代码简介" aria-label="Permalink to "techLevel-代码简介""></a></h4><p>代码:techLevel 中文释义:科技等级 类型:数字固定型 隶属于:通用代码组</p>`,20),b={class:"tip custom-block"},m=e("p",{class:"custom-block-title"},"TIP",-1),g=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 "techLevel-演示例子""></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 "techLevel""></a></h3><h4 id="techlevel-代码简介" tabindex="-1">techLevel-代码简介 <a class="header-anchor" href="#techlevel-代码简介" aria-label="Permalink to "techLevel-代码简介""></a></h4><p>代码:techLevel 中文释义:科技等级 类型:数字固定型 隶属于:通用代码组</p>`,20),b={class:"tip custom-block"},g=e("p",{class:"custom-block-title"},"TIP",-1),m=e("br",null,null,-1),y=e("br",null,null,-1),C=i(`<h4 id="techlevel-演示例子" tabindex="-1">techLevel-演示例子 <a class="header-anchor" href="#techlevel-演示例子" aria-label="Permalink to "techLevel-演示例子""></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 "buildSpeed""></a></h3><h4 id="buildspeed-代码简介" tabindex="-1">buildSpeed-代码简介 <a class="header-anchor" href="#buildspeed-代码简介" aria-label="Permalink to "buildSpeed-代码简介""></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 "buildSpeed-演示例子""></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>
|
||||
|
@ -61,7 +61,7 @@ import{_ as t,c as o,C as e,a,I as n,E as l,V as i,J as r,o as c}from"./chunks/f
|
|||
<span class="line"><span style="color:#676E95;font-style:italic;">#如果受到40以下的常规攻击,则进行最低伤害判定</span></span></code></pre></div><hr><h3 id="borrowresourceswhilealive" tabindex="-1">borrowResourcesWhileAlive <a class="header-anchor" href="#borrowresourceswhilealive" aria-label="Permalink to "borrowResourcesWhileAlive""></a></h3><h4 id="borrowresourceswhilealive-代码简介" tabindex="-1">borrowResourcesWhileAlive-代码简介 <a class="header-anchor" href="#borrowresourceswhilealive-代码简介" aria-label="Permalink to "borrowResourcesWhileAlive-代码简介""></a></h4><p>代码:armour 中文释义:资源活着时借用 类型:Price型 隶属于:单位统计代码组</p><div class="tip custom-block"><p class="custom-block-title">TIP</p><p>创建时获取这些资源,删除或销毁时将其返回。 例如用于电力逻辑,负数供电和正数耗电。</p></div><h4 id="borrowresourceswhilealive-演示例子" tabindex="-1">borrowResourcesWhileAlive-演示例子 <a class="header-anchor" href="#borrowresourceswhilealive-演示例子" aria-label="Permalink to "borrowResourcesWhileAlive-演示例子""></a></h4><div class="language-ini"><button title="Copy Code" class="copy"></button><span class="lang">ini</span><pre class="shiki material-theme-palenight"><code><span class="line"><span style="color:#89DDFF;">[core]</span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;">borrowResourcesWhileAlive:5000</span></span>
|
||||
<span class="line"><span style="color:#676E95;font-style:italic;">#单位活着的时候给予5000金币,死亡扣除5000金币</span></span>
|
||||
<span class="line"><span style="color:#676E95;font-style:italic;">#一个小型贷款系统,</span></span></code></pre></div><div class="vp-code-group"><div class="tabs"><input type="radio" name="group-qzM89" id="tab-qK8b37t" checked="checked"><label for="tab-qK8b37t">考考你</label><input type="radio" name="group-qzM89" id="tab-_ZZ8fIc"><label for="tab-_ZZ8fIc">显示答案</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-RE-EJ" id="tab-VB8N3Ut" checked="checked"><label for="tab-VB8N3Ut">考考你</label><input type="radio" name="group-RE-EJ" id="tab-G5PBhOR"><label for="tab-G5PBhOR">显示答案</label></div><div class="blocks"><div class="language-bash active"><button title="Copy Code" class="copy"></button><span class="lang">bash</span><pre class="shiki material-theme-palenight"><code><span class="line"><span style="color:#FFCB6B;">如果这里要通过这个代码做一个小的贷款系统,</span></span>
|
||||
<span class="line"><span style="color:#FFCB6B;">并经过一段时间让单位死亡。</span><span style="color:#A6ACCD;"> </span></span>
|
||||
<span class="line"><span style="color:#FFCB6B;">只需要4行代码即可实现,试试看。</span></span>
|
||||
<span class="line"><span style="color:#FFCB6B;">提示:dieOnZeroEnergy:true</span></span>
|
||||
|
@ -116,4 +116,4 @@ import{_ as t,c as o,C as e,a,I as n,E as l,V as i,J as r,o as c}from"./chunks/f
|
|||
<span class="line"><span style="color:#A6ACCD;">footprint: -1,-1,1,1</span></span></code></pre></div><hr><h3 id="constructionfootprint" tabindex="-1">constructionFootprint <a class="header-anchor" href="#constructionfootprint" aria-label="Permalink to "constructionFootprint""></a></h3><h4 id="constructionfootprint-代码简介" tabindex="-1">constructionFootprint-代码简介 <a class="header-anchor" href="#constructionfootprint-代码简介" aria-label="Permalink to "constructionFootprint-代码简介""></a></h4><p>代码:constructionFootprint 中文释义:建筑覆盖范围 类型:多整型 隶属于:构建代码组</p><div class="tip custom-block"><p class="custom-block-title">TIP</p><p>基础规则同上,这个区域内不能建造建筑,但是单位可以通过。<br> 一般需要设定比上一个面积大。<br> 好处是即使建造的密密麻麻,单位也有路可走。</p></div><h4 id="constructionfootprint-演示例子" tabindex="-1">constructionFootprint-演示例子 <a class="header-anchor" href="#constructionfootprint-演示例子" aria-label="Permalink to "constructionFootprint-演示例子""></a></h4><div class="language-ini"><button title="Copy Code" class="copy"></button><span class="lang">ini</span><pre class="shiki material-theme-palenight"><code><span class="line"><span style="color:#89DDFF;">[core]</span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;">constructionFootprint: -1,-1,1,3</span></span></code></pre></div><hr><h3 id="displayfootprint" tabindex="-1">displayFootprint <a class="header-anchor" href="#displayfootprint" aria-label="Permalink to "displayFootprint""></a></h3><h4 id="displayfootprint-代码简介" tabindex="-1">displayFootprint-代码简介 <a class="header-anchor" href="#displayfootprint-代码简介" aria-label="Permalink to "displayFootprint-代码简介""></a></h4><p>代码:displayFootprint 中文释义:建筑选择UI 类型:多整型 隶属于:构建代码组</p><div class="tip custom-block"><p class="custom-block-title">TIP</p><p>基础规则同上,用于选择单位时UI显示。不设定则默认为建筑覆盖区域。</p></div><h4 id="displayfootprint-演示例子" tabindex="-1">displayFootprint-演示例子 <a class="header-anchor" href="#displayfootprint-演示例子" aria-label="Permalink to "displayFootprint-演示例子""></a></h4><div class="language-ini"><button title="Copy Code" class="copy"></button><span class="lang">ini</span><pre class="shiki material-theme-palenight"><code><span class="line"><span style="color:#89DDFF;">[core]</span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;">displayFootprint: 0,0,1,1</span></span></code></pre></div><hr><h3 id="buildingselectionoffset" tabindex="-1">buildingSelectionOffset <a class="header-anchor" href="#buildingselectionoffset" aria-label="Permalink to "buildingSelectionOffset""></a></h3><h4 id="buildingselectionoffset-代码简介" tabindex="-1">buildingSelectionOffset-代码简介 <a class="header-anchor" href="#buildingselectionoffset-代码简介" aria-label="Permalink to "buildingSelectionOffset-代码简介""></a></h4><p>代码:buildingSelectionOffset 中文释义:建筑UI调整 类型:整型 隶属于:构建代码组</p><div class="tip custom-block"><p class="custom-block-title">TIP</p><p>基础规则同上,用于选择单位时UI显示。不设定则默认为建筑覆盖区域。</p></div><h4 id="buildingselectionoffset-演示例子" tabindex="-1">buildingSelectionOffset-演示例子 <a class="header-anchor" href="#buildingselectionoffset-演示例子" aria-label="Permalink to "buildingSelectionOffset-演示例子""></a></h4><div class="language-ini"><button title="Copy Code" class="copy"></button><span class="lang">ini</span><pre class="shiki material-theme-palenight"><code><span class="line"><span style="color:#89DDFF;">[core]</span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;">buildingSelectionOffset: 4</span></span></code></pre></div><hr>`,183);function F(_,T,R,w,B,I){const s=r("font");return c(),o("div",null,[d,e("p",null,[a("主要在"),n(s,{color:"orange"},{default:l(()=>[a("启用多个自定义Mod")]),_:1}),a("进行优先级定义"),h,a(" 以逗号分隔的名称列表。像"),n(s,{color:"orange"},{default:l(()=>[a("名称一样,但优先级较低")]),_:1}),a(",对于"),n(s,{color:"orange"},{default:l(()=>[a("启用多个自定义mod")]),_:1}),a("有用。")]),u,e("div",b,[m,e("p",null,[a("早期是用于在"),n(s,{color:"orange"},{default:l(()=>[a("builtFrom")]),_:1}),a("的代码,并结合科技等级使用。如果工厂的等级低于单位的目标科技等级,则会在工厂里面隐藏该单位。"),g,a("自铁锈1.09后出现"),n(s,{color:"orange"},{default:l(()=>[a("overrideAndReplace")]),_:1}),a("后,该方法则不建议使用。有关于新策略,请参考"),n(s,{color:"orange"},{default:l(()=>[a("overrideAndReplace")]),_:1}),a("代码文档指南。"),y,a(" 设置单位的科技等级,共有3个级别,1级GUI显示为绿色,2、3级显示为黄色。超过3报错。")])]),C,e("div",k,[f,e("p",null,[a("若设置成true,则会在单位死亡时产生血迹,"),q,a(" 图像在"),n(s,{color:"orange"},{default:l(()=>[a("drawable/blood_mark.png"),v,a("当hideScorchMark:true")]),_:1}),a("时可以隐藏非生物则为黑色爆炸效果。")])]),x,e("div",D,[A,e("p",null,[a("能量恢复是持续的,如果你设置了"),n(s,{color:"orange"},{default:l(()=>[a("energyNeedsToRechargeToFull")]),_:1}),a(", 那么攻击时按energyRegen恢复,耗尽时的灰条按此处设定值恢复。")])]),P])}const M=t(p,[["render",F]]);export{E as __pageData,M as default};
|
||||
<span class="line"><span style="color:#A6ACCD;">buildingSelectionOffset: 4</span></span></code></pre></div><hr>`,183);function F(_,T,R,w,B,I){const s=r("font");return c(),o("div",null,[d,e("p",null,[a("主要在"),n(s,{color:"orange"},{default:l(()=>[a("启用多个自定义Mod")]),_:1}),a("进行优先级定义"),h,a(" 以逗号分隔的名称列表。像"),n(s,{color:"orange"},{default:l(()=>[a("名称一样,但优先级较低")]),_:1}),a(",对于"),n(s,{color:"orange"},{default:l(()=>[a("启用多个自定义mod")]),_:1}),a("有用。")]),u,e("div",b,[g,e("p",null,[a("早期是用于在"),n(s,{color:"orange"},{default:l(()=>[a("builtFrom")]),_:1}),a("的代码,并结合科技等级使用。如果工厂的等级低于单位的目标科技等级,则会在工厂里面隐藏该单位。"),m,a("自铁锈1.09后出现"),n(s,{color:"orange"},{default:l(()=>[a("overrideAndReplace")]),_:1}),a("后,该方法则不建议使用。有关于新策略,请参考"),n(s,{color:"orange"},{default:l(()=>[a("overrideAndReplace")]),_:1}),a("代码文档指南。"),y,a(" 设置单位的科技等级,共有3个级别,1级GUI显示为绿色,2、3级显示为黄色。超过3报错。")])]),C,e("div",k,[f,e("p",null,[a("若设置成true,则会在单位死亡时产生血迹,"),q,a(" 图像在"),n(s,{color:"orange"},{default:l(()=>[a("drawable/blood_mark.png"),v,a("当hideScorchMark:true")]),_:1}),a("时可以隐藏非生物则为黑色爆炸效果。")])]),x,e("div",D,[A,e("p",null,[a("能量恢复是持续的,如果你设置了"),n(s,{color:"orange"},{default:l(()=>[a("energyNeedsToRechargeToFull")]),_:1}),a(", 那么攻击时按energyRegen恢复,耗尽时的灰条按此处设定值恢复。")])]),P])}const M=t(p,[["render",F]]);export{E as __pageData,M as default};
|
|
@ -1 +1 @@
|
|||
import{_ as t,c as o,C as e,a,I as n,E as l,V as i,J as r,o as c}from"./chunks/framework.fcc0bf38.js";const E=JSON.parse('{"title":"[core]组","description":"","frontmatter":{"outline":"deep"},"headers":[],"relativePath":"src/Unit/core.md","filePath":"src/Unit/core.md"}'),p={name:"src/Unit/core.md"},d=i("",51),h=e("br",null,null,-1),u=i("",20),b={class:"tip custom-block"},m=e("p",{class:"custom-block-title"},"TIP",-1),g=e("br",null,null,-1),y=e("br",null,null,-1),C=i("",13),k={class:"tip custom-block"},f=e("p",{class:"custom-block-title"},"TIP",-1),q=e("br",null,null,-1),v=e("br",null,null,-1),x=i("",77),D={class:"tip custom-block"},A=e("p",{class:"custom-block-title"},"TIP",-1),P=i("",183);function F(_,T,R,w,B,I){const s=r("font");return c(),o("div",null,[d,e("p",null,[a("主要在"),n(s,{color:"orange"},{default:l(()=>[a("启用多个自定义Mod")]),_:1}),a("进行优先级定义"),h,a(" 以逗号分隔的名称列表。像"),n(s,{color:"orange"},{default:l(()=>[a("名称一样,但优先级较低")]),_:1}),a(",对于"),n(s,{color:"orange"},{default:l(()=>[a("启用多个自定义mod")]),_:1}),a("有用。")]),u,e("div",b,[m,e("p",null,[a("早期是用于在"),n(s,{color:"orange"},{default:l(()=>[a("builtFrom")]),_:1}),a("的代码,并结合科技等级使用。如果工厂的等级低于单位的目标科技等级,则会在工厂里面隐藏该单位。"),g,a("自铁锈1.09后出现"),n(s,{color:"orange"},{default:l(()=>[a("overrideAndReplace")]),_:1}),a("后,该方法则不建议使用。有关于新策略,请参考"),n(s,{color:"orange"},{default:l(()=>[a("overrideAndReplace")]),_:1}),a("代码文档指南。"),y,a(" 设置单位的科技等级,共有3个级别,1级GUI显示为绿色,2、3级显示为黄色。超过3报错。")])]),C,e("div",k,[f,e("p",null,[a("若设置成true,则会在单位死亡时产生血迹,"),q,a(" 图像在"),n(s,{color:"orange"},{default:l(()=>[a("drawable/blood_mark.png"),v,a("当hideScorchMark:true")]),_:1}),a("时可以隐藏非生物则为黑色爆炸效果。")])]),x,e("div",D,[A,e("p",null,[a("能量恢复是持续的,如果你设置了"),n(s,{color:"orange"},{default:l(()=>[a("energyNeedsToRechargeToFull")]),_:1}),a(", 那么攻击时按energyRegen恢复,耗尽时的灰条按此处设定值恢复。")])]),P])}const M=t(p,[["render",F]]);export{E as __pageData,M as default};
|
||||
import{_ as t,c as o,C as e,a,I as n,E as l,V as i,J as r,o as c}from"./chunks/framework.fcc0bf38.js";const E=JSON.parse('{"title":"[core]组","description":"","frontmatter":{"outline":"deep"},"headers":[],"relativePath":"src/Unit/core.md","filePath":"src/Unit/core.md"}'),p={name:"src/Unit/core.md"},d=i("",51),h=e("br",null,null,-1),u=i("",20),b={class:"tip custom-block"},g=e("p",{class:"custom-block-title"},"TIP",-1),m=e("br",null,null,-1),y=e("br",null,null,-1),C=i("",13),k={class:"tip custom-block"},f=e("p",{class:"custom-block-title"},"TIP",-1),q=e("br",null,null,-1),v=e("br",null,null,-1),x=i("",77),D={class:"tip custom-block"},A=e("p",{class:"custom-block-title"},"TIP",-1),P=i("",183);function F(_,T,R,w,B,I){const s=r("font");return c(),o("div",null,[d,e("p",null,[a("主要在"),n(s,{color:"orange"},{default:l(()=>[a("启用多个自定义Mod")]),_:1}),a("进行优先级定义"),h,a(" 以逗号分隔的名称列表。像"),n(s,{color:"orange"},{default:l(()=>[a("名称一样,但优先级较低")]),_:1}),a(",对于"),n(s,{color:"orange"},{default:l(()=>[a("启用多个自定义mod")]),_:1}),a("有用。")]),u,e("div",b,[g,e("p",null,[a("早期是用于在"),n(s,{color:"orange"},{default:l(()=>[a("builtFrom")]),_:1}),a("的代码,并结合科技等级使用。如果工厂的等级低于单位的目标科技等级,则会在工厂里面隐藏该单位。"),m,a("自铁锈1.09后出现"),n(s,{color:"orange"},{default:l(()=>[a("overrideAndReplace")]),_:1}),a("后,该方法则不建议使用。有关于新策略,请参考"),n(s,{color:"orange"},{default:l(()=>[a("overrideAndReplace")]),_:1}),a("代码文档指南。"),y,a(" 设置单位的科技等级,共有3个级别,1级GUI显示为绿色,2、3级显示为黄色。超过3报错。")])]),C,e("div",k,[f,e("p",null,[a("若设置成true,则会在单位死亡时产生血迹,"),q,a(" 图像在"),n(s,{color:"orange"},{default:l(()=>[a("drawable/blood_mark.png"),v,a("当hideScorchMark:true")]),_:1}),a("时可以隐藏非生物则为黑色爆炸效果。")])]),x,e("div",D,[A,e("p",null,[a("能量恢复是持续的,如果你设置了"),n(s,{color:"orange"},{default:l(()=>[a("energyNeedsToRechargeToFull")]),_:1}),a(", 那么攻击时按energyRegen恢复,耗尽时的灰条按此处设定值恢复。")])]),P])}const M=t(p,[["render",F]]);export{E as __pageData,M as default};
|
|
@ -1,23 +0,0 @@
|
|||
import{_ as a,c as s,o as e,V as i}from"./chunks/framework.fcc0bf38.js";const b=JSON.parse('{"title":"[graphics]图像组","description":"","frontmatter":{"outline":"deep"},"headers":[],"relativePath":"src/Unit/graphics.md","filePath":"src/Unit/graphics.md"}'),l={name:"src/Unit/graphics.md"},n=i(`<h1 id="graphics-图像组" tabindex="-1"><strong>[graphics]图像组</strong> <a class="header-anchor" href="#graphics-图像组" aria-label="Permalink to "**[graphics]图像组**""></a></h1><h3 id="image" tabindex="-1">image <a class="header-anchor" href="#image" aria-label="Permalink to "image""></a></h3><h4 id="image-代码简介" tabindex="-1">image-代码简介 <a class="header-anchor" href="#image-代码简介" aria-label="Permalink to "image-代码简介""></a></h4><p>代码:image 中文释义:图像 类型:字符型</p><div class="danger custom-block"><p class="custom-block-title">DANGER</p><p>如果需要隐藏单位的图像请使用空白透明的图像替代。<br> 请勿直接忽略此项,会直接报错导致此单位代码无法加载。</p></div><div class="warning custom-block"><p class="custom-block-title">WARNING</p><p>铁锈战争支持多种图片格式,如:jpg,png,bmp...等,但也有一部分的格式并不支持,如webp这种的。<br> 尽量使用png格式的图片也许不失为一个好的选择。</p></div><h4 id="image-用法" tabindex="-1">image-用法 <a class="header-anchor" href="#image-用法" aria-label="Permalink to "image-用法""></a></h4><p>填写图片文件或图片文件的路径,图片文件将作为单位的主体图像。</p><div class="tip custom-block"><p class="custom-block-title">TIP</p><p>路径可使用相对路径或绝对路径。<br> 绝对路径中的根目录是以模组包内的首层目录为根目录的。<br> 相对路径则是以ini代码文件的目录为起始目录。<br> 图片和代码在同一目录下直接填写路径的用法相当于使用了相对路径。<br> 此方法基本适用于[graphics]组内所以需要引用图像文件的地方。</p></div><h4 id="image-示例" tabindex="-1">image-示例 <a class="header-anchor" href="#image-示例" aria-label="Permalink to "image-示例""></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;">[graphics]</span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;">image: ROOT:\\124\\255\\tank.png </span><span style="color:#676E95;font-style:italic;"># 绝对路径</span></span>
|
||||
<span class="line"></span>
|
||||
<span class="line"><span style="color:#89DDFF;">[graphics]</span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;">image: \\124\\255\\tank.png </span><span style="color:#676E95;font-style:italic;"># 相对路径</span></span></code></pre></div><h3 id="image-back" tabindex="-1">image_back <a class="header-anchor" href="#image-back" aria-label="Permalink to "image_back""></a></h3><h4 id="image-back-代码简介" tabindex="-1">image_back-代码简介 <a class="header-anchor" href="#image-back-代码简介" aria-label="Permalink to "image_back-代码简介""></a></h4><p>代码:image_back 中文释义:背景图像 类型:字符型</p><h4 id="image-back-用法" tabindex="-1">image_back-用法 <a class="header-anchor" href="#image-back-用法" aria-label="Permalink to "image_back-用法""></a></h4><p>填写图片文件或图片文件的路径,图片文件将作为单位的背景图像。</p><div class="tip custom-block"><p class="custom-block-title">TIP</p><p>在单位后面后面绘制的图像,不随单位转动。<br> 如无需要可以选择不填,可以作为单位角标和工厂底图使用。</p></div><h4 id="image-back-示例" tabindex="-1">image_back-示例 <a class="header-anchor" href="#image-back-示例" aria-label="Permalink to "image_back-示例""></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;">[graphics]</span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;">image_back: ROOT:\\124\\255\\background.png </span><span style="color:#676E95;font-style:italic;"># 绝对路径</span></span>
|
||||
<span class="line"></span>
|
||||
<span class="line"><span style="color:#89DDFF;">[graphics]</span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;">image_back: \\124\\255\\background.png </span><span style="color:#676E95;font-style:italic;"># 相对路径</span></span></code></pre></div><h3 id="image-wreak" tabindex="-1">image_wreak <a class="header-anchor" href="#image-wreak" aria-label="Permalink to "image_wreak""></a></h3><h4 id="image-wreak-代码简介" tabindex="-1">image_wreak-代码简介 <a class="header-anchor" href="#image-wreak-代码简介" aria-label="Permalink to "image_wreak-代码简介""></a></h4><p>代码:image_wreak 中文释义:死亡图像 类型:字符型</p><h4 id="image-wreak-用法" tabindex="-1">image_wreak-用法 <a class="header-anchor" href="#image-wreak-用法" aria-label="Permalink to "image_wreak-用法""></a></h4><p>填写图片文件或图片文件的路径,图片文件将作为单位的死亡图像。</p><div class="tip custom-block"><p class="custom-block-title">TIP</p><p>作为在单位后面死亡后绘制的图像。<br> 不填写此项不会影响代码的运行,同时可以使用NONE作为路径名将表示没有任何图像。</p></div><div class="info custom-block"><p class="custom-block-title">INFO</p><p>如果不填死亡图像,默认将以单位的主体图像作为死亡图像使用。</p></div><h4 id="image-wreak-示例" tabindex="-1">image_wreak-示例 <a class="header-anchor" href="#image-wreak-示例" aria-label="Permalink to "image_wreak-示例""></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;">[graphics]</span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;">image_wreak: ROOT:\\124\\255\\image_wreak.png </span><span style="color:#676E95;font-style:italic;"># 绝对路径</span></span>
|
||||
<span class="line"></span>
|
||||
<span class="line"><span style="color:#89DDFF;">[graphics]</span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;">image_wreak: \\124\\255\\image_wreak.png </span><span style="color:#676E95;font-style:italic;"># 相对路径</span></span>
|
||||
<span class="line"></span>
|
||||
<span class="line"><span style="color:#89DDFF;">[graphics]</span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;">image_wreak: NONE</span></span></code></pre></div><h3 id="image-shield" tabindex="-1">image_shield <a class="header-anchor" href="#image-shield" aria-label="Permalink to "image_shield""></a></h3><h4 id="image-shield-代码简介" tabindex="-1">image_shield-代码简介 <a class="header-anchor" href="#image-shield-代码简介" aria-label="Permalink to "image_shield-代码简介""></a></h4><p>代码:image_shield 中文释义:护盾图像 类型:字符型</p><h4 id="image-shield-用法" tabindex="-1">image_shield-用法 <a class="header-anchor" href="#image-shield-用法" aria-label="Permalink to "image_shield-用法""></a></h4><p>填写图片文件或图片文件的路径,图片文件将作为单位的护盾图像。</p><div class="tip custom-block"><p class="custom-block-title">TIP</p><p>作为在单位的护盾所绘制的图像。<br> 本项仅作为自定义护盾图像使用,如设置护盾且未填此项时将使用默认护盾。<br> 不填写此项不会影响代码的运行,同时可以使用NONE作为路径名将表示没有任何图像。</p></div><h4 id="image-shield-示例" tabindex="-1">image_shield-示例 <a class="header-anchor" href="#image-shield-示例" aria-label="Permalink to "image_shield-示例""></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;">[graphics]</span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;">image_shield: ROOT:\\124\\255\\image_shield.png </span><span style="color:#676E95;font-style:italic;"># 绝对路径</span></span>
|
||||
<span class="line"></span>
|
||||
<span class="line"><span style="color:#89DDFF;">[graphics]</span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;">image_shield: \\124\\255\\image_shield.png </span><span style="color:#676E95;font-style:italic;"># 相对路径</span></span>
|
||||
<span class="line"></span>
|
||||
<span class="line"><span style="color:#89DDFF;">[graphics]</span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;">image_shield: NONE</span></span></code></pre></div>`,36),c=[n];function p(t,o,r,h,g,m){return e(),s("div",null,c)}const k=a(l,[["render",p]]);export{b as __pageData,k as default};
|
45
assets/src_Unit_graphics.md.8b2546fa.js
Normal file
45
assets/src_Unit_graphics.md.8b2546fa.js
Normal file
|
@ -0,0 +1,45 @@
|
|||
import{_ as a,c as s,o as e,V as i}from"./chunks/framework.fcc0bf38.js";const b=JSON.parse('{"title":"[graphics]图像组","description":"","frontmatter":{"outline":"deep"},"headers":[],"relativePath":"src/Unit/graphics.md","filePath":"src/Unit/graphics.md"}'),l={name:"src/Unit/graphics.md"},n=i(`<h1 id="graphics-图像组" tabindex="-1"><strong>[graphics]图像组</strong> <a class="header-anchor" href="#graphics-图像组" aria-label="Permalink to "**[graphics]图像组**""></a></h1><h3 id="image" tabindex="-1">image <a class="header-anchor" href="#image" aria-label="Permalink to "image""></a></h3><h4 id="image-代码简介" tabindex="-1">image-代码简介 <a class="header-anchor" href="#image-代码简介" aria-label="Permalink to "image-代码简介""></a></h4><p>代码:image 中文释义:图像 类型:字符型</p><div class="danger custom-block"><p class="custom-block-title">DANGER</p><p>如果需要隐藏单位的图像请使用空白透明的图像替代。<br> 请勿直接忽略此项,会直接报错导致此单位代码无法加载。</p></div><div class="warning custom-block"><p class="custom-block-title">WARNING</p><p>铁锈战争支持多种图片格式,如:jpg,png,bmp...等,但也有一部分的格式并不支持,如webp这种的。<br> 尽量使用png格式的图片也许不失为一个好的选择。</p></div><h4 id="image-用法" tabindex="-1">image-用法 <a class="header-anchor" href="#image-用法" aria-label="Permalink to "image-用法""></a></h4><p>填写图片文件或图片文件的路径,图片文件将作为单位的主体图像。</p><div class="tip custom-block"><p class="custom-block-title">TIP</p><p>路径可使用相对路径或绝对路径。<br> 绝对路径中的根目录是以模组包内的首层目录为根目录的。<br> 相对路径则是以ini代码文件的目录为起始目录。<br> 图片和代码在同一目录下直接填写路径的用法相当于使用了相对路径。<br> 此方法基本适用于[graphics]组内所有需要引用图像文件的地方。</p></div><h4 id="image-示例" tabindex="-1">image-示例 <a class="header-anchor" href="#image-示例" aria-label="Permalink to "image-示例""></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;">[graphics]</span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;">image: ROOT:\\124\\255\\tank.png </span><span style="color:#676E95;font-style:italic;"># 绝对路径</span></span>
|
||||
<span class="line"></span>
|
||||
<span class="line"><span style="color:#89DDFF;">[graphics]</span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;">image: \\124\\255\\tank.png </span><span style="color:#676E95;font-style:italic;"># 相对路径</span></span></code></pre></div><h3 id="image-back" tabindex="-1">image_back <a class="header-anchor" href="#image-back" aria-label="Permalink to "image_back""></a></h3><h4 id="image-back-代码简介" tabindex="-1">image_back-代码简介 <a class="header-anchor" href="#image-back-代码简介" aria-label="Permalink to "image_back-代码简介""></a></h4><p>代码:image_back 中文释义:背景图像 类型:字符型</p><h4 id="image-back-用法" tabindex="-1">image_back-用法 <a class="header-anchor" href="#image-back-用法" aria-label="Permalink to "image_back-用法""></a></h4><p>填写图片文件或图片文件的路径,图片文件将作为单位的背景图像。</p><div class="tip custom-block"><p class="custom-block-title">TIP</p><p>在单位后面后面绘制的图像,不随单位转动。<br> 如无需要可以选择不填,可以作为单位角标和工厂底图使用。</p></div><h4 id="image-back-示例" tabindex="-1">image_back-示例 <a class="header-anchor" href="#image-back-示例" aria-label="Permalink to "image_back-示例""></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;">[graphics]</span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;">image_back: ROOT:\\124\\255\\background.png </span><span style="color:#676E95;font-style:italic;"># 绝对路径</span></span>
|
||||
<span class="line"></span>
|
||||
<span class="line"><span style="color:#89DDFF;">[graphics]</span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;">image_back: \\124\\255\\background.png </span><span style="color:#676E95;font-style:italic;"># 相对路径</span></span></code></pre></div><h3 id="image-wreak" tabindex="-1">image_wreak <a class="header-anchor" href="#image-wreak" aria-label="Permalink to "image_wreak""></a></h3><h4 id="image-wreak-代码简介" tabindex="-1">image_wreak-代码简介 <a class="header-anchor" href="#image-wreak-代码简介" aria-label="Permalink to "image_wreak-代码简介""></a></h4><p>代码:image_wreak 中文释义:死亡图像 类型:字符型</p><h4 id="image-wreak-用法" tabindex="-1">image_wreak-用法 <a class="header-anchor" href="#image-wreak-用法" aria-label="Permalink to "image_wreak-用法""></a></h4><p>填写图片文件或图片文件的路径,图片文件将作为单位的死亡图像。</p><div class="tip custom-block"><p class="custom-block-title">TIP</p><p>作为在单位后面死亡后绘制的图像。<br> 不填写此项不会影响代码的运行,同时可以使用NONE作为路径名将表示没有任何图像。</p></div><div class="info custom-block"><p class="custom-block-title">INFO</p><p>如果不填死亡图像,默认将以单位的主体图像作为死亡图像使用。</p></div><h4 id="image-wreak-示例" tabindex="-1">image_wreak-示例 <a class="header-anchor" href="#image-wreak-示例" aria-label="Permalink to "image_wreak-示例""></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;">[graphics]</span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;">image_wreak: ROOT:\\124\\255\\image_wreak.png </span><span style="color:#676E95;font-style:italic;"># 绝对路径</span></span>
|
||||
<span class="line"></span>
|
||||
<span class="line"><span style="color:#89DDFF;">[graphics]</span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;">image_wreak: \\124\\255\\image_wreak.png </span><span style="color:#676E95;font-style:italic;"># 相对路径</span></span>
|
||||
<span class="line"></span>
|
||||
<span class="line"><span style="color:#89DDFF;">[graphics]</span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;">image_wreak: NONE</span></span></code></pre></div><h3 id="image-shield" tabindex="-1">image_shield <a class="header-anchor" href="#image-shield" aria-label="Permalink to "image_shield""></a></h3><h4 id="image-shield-代码简介" tabindex="-1">image_shield-代码简介 <a class="header-anchor" href="#image-shield-代码简介" aria-label="Permalink to "image_shield-代码简介""></a></h4><p>代码:image_shield 中文释义:护盾图像 类型:字符型</p><h4 id="image-shield-用法" tabindex="-1">image_shield-用法 <a class="header-anchor" href="#image-shield-用法" aria-label="Permalink to "image_shield-用法""></a></h4><p>填写图片文件或图片文件的路径,图片文件将作为单位的护盾图像。</p><div class="tip custom-block"><p class="custom-block-title">TIP</p><p>作为在单位的护盾所绘制的图像。<br> 本项仅作为自定义护盾图像使用,如设置护盾且未填此项时将使用默认护盾。<br> 不填写此项不会影响代码的运行,同时可以使用NONE作为路径名将表示没有任何图像。</p></div><h4 id="image-shield-示例" tabindex="-1">image_shield-示例 <a class="header-anchor" href="#image-shield-示例" aria-label="Permalink to "image_shield-示例""></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;">[graphics]</span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;">image_shield: ROOT:\\124\\255\\image_shield.png </span><span style="color:#676E95;font-style:italic;"># 绝对路径</span></span>
|
||||
<span class="line"></span>
|
||||
<span class="line"><span style="color:#89DDFF;">[graphics]</span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;">image_shield: \\124\\255\\image_shield.png </span><span style="color:#676E95;font-style:italic;"># 相对路径</span></span>
|
||||
<span class="line"></span>
|
||||
<span class="line"><span style="color:#89DDFF;">[graphics]</span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;">image_shield: NONE</span></span></code></pre></div><h3 id="image-offsetx" tabindex="-1">image_offsetX <a class="header-anchor" href="#image-offsetx" aria-label="Permalink to "image_offsetX""></a></h3><h4 id="image-offsetx-代码简介" tabindex="-1">image_offsetX-代码简介 <a class="header-anchor" href="#image-offsetx-代码简介" aria-label="Permalink to "image_offsetX-代码简介""></a></h4><p>代码:image_offsetX 中文释义:图像X轴偏移 类型:整数</p><h4 id="image-offsetx-用法" tabindex="-1">image_offsetX-用法 <a class="header-anchor" href="#image-offsetx-用法" aria-label="Permalink to "image_offsetX-用法""></a></h4><p>作用于主体图像,填写的数值会作为偏移的像素大小,可以为负。</p><div class="tip custom-block"><p class="custom-block-title">TIP</p><p>偏移的方向依据X的数值而定。<br> X轴以单位中心点为坐标,X增大则图像向右偏移。</p></div><h4 id="image-offsetx-示例" tabindex="-1">image_offsetX-示例 <a class="header-anchor" href="#image-offsetx-示例" aria-label="Permalink to "image_offsetX-示例""></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;">[graphics]</span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;">image_offsetX:1 </span><span style="color:#676E95;font-style:italic;"># 偏移量为 1</span></span></code></pre></div><h3 id="image-offsety" tabindex="-1">image_offsetY <a class="header-anchor" href="#image-offsety" aria-label="Permalink to "image_offsetY""></a></h3><h4 id="image-offsety-代码简介" tabindex="-1">image_offsetY-代码简介 <a class="header-anchor" href="#image-offsety-代码简介" aria-label="Permalink to "image_offsetY-代码简介""></a></h4><p>代码:image_offsetY 中文释义:图像Y轴偏移 类型:整数</p><h4 id="image-offsety-用法" tabindex="-1">image_offsetY-用法 <a class="header-anchor" href="#image-offsety-用法" aria-label="Permalink to "image_offsetY-用法""></a></h4><p>作用于主体图像,填写的数值会作为偏移的像素大小,可以为负。</p><div class="tip custom-block"><p class="custom-block-title">TIP</p><p>偏移的方向依据Y的数值而定。<br> X轴以单位中心点为坐标,Y增大则图像向下偏移。</p></div><h4 id="image-offsety-示例" tabindex="-1">image_offsetY-示例 <a class="header-anchor" href="#image-offsety-示例" aria-label="Permalink to "image_offsetY-示例""></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;">[graphics]</span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;">image_offsetY:1 </span><span style="color:#676E95;font-style:italic;"># 偏移量为 1</span></span></code></pre></div><h3 id="isvisible" tabindex="-1">isVisible <a class="header-anchor" href="#isvisible" aria-label="Permalink to "isVisible""></a></h3><h4 id="isvisible-代码简介" tabindex="-1">isVisible-代码简介 <a class="header-anchor" href="#isvisible-代码简介" aria-label="Permalink to "isVisible-代码简介""></a></h4><p>代码:isVisible 中文释义:可见 类型:逻辑布尔值</p><h4 id="isvisible-用法" tabindex="-1">isVisible-用法 <a class="header-anchor" href="#isvisible-用法" aria-label="Permalink to "isVisible-用法""></a></h4><p>填写布尔值或逻辑判断语句,作用于全部图像,会决定单位图像是否可见。</p><div class="info custom-block"><p class="custom-block-title">INFO</p><p>默认值为true。<br> 即使图像隐藏,在小地图上还是可以看见的。</p></div><h4 id="isvisible-示例" tabindex="-1">isVisible-示例 <a class="header-anchor" href="#isvisible-示例" aria-label="Permalink to "isVisible-示例""></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;">[graphics]</span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;">isVisible:false </span><span style="color:#676E95;font-style:italic;"># 使用布尔值</span></span>
|
||||
<span class="line"></span>
|
||||
<span class="line"><span style="color:#89DDFF;">[graphics]</span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;">isVisible:if self.hp() > 200 </span><span style="color:#676E95;font-style:italic;"># 使用逻辑语句</span></span></code></pre></div><h3 id="isvisibletoenemies" tabindex="-1">isVisibleToEnemies <a class="header-anchor" href="#isvisibletoenemies" aria-label="Permalink to "isVisibleToEnemies""></a></h3><h4 id="isvisibletoenemies-代码简介" tabindex="-1">isVisibleToEnemies-代码简介 <a class="header-anchor" href="#isvisibletoenemies-代码简介" aria-label="Permalink to "isVisibleToEnemies-代码简介""></a></h4><p>代码:isVisibleToEnemies 中文释义:对敌人可见 类型:逻辑布尔值</p><h4 id="isvisibletoenemies-用法" tabindex="-1">isVisibleToEnemies-用法 <a class="header-anchor" href="#isvisibletoenemies-用法" aria-label="Permalink to "isVisibleToEnemies-用法""></a></h4><p>填写布尔值或逻辑判断语句,作用于全部图像,会决定单位图像是否被敌人可见。</p><div class="info custom-block"><p class="custom-block-title">INFO</p><p>与showOnMinimapToEnemies,canOnlyBeAttackedByUnitsWithTags一起使用时,可以创建隐形系统。<br> (抄自HX代码表)</p></div><h4 id="isvisibletoenemies-示例" tabindex="-1">isVisibleToEnemies-示例 <a class="header-anchor" href="#isvisibletoenemies-示例" aria-label="Permalink to "isVisibleToEnemies-示例""></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;">[graphics]</span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;">isVisibleToEnemies:false </span><span style="color:#676E95;font-style:italic;"># 使用布尔值</span></span>
|
||||
<span class="line"></span>
|
||||
<span class="line"><span style="color:#89DDFF;">[graphics]</span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;">isVisibleToEnemies:if self.hp() > 200 </span><span style="color:#676E95;font-style:italic;"># 使用逻辑语句</span></span></code></pre></div><h3 id="teamcolorsusehue" tabindex="-1">teamColorsUseHue <a class="header-anchor" href="#teamcolorsusehue" aria-label="Permalink to "teamColorsUseHue""></a></h3><h4 id="teamcolorsusehue-代码简介" tabindex="-1">teamColorsUseHue-代码简介 <a class="header-anchor" href="#teamcolorsusehue-代码简介" aria-label="Permalink to "teamColorsUseHue-代码简介""></a></h4><p>代码:teamColorsUseHue 中文释义:阵营色色相 类型:布尔值</p><h4 id="teamcolorsusehue-用法" tabindex="-1">teamColorsUseHue-用法 <a class="header-anchor" href="#teamcolorsusehue-用法" aria-label="Permalink to "teamColorsUseHue-用法""></a></h4><p>填写布尔值决定如何使用,大概就是在单位主体图像上附着一层半透明的阵营色滤镜。</p><div class="info custom-block"><p class="custom-block-title">INFO</p><p>默认为false。</p></div><h4 id="teamcolorsusehue-示例" tabindex="-1">teamColorsUseHue-示例 <a class="header-anchor" href="#teamcolorsusehue-示例" aria-label="Permalink to "teamColorsUseHue-示例""></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;">[graphics]</span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;">teamColorsUseHue:true </span><span style="color:#676E95;font-style:italic;"># 使用布尔值</span></span></code></pre></div><h3 id="teamcoloringmode" tabindex="-1">teamColoringMode <a class="header-anchor" href="#teamcoloringmode" aria-label="Permalink to "teamColoringMode""></a></h3><h4 id="teamcoloringmode-代码简介" tabindex="-1">teamColoringMode-代码简介 <a class="header-anchor" href="#teamcoloringmode-代码简介" aria-label="Permalink to "teamColoringMode-代码简介""></a></h4><p>代码:teamColoringMode 中文释义:阵营色模式 类型:字符串</p><h4 id="teamcolorsusehue-用法-1" tabindex="-1">teamColorsUseHue-用法 <a class="header-anchor" href="#teamcolorsusehue-用法-1" aria-label="Permalink to "teamColorsUseHue-用法""></a></h4><p>填写对应的字符串选择图像的着色逻辑。</p><div class="tip custom-block"><p class="custom-block-title">TIP</p><p>默认是纯绿,即pureGreen。<br> 一共有disabled、hueShift、hueAdd、pureGreen,四种模式。<br> 中文便是,禁用,色相偏移,色相添加,纯绿。</p></div><h4 id="teamcoloringmode-示例" tabindex="-1">teamColoringMode-示例 <a class="header-anchor" href="#teamcoloringmode-示例" aria-label="Permalink to "teamColoringMode-示例""></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;">[graphics]</span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;">teamColoringMode:disabled </span><span style="color:#676E95;font-style:italic;"># 禁用 会使单位不使用阵营色</span></span>
|
||||
<span class="line"></span>
|
||||
<span class="line"><span style="color:#89DDFF;">[graphics]</span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;">teamColoringMode:hueShift </span><span style="color:#676E95;font-style:italic;"># 色相偏移 颜色会影响周围其他像素的着色</span></span>
|
||||
<span class="line"></span>
|
||||
<span class="line"><span style="color:#89DDFF;">[graphics]</span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;">teamColoringMode:hueShift </span><span style="color:#676E95;font-style:italic;"># 色相添加 像极了使用teamColorsUseHue,加了一层颜色滤镜</span></span>
|
||||
<span class="line"></span>
|
||||
<span class="line"><span style="color:#89DDFF;">[graphics]</span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;">teamColoringMode:pureGreen </span><span style="color:#676E95;font-style:italic;"># 纯绿 默认就是这个</span></span></code></pre></div><h3 id="scaleimagesto" tabindex="-1">scaleImagesTo <a class="header-anchor" href="#scaleimagesto" aria-label="Permalink to "scaleImagesTo""></a></h3><h4 id="scaleimagesto-代码简介" tabindex="-1">scaleImagesTo-代码简介 <a class="header-anchor" href="#scaleimagesto-代码简介" aria-label="Permalink to "scaleImagesTo-代码简介""></a></h4><p>代码:scaleImagesTo 中文释义:图像缩放到 类型:浮点数</p><h4 id="scaleimagesto-用法" tabindex="-1">scaleImagesTo-用法 <a class="header-anchor" href="#scaleimagesto-用法" aria-label="Permalink to "scaleImagesTo-用法""></a></h4><p>填写单位像素以缩放图像,同时影响腿部和阴影图像。</p><div class="tip custom-block"><p class="custom-block-title">TIP</p><p>这里的像素大小指的是每帧图像宽度的像素大小。<br> 例如图像原每帧宽度12,这里填24,图像将被等比例放大2倍。</p></div><h4 id="scaleimagesto-示例" tabindex="-1">scaleImagesTo-示例 <a class="header-anchor" href="#scaleimagesto-示例" aria-label="Permalink to "scaleImagesTo-示例""></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;">[graphics]</span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;">scaleImagesTo:12.5</span></span></code></pre></div>`,92),o=[n];function t(c,p,r,h,m,d){return e(),s("div",null,o)}const u=a(l,[["render",t]]);export{b as __pageData,u as default};
|
|
@ -1 +1 @@
|
|||
import{_ as a,c as s,o as e,V as i}from"./chunks/framework.fcc0bf38.js";const b=JSON.parse('{"title":"[graphics]图像组","description":"","frontmatter":{"outline":"deep"},"headers":[],"relativePath":"src/Unit/graphics.md","filePath":"src/Unit/graphics.md"}'),l={name:"src/Unit/graphics.md"},n=i("",36),c=[n];function p(t,o,r,h,g,m){return e(),s("div",null,c)}const k=a(l,[["render",p]]);export{b as __pageData,k as default};
|
||||
import{_ as a,c as s,o as e,V as i}from"./chunks/framework.fcc0bf38.js";const b=JSON.parse('{"title":"[graphics]图像组","description":"","frontmatter":{"outline":"deep"},"headers":[],"relativePath":"src/Unit/graphics.md","filePath":"src/Unit/graphics.md"}'),l={name:"src/Unit/graphics.md"},n=i("",92),o=[n];function t(c,p,r,h,m,d){return e(),s("div",null,o)}const u=a(l,[["render",t]]);export{b as __pageData,u as default};
|
File diff suppressed because one or more lines are too long
|
@ -1,2 +1,2 @@
|
|||
import{_ as n,c,I as s,E as l,a as e,C as o,V as t,J as i,o as d}from"./chunks/framework.fcc0bf38.js";const ge=JSON.parse('{"title":"[LogicBoolean] 逻辑序列组","description":"","frontmatter":{"outline":"deep"},"headers":[],"relativePath":"src/Unit/loginboolean.md","filePath":"src/Unit/loginboolean.md"}'),r={name:"src/Unit/loginboolean.md"},p=t("",4),u=o("code",null,"boolean",-1),f=t("",22),h={class:"tip custom-block"},_=o("p",{class:"custom-block-title"},"TIP",-1),m=t("",6),b={class:"tip custom-block"},g=o("p",{class:"custom-block-title"},"TIP",-1),y=o("br",null,null,-1),T=t("",4),A={class:"tip custom-block"},C=o("p",{class:"custom-block-title"},"TIP",-1),D=o("h4",{id:"非",tabindex:"-1"},[e("非 "),o("a",{class:"header-anchor",href:"#非","aria-label":'Permalink to "非"'},"")],-1),v=o("p",null,[e("代码:not 中文释义:非"),o("br")],-1),q={class:"tip custom-block"},I=o("p",{class:"custom-block-title"},"TIP",-1),k=o("code",null,"true",-1),F=o("code",null,"false",-1),P=o("code",null,"false",-1),U=o("code",null,"true",-1),O={class:"info custom-block"},S=o("p",{class:"custom-block-title"},"INFO",-1),x=o("code",null,"not>and>or",-1),E=o("br",null,null,-1),N=t("",7),R={class:"info custom-block"},V=o("p",{class:"custom-block-title"},"INFO",-1),w=t("",5),B={class:"info custom-block"},M=o("p",{class:"custom-block-title"},"INFO",-1),W=o("br",null,null,-1),L=t("",22),Q={class:"info custom-block"},G=o("p",{class:"custom-block-title"},"INFO",-1),Y=t("",9),$={class:"info custom-block"},H=o("p",{class:"custom-block-title"},"INFO",-1),j=t("",13),z=o("code",null,"self.hasFlag()",-1),J=o("code",null,"self.hasFlag(id=数字)",-1),Z={class:"info custom-block"},K=o("p",{class:"custom-block-title"},"INFO",-1),X=o("br",null,null,-1),ee=t("",10),oe={class:"info custom-block"},ae=o("p",{class:"custom-block-title"},"INFO",-1),se=t("",24),le={class:"danger custom-block"},te=o("p",{class:"custom-block-title"},"DANGER",-1),ne=o("p",null,[o("a",{href:"https://www.bilibili.com/video/BV17v4y1r7dV",target:"_blank",rel:"noreferrer"},"https://www.bilibili.com/video/BV17v4y1r7dV"),e(" (感谢十山月)")],-1),ce=o("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),ie=t("",1),de=t("",2);function re(pe,ue,fe,he,_e,me){const a=i("font");return d(),c("div",null,[p,s(a,{color:"orange"},{default:l(()=>[e("布尔值")]),_:1}),e("表达“真(true)”或“假(false)”的一个状态。在铁锈中,布尔值("),u,e(")被运用于逻辑判断。"),f,o("div",h,[_,o("p",null,[e("请注意,铁锈中等于的符号为"),s(a,{color:"orange"},{default:l(()=>[e("==")]),_:1}),e(","),s(a,{color:"orange"},{default:l(()=>[e("=")]),_:1}),e("在铁锈中用于赋值或参数。")])]),m,o("div",b,[g,s(a,{color:"orange"},{default:l(()=>[e("and")]),_:1}),e("用于连接两个逻辑判断,只有在这两个逻辑判断的值都为"),s(a,{color:"orange"},{default:l(()=>[e("true")]),_:1}),e("时,"),s(a,{color:"orange"},{default:l(()=>[e("and")]),_:1}),e("的值才为true。"),y]),T,o("div",A,[C,s(a,{color:"orange"},{default:l(()=>[e("or")]),_:1}),e("用于连接两个逻辑判断,只要这两个逻辑判断的值有一个为"),s(a,{color:"orange"},{default:l(()=>[e("true")]),_:1}),e("时,"),s(a,{color:"orange"},{default:l(()=>[e("or")]),_:1}),e("的值就为true。")]),D,v,o("div",q,[I,s(a,{color:"orange"},{default:l(()=>[e("not")]),_:1}),e("用于将某个逻辑判断的值取反,即"),k,e("变"),F,e(","),P,e("变"),U,e("。")]),o("div",O,[S,o("p",null,[e("多个逻辑运算符同时使用时,优先级为"),x,e(",同时"),s(a,{color:"orange"},{default:l(()=>[e("支持使用括号改变运算优先级")]),_:1}),e("。 "),E,e("推荐"),s(a,{color:"orange"},{default:l(()=>[e("在不确定优先级时打括号")]),_:1}),e("。")])]),N,o("div",R,[V,o("p",null,[e("不同数据类型通常"),s(a,{color:"orange"},{default:l(()=>[e("不能直接进行算数运算")]),_:1}),e(",但在部分情况下,"),s(a,{color:"orange"},{default:l(()=>[e("number")]),_:1}),e("和"),s(a,{color:"orange"},{default:l(()=>[e("float")]),_:1}),e("类型可以混用(建议"),s(a,{color:"orange"},{default:l(()=>[e("所有数值全部使用float")]),_:1}),e("来避免混淆)。")])]),w,o("div",B,[M,o("p",null,[e("对于"),s(a,{color:"orange"},{default:l(()=>[e("不满足交换律的运算符")]),_:1}),e(",需要注意"),s(a,{color:"orange"},{default:l(()=>[e("运算优先级")]),_:1}),e("是否正确。由于铁锈本身bug,"),s(a,{color:"orange"},{default:l(()=>[e("在数学上正确的优先级不一定在铁锈中正确")]),_:1}),e(",因此可能出现减法顺序混乱等问题。 "),W,e("为了避免可能的问题,请尽量在任何"),s(a,{color:"orange"},{default:l(()=>[e("不满足交换律的运算符")]),_:1}),e("两边打上括号。")])]),L,o("div",Q,[G,o("p",null,[e("引用资源时,请确保"),s(a,{color:"orange"},{default:l(()=>[e("这个资源在这个单位定义过")]),_:1}),e(",否则会报错。")])]),Y,o("div",$,[H,o("p",null,[e("单位计时部分能返回到最小时间精度为"),s(a,{color:"orange"},{default:l(()=>[e("0.1秒")]),_:1}),e("。")])]),j,o("p",null,[z,e("用于获取自身是否有"),s(a,{color:"orange"},{default:l(()=>[e("标志")]),_:1}),e(",格式为"),J,e("。")]),o("div",Z,[K,o("p",null,[e("不同于"),s(a,{color:"orange"},{default:l(()=>[e("标签(tag)")]),_:1}),e(","),s(a,{color:"orange"},{default:l(()=>[e("标志(flag)")]),_:1}),e("是内置的一些"),s(a,{color:"orange"},{default:l(()=>[e("布尔值")]),_:1}),e(",无需定义即可直接使用。"),X]),o("blockquote",null,[o("p",null,[e("标签的添加方法为"),s(a,{color:"orange"},{default:l(()=>[e("[action]addResource:flag=1,3-7,13")]),_:1}),e(",且只支持"),s(a,{color:"orange"},{default:l(()=>[e("0-31")]),_:1}),e(",标签的移除方法与之相反。")])])]),ee,o("div",oe,[ae,o("p",null,[e("路径点类型可以是"),s(a,{color:"orange"},{default:l(()=>[e("move, attackMove, guard, loadInto, loadUp, attack, reclaim, repair, touchTarget, build, follow, setPassiveTarget")]),_:1}),e("。")])]),se,o("div",le,[te,o("p",null,[e("在"),s(a,{color:"orange"},{default:l(()=>[e("跨单位读取数组")]),_:1}),e("时,如果下标使用了逻辑,无论逻辑值都会返回第零项,")]),s(a,{color:"orange"},{default:l(()=>[e("为游戏bug")]),_:1}),e(",解决方法可以参考:"),ne,ce,ie]),de])}const ye=n(r,[["render",re]]);export{ge as __pageData,ye as default};
|
||||
import{_ as n,c,I as s,E as l,a as e,C as o,V as t,J as i,o as d}from"./chunks/framework.fcc0bf38.js";const ge=JSON.parse('{"title":"[LogicBoolean] 逻辑序列组","description":"","frontmatter":{"outline":"deep"},"headers":[],"relativePath":"src/Unit/loginboolean.md","filePath":"src/Unit/loginboolean.md"}'),r={name:"src/Unit/loginboolean.md"},p=t("",4),u=o("code",null,"boolean",-1),h=t("",22),f={class:"tip custom-block"},_=o("p",{class:"custom-block-title"},"TIP",-1),m=t("",6),b={class:"tip custom-block"},g=o("p",{class:"custom-block-title"},"TIP",-1),y=o("br",null,null,-1),T=t("",4),A={class:"tip custom-block"},C=o("p",{class:"custom-block-title"},"TIP",-1),D=o("h4",{id:"非",tabindex:"-1"},[e("非 "),o("a",{class:"header-anchor",href:"#非","aria-label":'Permalink to "非"'},"")],-1),v=o("p",null,[e("代码:not 中文释义:非"),o("br")],-1),q={class:"tip custom-block"},k=o("p",{class:"custom-block-title"},"TIP",-1),I=o("code",null,"true",-1),F=o("code",null,"false",-1),P=o("code",null,"false",-1),U=o("code",null,"true",-1),S={class:"info custom-block"},O=o("p",{class:"custom-block-title"},"INFO",-1),x=o("code",null,"not>and>or",-1),E=o("br",null,null,-1),R=t("",7),N={class:"info custom-block"},V=o("p",{class:"custom-block-title"},"INFO",-1),w=t("",5),B={class:"info custom-block"},M=o("p",{class:"custom-block-title"},"INFO",-1),W=o("br",null,null,-1),Q=t("",22),G={class:"info custom-block"},L=o("p",{class:"custom-block-title"},"INFO",-1),Y=t("",9),J={class:"info custom-block"},$=o("p",{class:"custom-block-title"},"INFO",-1),H=t("",13),z=o("code",null,"self.hasFlag()",-1),K=o("code",null,"self.hasFlag(id=数字)",-1),Z={class:"info custom-block"},X=o("p",{class:"custom-block-title"},"INFO",-1),j=o("br",null,null,-1),ee=t("",10),oe={class:"info custom-block"},ae=o("p",{class:"custom-block-title"},"INFO",-1),se=t("",24),le={class:"danger custom-block"},te=o("p",{class:"custom-block-title"},"DANGER",-1),ne=o("p",null,[o("a",{href:"https://www.bilibili.com/video/BV17v4y1r7dV",target:"_blank",rel:"noreferrer"},"https://www.bilibili.com/video/BV17v4y1r7dV"),e(" (感谢十山月)")],-1),ce=o("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),ie=t("",1),de=t("",2);function re(pe,ue,he,fe,_e,me){const a=i("font");return d(),c("div",null,[p,s(a,{color:"orange"},{default:l(()=>[e("布尔值")]),_:1}),e("表达“真(true)”或“假(false)”的一个状态。在铁锈中,布尔值("),u,e(")被运用于逻辑判断。"),h,o("div",f,[_,o("p",null,[e("请注意,铁锈中等于的符号为"),s(a,{color:"orange"},{default:l(()=>[e("==")]),_:1}),e(","),s(a,{color:"orange"},{default:l(()=>[e("=")]),_:1}),e("在铁锈中用于赋值或参数。")])]),m,o("div",b,[g,s(a,{color:"orange"},{default:l(()=>[e("and")]),_:1}),e("用于连接两个逻辑判断,只有在这两个逻辑判断的值都为"),s(a,{color:"orange"},{default:l(()=>[e("true")]),_:1}),e("时,"),s(a,{color:"orange"},{default:l(()=>[e("and")]),_:1}),e("的值才为true。"),y]),T,o("div",A,[C,s(a,{color:"orange"},{default:l(()=>[e("or")]),_:1}),e("用于连接两个逻辑判断,只要这两个逻辑判断的值有一个为"),s(a,{color:"orange"},{default:l(()=>[e("true")]),_:1}),e("时,"),s(a,{color:"orange"},{default:l(()=>[e("or")]),_:1}),e("的值就为true。")]),D,v,o("div",q,[k,s(a,{color:"orange"},{default:l(()=>[e("not")]),_:1}),e("用于将某个逻辑判断的值取反,即"),I,e("变"),F,e(","),P,e("变"),U,e("。")]),o("div",S,[O,o("p",null,[e("多个逻辑运算符同时使用时,优先级为"),x,e(",同时"),s(a,{color:"orange"},{default:l(()=>[e("支持使用括号改变运算优先级")]),_:1}),e("。 "),E,e("推荐"),s(a,{color:"orange"},{default:l(()=>[e("在不确定优先级时打括号")]),_:1}),e("。")])]),R,o("div",N,[V,o("p",null,[e("不同数据类型通常"),s(a,{color:"orange"},{default:l(()=>[e("不能直接进行算数运算")]),_:1}),e(",但在部分情况下,"),s(a,{color:"orange"},{default:l(()=>[e("number")]),_:1}),e("和"),s(a,{color:"orange"},{default:l(()=>[e("float")]),_:1}),e("类型可以混用(建议"),s(a,{color:"orange"},{default:l(()=>[e("所有数值全部使用float")]),_:1}),e("来避免混淆)。")])]),w,o("div",B,[M,o("p",null,[e("对于"),s(a,{color:"orange"},{default:l(()=>[e("不满足交换律的运算符")]),_:1}),e(",需要注意"),s(a,{color:"orange"},{default:l(()=>[e("运算优先级")]),_:1}),e("是否正确。由于铁锈本身bug,"),s(a,{color:"orange"},{default:l(()=>[e("在数学上正确的优先级不一定在铁锈中正确")]),_:1}),e(",因此可能出现减法顺序混乱等问题。 "),W,e("为了避免可能的问题,请尽量在任何"),s(a,{color:"orange"},{default:l(()=>[e("不满足交换律的运算符")]),_:1}),e("两边打上括号。")])]),Q,o("div",G,[L,o("p",null,[e("引用资源时,请确保"),s(a,{color:"orange"},{default:l(()=>[e("这个资源在这个单位定义过")]),_:1}),e(",否则会报错。")])]),Y,o("div",J,[$,o("p",null,[e("单位计时部分能返回到最小时间精度为"),s(a,{color:"orange"},{default:l(()=>[e("0.1秒")]),_:1}),e("。")])]),H,o("p",null,[z,e("用于获取自身是否有"),s(a,{color:"orange"},{default:l(()=>[e("标志")]),_:1}),e(",格式为"),K,e("。")]),o("div",Z,[X,o("p",null,[e("不同于"),s(a,{color:"orange"},{default:l(()=>[e("标签(tag)")]),_:1}),e(","),s(a,{color:"orange"},{default:l(()=>[e("标志(flag)")]),_:1}),e("是内置的一些"),s(a,{color:"orange"},{default:l(()=>[e("布尔值")]),_:1}),e(",无需定义即可直接使用。"),j]),o("blockquote",null,[o("p",null,[e("标签的添加方法为"),s(a,{color:"orange"},{default:l(()=>[e("[action]addResource:flag=1,3-7,13")]),_:1}),e(",且只支持"),s(a,{color:"orange"},{default:l(()=>[e("0-31")]),_:1}),e(",标签的移除方法与之相反。")])])]),ee,o("div",oe,[ae,o("p",null,[e("路径点类型可以是"),s(a,{color:"orange"},{default:l(()=>[e("move, attackMove, guard, loadInto, loadUp, attack, reclaim, repair, touchTarget, build, follow, setPassiveTarget")]),_:1}),e("。")])]),se,o("div",le,[te,o("p",null,[e("在"),s(a,{color:"orange"},{default:l(()=>[e("跨单位读取数组")]),_:1}),e("时,如果下标使用了逻辑,无论逻辑值都会返回第零项,")]),s(a,{color:"orange"},{default:l(()=>[e("为游戏bug")]),_:1}),e(",解决方法可以参考:"),ne,ce,ie]),de])}const ye=n(r,[["render",re]]);export{ge as __pageData,ye as default};
|
|
@ -1 +1 @@
|
|||
{"src_map_tsada.md":"95d6f1dd","src_debug_test.md":"501f237e","api-dev.md":"0a3ae762","src_unit_loginboolean.md":"1e3da8cb","src_unit_graphics.md":"79ebfee0","src_unit_canbuild.md":"69e28850","index.md":"06b32d05","src_unit_core.md":"a24f8008"}
|
||||
{"src_map_tsada.md":"95d6f1dd","index.md":"06b32d05","src_unit_core.md":"5b1af198","src_unit_canbuild.md":"73220d4a","api-dev.md":"0a3ae762","src_unit_graphics.md":"8b2546fa","src_debug_test.md":"501f237e","src_unit_loginboolean.md":"285eb6af"}
|
||||
|
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue
Block a user