Compare commits
86 Commits
Author | SHA1 | Date | |
---|---|---|---|
|
54320e29cc | ||
e738d7f395 | |||
|
685364d00e | ||
|
22fe216d44 | ||
|
9e2f1ca7db | ||
|
01fa7f37b3 | ||
|
caeda7b2c8 | ||
|
40a60933b0 | ||
|
0a6e0baefa | ||
|
5665cdce69 | ||
|
4997a86b6a | ||
|
28d5dda863 | ||
|
32d8095bb6 | ||
|
a194fab8c3 | ||
|
7ebf095cb9 | ||
|
8cd5e55eb4 | ||
|
fbcd5311f2 | ||
|
40fcb1a848 | ||
|
b872216e08 | ||
|
01aefac5ca | ||
|
782338f81a | ||
|
96bcd0c0b5 | ||
|
f8a46bbc35 | ||
|
c6ddc85ed5 | ||
|
96e83c97fa | ||
|
2d0ad1d3e9 | ||
|
50691cd4e8 | ||
|
24b07b3bfd | ||
|
1cae19dc59 | ||
|
20b8be05d4 | ||
|
8257bd7b30 | ||
|
a2af40d9b9 | ||
|
f3fd613945 | ||
|
a7cfe573c8 | ||
|
16d5ba9b21 | ||
|
55a4934caf | ||
|
abc32b91d4 | ||
|
47373dd927 | ||
|
f9a0c0b6f3 | ||
|
82ec457169 | ||
|
c4f32c501e | ||
|
076a4c2b00 | ||
|
436c1d82ee | ||
|
692a6c29a8 | ||
|
0903c60d64 | ||
|
65b507ef3d | ||
|
1d98d799cc | ||
|
c2151024c9 | ||
|
f11056b05c | ||
6cb5bf495e | |||
|
203861b2bf | ||
|
accef5e3d1 | ||
|
d3278fa713 | ||
|
f860c467d9 | ||
|
5d029abe40 | ||
|
a9d95a351d | ||
|
df0efcd643 | ||
|
daff3fe611 | ||
|
5aa8e2bcf8 | ||
|
dc5e4b9c41 | ||
|
3726e28d2e | ||
|
859e2dff19 | ||
|
66ede6c28e | ||
|
186fc48f14 | ||
|
3d2a70aad9 | ||
|
b5f7a29032 | ||
|
2134bcaa20 | ||
|
411a7ccc41 | ||
|
077f72569c | ||
|
2f43504c76 | ||
|
00fa4ca984 | ||
|
931c8e795d | ||
|
e904944e05 | ||
|
f49805797c | ||
|
6248f2df53 | ||
|
a67dd207aa | ||
|
8fde9e32c1 | ||
|
408a01bfab | ||
|
a7f3e91086 | ||
|
1bc9eb4aca | ||
|
1fbc76b92a | ||
|
6306a12bdd | ||
fa929a0189 | |||
|
56f02f55e9 | ||
e15cff2d4d | |||
cc5cc59b2c |
201
LICENSE
|
@ -1,201 +0,0 @@
|
|||
Apache License
|
||||
Version 2.0, January 2004
|
||||
http://www.apache.org/licenses/
|
||||
|
||||
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
||||
|
||||
1. Definitions.
|
||||
|
||||
"License" shall mean the terms and conditions for use, reproduction,
|
||||
and distribution as defined by Sections 1 through 9 of this document.
|
||||
|
||||
"Licensor" shall mean the copyright owner or entity authorized by
|
||||
the copyright owner that is granting the License.
|
||||
|
||||
"Legal Entity" shall mean the union of the acting entity and all
|
||||
other entities that control, are controlled by, or are under common
|
||||
control with that entity. For the purposes of this definition,
|
||||
"control" means (i) the power, direct or indirect, to cause the
|
||||
direction or management of such entity, whether by contract or
|
||||
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
||||
outstanding shares, or (iii) beneficial ownership of such entity.
|
||||
|
||||
"You" (or "Your") shall mean an individual or Legal Entity
|
||||
exercising permissions granted by this License.
|
||||
|
||||
"Source" form shall mean the preferred form for making modifications,
|
||||
including but not limited to software source code, documentation
|
||||
source, and configuration files.
|
||||
|
||||
"Object" form shall mean any form resulting from mechanical
|
||||
transformation or translation of a Source form, including but
|
||||
not limited to compiled object code, generated documentation,
|
||||
and conversions to other media types.
|
||||
|
||||
"Work" shall mean the work of authorship, whether in Source or
|
||||
Object form, made available under the License, as indicated by a
|
||||
copyright notice that is included in or attached to the work
|
||||
(an example is provided in the Appendix below).
|
||||
|
||||
"Derivative Works" shall mean any work, whether in Source or Object
|
||||
form, that is based on (or derived from) the Work and for which the
|
||||
editorial revisions, annotations, elaborations, or other modifications
|
||||
represent, as a whole, an original work of authorship. For the purposes
|
||||
of this License, Derivative Works shall not include works that remain
|
||||
separable from, or merely link (or bind by name) to the interfaces of,
|
||||
the Work and Derivative Works thereof.
|
||||
|
||||
"Contribution" shall mean any work of authorship, including
|
||||
the original version of the Work and any modifications or additions
|
||||
to that Work or Derivative Works thereof, that is intentionally
|
||||
submitted to Licensor for inclusion in the Work by the copyright owner
|
||||
or by an individual or Legal Entity authorized to submit on behalf of
|
||||
the copyright owner. For the purposes of this definition, "submitted"
|
||||
means any form of electronic, verbal, or written communication sent
|
||||
to the Licensor or its representatives, including but not limited to
|
||||
communication on electronic mailing lists, source code control systems,
|
||||
and issue tracking systems that are managed by, or on behalf of, the
|
||||
Licensor for the purpose of discussing and improving the Work, but
|
||||
excluding communication that is conspicuously marked or otherwise
|
||||
designated in writing by the copyright owner as "Not a Contribution."
|
||||
|
||||
"Contributor" shall mean Licensor and any individual or Legal Entity
|
||||
on behalf of whom a Contribution has been received by Licensor and
|
||||
subsequently incorporated within the Work.
|
||||
|
||||
2. Grant of Copyright License. Subject to the terms and conditions of
|
||||
this License, each Contributor hereby grants to You a perpetual,
|
||||
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
||||
copyright license to reproduce, prepare Derivative Works of,
|
||||
publicly display, publicly perform, sublicense, and distribute the
|
||||
Work and such Derivative Works in Source or Object form.
|
||||
|
||||
3. Grant of Patent License. Subject to the terms and conditions of
|
||||
this License, each Contributor hereby grants to You a perpetual,
|
||||
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
||||
(except as stated in this section) patent license to make, have made,
|
||||
use, offer to sell, sell, import, and otherwise transfer the Work,
|
||||
where such license applies only to those patent claims licensable
|
||||
by such Contributor that are necessarily infringed by their
|
||||
Contribution(s) alone or by combination of their Contribution(s)
|
||||
with the Work to which such Contribution(s) was submitted. If You
|
||||
institute patent litigation against any entity (including a
|
||||
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
||||
or a Contribution incorporated within the Work constitutes direct
|
||||
or contributory patent infringement, then any patent licenses
|
||||
granted to You under this License for that Work shall terminate
|
||||
as of the date such litigation is filed.
|
||||
|
||||
4. Redistribution. You may reproduce and distribute copies of the
|
||||
Work or Derivative Works thereof in any medium, with or without
|
||||
modifications, and in Source or Object form, provided that You
|
||||
meet the following conditions:
|
||||
|
||||
(a) You must give any other recipients of the Work or
|
||||
Derivative Works a copy of this License; and
|
||||
|
||||
(b) You must cause any modified files to carry prominent notices
|
||||
stating that You changed the files; and
|
||||
|
||||
(c) You must retain, in the Source form of any Derivative Works
|
||||
that You distribute, all copyright, patent, trademark, and
|
||||
attribution notices from the Source form of the Work,
|
||||
excluding those notices that do not pertain to any part of
|
||||
the Derivative Works; and
|
||||
|
||||
(d) If the Work includes a "NOTICE" text file as part of its
|
||||
distribution, then any Derivative Works that You distribute must
|
||||
include a readable copy of the attribution notices contained
|
||||
within such NOTICE file, excluding those notices that do not
|
||||
pertain to any part of the Derivative Works, in at least one
|
||||
of the following places: within a NOTICE text file distributed
|
||||
as part of the Derivative Works; within the Source form or
|
||||
documentation, if provided along with the Derivative Works; or,
|
||||
within a display generated by the Derivative Works, if and
|
||||
wherever such third-party notices normally appear. The contents
|
||||
of the NOTICE file are for informational purposes only and
|
||||
do not modify the License. You may add Your own attribution
|
||||
notices within Derivative Works that You distribute, alongside
|
||||
or as an addendum to the NOTICE text from the Work, provided
|
||||
that such additional attribution notices cannot be construed
|
||||
as modifying the License.
|
||||
|
||||
You may add Your own copyright statement to Your modifications and
|
||||
may provide additional or different license terms and conditions
|
||||
for use, reproduction, or distribution of Your modifications, or
|
||||
for any such Derivative Works as a whole, provided Your use,
|
||||
reproduction, and distribution of the Work otherwise complies with
|
||||
the conditions stated in this License.
|
||||
|
||||
5. Submission of Contributions. Unless You explicitly state otherwise,
|
||||
any Contribution intentionally submitted for inclusion in the Work
|
||||
by You to the Licensor shall be under the terms and conditions of
|
||||
this License, without any additional terms or conditions.
|
||||
Notwithstanding the above, nothing herein shall supersede or modify
|
||||
the terms of any separate license agreement you may have executed
|
||||
with Licensor regarding such Contributions.
|
||||
|
||||
6. Trademarks. This License does not grant permission to use the trade
|
||||
names, trademarks, service marks, or product names of the Licensor,
|
||||
except as required for reasonable and customary use in describing the
|
||||
origin of the Work and reproducing the content of the NOTICE file.
|
||||
|
||||
7. Disclaimer of Warranty. Unless required by applicable law or
|
||||
agreed to in writing, Licensor provides the Work (and each
|
||||
Contributor provides its Contributions) on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
||||
implied, including, without limitation, any warranties or conditions
|
||||
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
||||
PARTICULAR PURPOSE. You are solely responsible for determining the
|
||||
appropriateness of using or redistributing the Work and assume any
|
||||
risks associated with Your exercise of permissions under this License.
|
||||
|
||||
8. Limitation of Liability. In no event and under no legal theory,
|
||||
whether in tort (including negligence), contract, or otherwise,
|
||||
unless required by applicable law (such as deliberate and grossly
|
||||
negligent acts) or agreed to in writing, shall any Contributor be
|
||||
liable to You for damages, including any direct, indirect, special,
|
||||
incidental, or consequential damages of any character arising as a
|
||||
result of this License or out of the use or inability to use the
|
||||
Work (including but not limited to damages for loss of goodwill,
|
||||
work stoppage, computer failure or malfunction, or any and all
|
||||
other commercial damages or losses), even if such Contributor
|
||||
has been advised of the possibility of such damages.
|
||||
|
||||
9. Accepting Warranty or Additional Liability. While redistributing
|
||||
the Work or Derivative Works thereof, You may choose to offer,
|
||||
and charge a fee for, acceptance of support, warranty, indemnity,
|
||||
or other liability obligations and/or rights consistent with this
|
||||
License. However, in accepting such obligations, You may act only
|
||||
on Your own behalf and on Your sole responsibility, not on behalf
|
||||
of any other Contributor, and only if You agree to indemnify,
|
||||
defend, and hold each Contributor harmless for any liability
|
||||
incurred by, or claims asserted against, such Contributor by reason
|
||||
of your accepting any such warranty or additional liability.
|
||||
|
||||
END OF TERMS AND CONDITIONS
|
||||
|
||||
APPENDIX: How to apply the Apache License to your work.
|
||||
|
||||
To apply the Apache License to your work, attach the following
|
||||
boilerplate notice, with the fields enclosed by brackets "[]"
|
||||
replaced with your own identifying information. (Don't include
|
||||
the brackets!) The text should be enclosed in the appropriate
|
||||
comment syntax for the file format. We also recommend that a
|
||||
file or class name and description of purpose be included on the
|
||||
same "printed page" as the copyright notice for easier
|
||||
identification within third-party archives.
|
||||
|
||||
Copyright [yyyy] [name of copyright owner]
|
||||
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
you may not use this file except in compliance with the License.
|
||||
You may obtain a copy of the License at
|
||||
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
Unless required by applicable law or agreed to in writing, software
|
||||
distributed under the License is distributed on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
61
README.md
|
@ -1,61 +0,0 @@
|
|||
<div align=center>
|
||||
<h1>项目重构优化中,敬请期待</h1>
|
||||
<img src="https://rwapi-code.netlify.app/images/title.png">
|
||||
</div>
|
||||
|
||||
|
||||
# RW-API-Code--Demo 0.1
|
||||
|
||||
|
||||
|
||||
![](https://img.shields.io/badge/language-MarkDown&Node.js-skyblue) ![](https://img.shields.io/github/license/XMuli/QtExamples) ![](https://img.shields.io/badge/powered%20by-Docsity-00ffff)
|
||||
|
||||
![](https://img.shields.io/github/stars/LingASDJ/RW-API-Code?style=social) ![](https://img.shields.io/github/forks/LingASDJ/RW-API-Code?style=social&label=Fork)
|
||||
|
||||
### Netlify Status:
|
||||
[![Netlify Status](https://api.netlify.com/api/v1/badges/0196ec3f-1dd3-420a-be0c-abee4c0a1334/deploy-status)](https://app.netlify.com/sites/rwapi-code/deploys)
|
||||
|
||||
<br>
|
||||
|
||||
## 项目介绍:
|
||||
|
||||
- [x] RustedWarfare-Code 持续更新;
|
||||
|
||||
- [x] 一些额外的其他教程;
|
||||
|
||||
- [x] 在这里学到的不只是RTS-MOD;
|
||||
|
||||
自己所学记录,亦可以互相交流共享学习,<font color=#D0087E size=4 face="幼圆">**有朋自远方互联网而来,不亦悦乎?**</font>
|
||||
|
||||
本项目正在开发……
|
||||
|
||||
## 项目鸣谢人员:
|
||||
> * Tobby3600--合作编辑LogicBoolean组代码
|
||||
> * JDSALing--提供网站编写
|
||||
> * 华夏有衣--提供Excel超级代码表
|
||||
> * Luke-Hoschke--铁锈战争开发者
|
||||
> * Cold_Mint--提供资源高速加载
|
||||
> * 王某人--提供MT基础代码高亮文件
|
||||
> * 十山月--合作编辑Action组代码
|
||||
> * 指挥中心--提供LogicBoolean组代码例子
|
||||
|
||||
## 站点简介:
|
||||
> * 本站点主要提供铁锈战争的代码API教程与指导,皆在为铁锈带来更好的Mod质量。
|
||||
> * 本站点提供--地图Mapping代码表,单位Unit代码表,调试Debug代码表。
|
||||
> * 本站点还会提供更多的其他额外附加教程
|
||||
|
||||
## 开源协议
|
||||
基于Apache License 2.0 协议进行分发和使用,更多信息参见[协议文件](/LICENSE)。
|
||||
|
||||
## 部署策略
|
||||
请优先安装Node.js 16.0以上
|
||||
然后使用以下指令:
|
||||
```bash
|
||||
npm i docsify-cli -g
|
||||
docsify serve docs
|
||||
```
|
||||
|
||||
## 多人协作策略
|
||||
请提交PR,并且说明提交的内容与介绍。
|
||||
有关于文档书写规范,请阅读以下指南:
|
||||
[RTS-Code-API--文档开发指南](https://lingasdj.github.io/RW-API-Code/#/DEV)
|
58
api-dev.html
Normal file
37
assets/api-dev.md.447d3fe1.js
Normal file
|
@ -0,0 +1,37 @@
|
|||
import{_ as e,c as p,C as s,a,I as n,E as o,V as t,J as c,o as r}from"./chunks/framework.fcc0bf38.js";const Q=JSON.parse('{"title":"","description":"","frontmatter":{"outline":"deep"},"headers":[],"relativePath":"api-dev.md","filePath":"api-dev.md"}'),i={name:"api-dev.md"},d=s("div",{style:{display:"flex","align-content":"flex-start","flex-wrap":"nowrap","flex-direction":"row","justify-content":"center"}},[s("h1",null,"RTS-Code-API---开发规范")],-1),u=s("div",{style:{display:"flex","align-content":"flex-start","flex-wrap":"nowrap","flex-direction":"row","justify-content":"center"}},[s("img",{src:"https://rust.coldmint.top/ftp/ling/cdnpng/logo.png"})],-1),h={class:"tip custom-block"},D=s("p",{class:"custom-block-title"},"TIP",-1),_=s("br",null,null,-1),y=s("br",null,null,-1),C=s("br",null,null,-1),b=s("blockquote",null,[s("p",null,[a("1.确保代码的解释通俗易懂,能让新手迅速入门"),s("br"),a("2.编写的代码应该以以下格式进行:")]),s("h3",null,"代码的格式编写规范:"),a("1.代码的英文名和附属信息(参考站点已添加的代码例子)"),s("br")],-1),A=s("p",null,[a("2.代码的简介"),s("br"),a(" 3.代码的要点指示"),s("br"),a(" 4.代码的演示例子"),s("br"),a(" 5.代码的扩展例子(可选)"),s("br"),a(" 6.GIF演示/视频演示(可选)")],-1),m={class:"tip custom-block"},F=s("p",{class:"custom-block-title"},"TIP",-1),g=s("br",null,null,-1),f={class:"warning custom-block"},k=s("p",{class:"custom-block-title"},"WARNING",-1),v=s("div",{class:"warning custom-block"},[s("p",{class:"custom-block-title"},"WARNING"),s("p",null,"有一些代码或许有一些新的写法,或该写法可能已经废弃,如果遇到这些代码,编写者需要注明,并提供推荐代码。")],-1),q={class:"info custom-block"},P=s("p",{class:"custom-block-title"},"INFO",-1),T=t(`<h4 id="其他说明" tabindex="-1">其他说明: <a class="header-anchor" href="#其他说明" aria-label="Permalink to "其他说明:""></a></h4><p>有关于MarkDown的其他书写格式,请参考MD书写规范<br><a href="https://docs.github.com/zh/get-started/writing-on-github/getting-started-with-writing-and-formatting-on-github/basic-writing-and-formatting-syntax" target="_blank" rel="noreferrer">MD文档参考--点我立刻学习</a></p><h4 id="附加说明" tabindex="-1">附加说明: <a class="header-anchor" href="#附加说明" aria-label="Permalink to "附加说明:""></a></h4><div class="language-txt"><button title="Copy Code" class="copy"></button><span class="lang">txt</span><pre class="shiki material-theme-palenight"><code><span class="line"><span style="color:#A6ACCD;">由于插件众多,为避免MD格式冲突,换行建议最好使用<br>进行换行,</span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;">如果要在一些扩展格式渲染演示,请使用<font>标签,</span></span></code></pre></div><h4 id="部署策略" tabindex="-1">部署策略: <a class="header-anchor" href="#部署策略" aria-label="Permalink to "部署策略:""></a></h4><div class="info custom-block"><p class="custom-block-title">INFO</p><p>1.本地部署</p></div>`,6),I={class:"tip custom-block"},w=s("p",{class:"custom-block-title"},"TIP",-1),x=s("br",null,null,-1),N=s("blockquote",null,[s("p",null,[a("npm i docsify-cli -g"),s("br"),a("docsify serve docs")])],-1),E=s("div",{class:"info custom-block"},[s("p",{class:"custom-block-title"},"INFO"),s("p",null,"2.Netlify部署")],-1),S={class:"tip custom-block"},R=s("p",{class:"custom-block-title"},"TIP",-1),V=s("br",null,null,-1),M=s("br",null,null,-1),O=s("br",null,null,-1),G=t(`<h4 id="_1-md扩展格式" tabindex="-1">1.MD扩展格式: <a class="header-anchor" href="#_1-md扩展格式" aria-label="Permalink to "1.MD扩展格式:""></a></h4><div class="language-"><button title="Copy Code" class="copy"></button><span class="lang"></span><pre class="shiki material-theme-palenight"><code><span class="line"><span style="color:#A6ACCD;">::: info</span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;">信息文本</span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;">:::</span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;"></span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;">::: tip</span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;">小提示文本</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;">::: warning</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;">::: danger</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;">::: details</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>
|
||||
<span class="line"><span style="color:#A6ACCD;">::: code-group</span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;">\`\`\`ini{2} [演示例子]</span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;">[action_copyArry]</span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;">RTS-APICODE</span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;"></span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;">可以通过1-4来让1到4行突出显示,</span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;">也可以通过1,4,5来指定行数突出显示</span></span></code></pre></div><h4 id="实际格式演示" tabindex="-1">实际格式演示: <a class="header-anchor" href="#实际格式演示" aria-label="Permalink to "实际格式演示:""></a></h4><div class="tip custom-block"><p class="custom-block-title">TIP</p><p>注意文本</p></div><div class="info custom-block"><p class="custom-block-title">INFO</p><p>信息文本</p></div><div class="tip custom-block"><p class="custom-block-title">TIP</p><p>小提示文本</p></div><div class="warning custom-block"><p class="custom-block-title">WARNING</p><p>警告文本</p></div><div class="danger custom-block"><p class="custom-block-title">DANGER</p><p>危险文本</p></div><details class="details custom-block"><summary>Details</summary><p>这是一个折叠框</p></details><div class="language-ini"><button title="Copy Code" class="copy"></button><span class="lang">ini</span><pre class="shiki material-theme-palenight has-highlighted-lines"><code><span class="line"><span style="color:#89DDFF;">[action_copyArry]</span></span>
|
||||
<span class="line highlighted"><span style="color:#A6ACCD;">RTS-APICODE</span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;">//代码突出演示</span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;">可以通过1-4来让1到4行突出显示,</span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;">也可以通过1,4,5来指定行数突出显示</span></span></code></pre></div><h3 id="_2-媒体插入" tabindex="-1">2.媒体插入 <a class="header-anchor" href="#_2-媒体插入" aria-label="Permalink to "2.媒体插入""></a></h3><h4 id="_1-视频演示-可选" tabindex="-1">1.视频演示---(可选) <a class="header-anchor" href="#_1-视频演示-可选" aria-label="Permalink to "1.视频演示---(可选)""></a></h4>`,12),B=s("iframe",{src:"https://vdse.bdstatic.com//192d9a98d782d9c74c96f09db9378d93.mp4",scrolling:"no",border:"0",frameborder:"no",framespacing:"0",allowfullscreen:"true",width:"100%",height:"400"},`
|
||||
`,-1),$=t(`<div class="language-html"><button title="Copy Code" class="copy"></button><span class="lang">html</span><pre class="shiki material-theme-palenight"><code><span class="line"><span style="color:#89DDFF;"><</span><span style="color:#F07178;">iframe</span><span style="color:#89DDFF;"> </span><span style="color:#C792EA;">src</span><span style="color:#89DDFF;">=</span><span style="color:#89DDFF;">"</span><span style="color:#C3E88D;">视频地址</span><span style="color:#89DDFF;">"</span><span style="color:#89DDFF;"> </span><span style="color:#C792EA;">scrolling</span><span style="color:#89DDFF;">=</span><span style="color:#89DDFF;">"</span><span style="color:#C3E88D;">no</span><span style="color:#89DDFF;">"</span><span style="color:#89DDFF;"> border=</span><span style="color:#89DDFF;">"</span><span style="color:#C3E88D;">0</span><span style="color:#89DDFF;">"</span><span style="color:#89DDFF;"> </span><span style="color:#C792EA;">frameborder</span><span style="color:#89DDFF;">=</span><span style="color:#89DDFF;">"</span><span style="color:#C3E88D;">no</span><span style="color:#89DDFF;">"</span><span style="color:#89DDFF;"> </span><span style="color:#C792EA;">framespacing</span><span style="color:#89DDFF;">=</span><span style="color:#89DDFF;">"</span><span style="color:#C3E88D;">0</span><span style="color:#89DDFF;">"</span><span style="color:#89DDFF;"> </span><span style="color:#C792EA;">allowfullscreen</span><span style="color:#89DDFF;">=</span><span style="color:#89DDFF;">"</span><span style="color:#C3E88D;">true</span><span style="color:#89DDFF;">"</span><span style="color:#89DDFF;"> </span><span style="color:#C792EA;">width</span><span style="color:#89DDFF;">=</span><span style="color:#89DDFF;">"</span><span style="color:#C3E88D;">100%</span><span style="color:#89DDFF;">"</span><span style="color:#89DDFF;"> </span><span style="color:#C792EA;">height</span><span style="color:#89DDFF;">=</span><span style="color:#89DDFF;">"</span><span style="color:#C3E88D;">400</span><span style="color:#89DDFF;">"</span><span style="color:#89DDFF;">></span></span>
|
||||
<span class="line"><span style="color:#89DDFF;"></</span><span style="color:#F07178;">iframe</span><span style="color:#89DDFF;">></span></span></code></pre></div><h4 id="_3-插入表格" tabindex="-1">3.插入表格 <a class="header-anchor" href="#_3-插入表格" aria-label="Permalink to "3.插入表格""></a></h4><h3 id="代码演示" tabindex="-1">代码演示: <a class="header-anchor" href="#代码演示" aria-label="Permalink to "代码演示:""></a></h3><table><thead><tr><th>A</th><th>B</th><th>C</th></tr></thead><tbody><tr><td>1</td><td>2</td><td>3</td></tr></tbody></table><h3 id="代码例子" tabindex="-1">代码例子: <a class="header-anchor" href="#代码例子" aria-label="Permalink to "代码例子:""></a></h3><div class="language-markdown"><button title="Copy Code" class="copy"></button><span class="lang">markdown</span><pre class="shiki material-theme-palenight"><code><span class="line"><span style="color:#A6ACCD;">|A|B|C| </span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;">|-|-|-</span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;">|1|2|3|</span></span></code></pre></div><p>如果你仍然不会Markdown表格写法,这里给你一个链接:</p><h3><a href="https://tableconvert.com/zh-cn/markdown-to-markdown" target="_blank">TableConvert-MD-点击进入</a></h3><h3 id="_4-扩展写法-高级" tabindex="-1">4.扩展写法(高级) <a class="header-anchor" href="#_4-扩展写法-高级" aria-label="Permalink to "4.扩展写法(高级)""></a></h3><p>有一些时候,我们可能需要在已经标记的后面再添加东西, 但Markdown解析方式在标签后面再有一个标签就不会识别了。<br> 所以这里我们必须直接使用原生Html的代码, 通过浏览器的检查元素,你应该能迅速找到模块框架, 将它的模块元素区域复制下来,并调用。</p><div class="tip custom-block"><p class="custom-block-title">TIP</p><p>该文档可能还有很多缺陷,如果你有更好的建议,请发送Issues或者PR给我。</p></div><div class="info custom-block"><p class="custom-block-title">INFO</p><p>编写于2023-5-9 RTS-Code-API[第3版-第3次修订]</p></div>`,12);function j(H,W,z,J,X,K){const l=c("font");return r(),p("div",null,[d,u,s("div",h,[D,s("p",null,[a("0.如果你确定你想"),n(l,{color:"orange"},{default:o(()=>[a("帮忙开发此站点")]),_:1}),a(","),_,a(" 就可以点击右上角的Github按钮,"),n(l,{color:"orange"},{default:o(()=>[a("Clone我们的库")]),_:1}),a(","),y,a(" 编写代码并进行PR申请,我非常感谢你的帮忙,感谢各位的支持与帮助。"),C]),b,A]),s("div",m,[F,s("p",null,[a("使用外部资源时,请使用支持HTTPS协议的资源地址传输。"),g,a(" 否则在"),n(l,{color:"orange"},{default:o(()=>[a("Google Chrome等一系列以CEF的内核")]),_:1}),a("上会因为强制替换HTTPS导致资源无法打开。")])]),s("div",f,[k,s("p",null,[a("不能使用过于高深的说明,严禁出现谜语人话语,无用话语,任何玩梗, 夹带私货等一系列与本站无关的东西,违者将不能通过"),n(l,{color:"green"},{default:o(()=>[a("PR审核")]),_:1})])]),v,s("div",q,[P,s("p",null,[a("为了更好的方便一起编写站点的贡献者,本站点提供了以下的"),n(l,{color:"green"},{default:o(()=>[a("扩展MD格式供各位书写")]),_:1})])]),T,s("div",I,[w,s("p",null,[a("如果要本地测试,请确保设备有"),n(l,{color:"green"},{default:o(()=>[a("Node.js")]),_:1}),a(" 并在项目根目录使用以下命令:"),x]),N]),E,s("div",S,[R,s("p",null,[a("如果你已经发送了PR请求,可以通过我的Netlify预览站点进行预览,"),V,a(" Netlify会在你的PR请求下面显示你的预览页面地址。"),M,a(" 点击"),s("b",null,[n(l,{color:"orange"},{default:o(()=>[a("😎 Deploy Preview后面的链接")]),_:1})]),a("即可看见效果"),O,a(" 由于某些原因,TX会拦截Netlify的站点,请使用浏览器预览。")])]),G,B,$])}const U=e(i,[["render",j]]);export{Q as __pageData,U as default};
|
2
assets/api-dev.md.447d3fe1.lean.js
Normal file
|
@ -0,0 +1,2 @@
|
|||
import{_ as e,c as p,C as s,a,I as n,E as o,V as t,J as c,o as r}from"./chunks/framework.fcc0bf38.js";const Q=JSON.parse('{"title":"","description":"","frontmatter":{"outline":"deep"},"headers":[],"relativePath":"api-dev.md","filePath":"api-dev.md"}'),i={name:"api-dev.md"},d=s("div",{style:{display:"flex","align-content":"flex-start","flex-wrap":"nowrap","flex-direction":"row","justify-content":"center"}},[s("h1",null,"RTS-Code-API---开发规范")],-1),u=s("div",{style:{display:"flex","align-content":"flex-start","flex-wrap":"nowrap","flex-direction":"row","justify-content":"center"}},[s("img",{src:"https://rust.coldmint.top/ftp/ling/cdnpng/logo.png"})],-1),h={class:"tip custom-block"},D=s("p",{class:"custom-block-title"},"TIP",-1),_=s("br",null,null,-1),y=s("br",null,null,-1),C=s("br",null,null,-1),b=s("blockquote",null,[s("p",null,[a("1.确保代码的解释通俗易懂,能让新手迅速入门"),s("br"),a("2.编写的代码应该以以下格式进行:")]),s("h3",null,"代码的格式编写规范:"),a("1.代码的英文名和附属信息(参考站点已添加的代码例子)"),s("br")],-1),A=s("p",null,[a("2.代码的简介"),s("br"),a(" 3.代码的要点指示"),s("br"),a(" 4.代码的演示例子"),s("br"),a(" 5.代码的扩展例子(可选)"),s("br"),a(" 6.GIF演示/视频演示(可选)")],-1),m={class:"tip custom-block"},F=s("p",{class:"custom-block-title"},"TIP",-1),g=s("br",null,null,-1),f={class:"warning custom-block"},k=s("p",{class:"custom-block-title"},"WARNING",-1),v=s("div",{class:"warning custom-block"},[s("p",{class:"custom-block-title"},"WARNING"),s("p",null,"有一些代码或许有一些新的写法,或该写法可能已经废弃,如果遇到这些代码,编写者需要注明,并提供推荐代码。")],-1),q={class:"info custom-block"},P=s("p",{class:"custom-block-title"},"INFO",-1),T=t("",6),I={class:"tip custom-block"},w=s("p",{class:"custom-block-title"},"TIP",-1),x=s("br",null,null,-1),N=s("blockquote",null,[s("p",null,[a("npm i docsify-cli -g"),s("br"),a("docsify serve docs")])],-1),E=s("div",{class:"info custom-block"},[s("p",{class:"custom-block-title"},"INFO"),s("p",null,"2.Netlify部署")],-1),S={class:"tip custom-block"},R=s("p",{class:"custom-block-title"},"TIP",-1),V=s("br",null,null,-1),M=s("br",null,null,-1),O=s("br",null,null,-1),G=t("",12),B=s("iframe",{src:"https://vdse.bdstatic.com//192d9a98d782d9c74c96f09db9378d93.mp4",scrolling:"no",border:"0",frameborder:"no",framespacing:"0",allowfullscreen:"true",width:"100%",height:"400"},`
|
||||
`,-1),$=t("",12);function j(H,W,z,J,X,K){const l=c("font");return r(),p("div",null,[d,u,s("div",h,[D,s("p",null,[a("0.如果你确定你想"),n(l,{color:"orange"},{default:o(()=>[a("帮忙开发此站点")]),_:1}),a(","),_,a(" 就可以点击右上角的Github按钮,"),n(l,{color:"orange"},{default:o(()=>[a("Clone我们的库")]),_:1}),a(","),y,a(" 编写代码并进行PR申请,我非常感谢你的帮忙,感谢各位的支持与帮助。"),C]),b,A]),s("div",m,[F,s("p",null,[a("使用外部资源时,请使用支持HTTPS协议的资源地址传输。"),g,a(" 否则在"),n(l,{color:"orange"},{default:o(()=>[a("Google Chrome等一系列以CEF的内核")]),_:1}),a("上会因为强制替换HTTPS导致资源无法打开。")])]),s("div",f,[k,s("p",null,[a("不能使用过于高深的说明,严禁出现谜语人话语,无用话语,任何玩梗, 夹带私货等一系列与本站无关的东西,违者将不能通过"),n(l,{color:"green"},{default:o(()=>[a("PR审核")]),_:1})])]),v,s("div",q,[P,s("p",null,[a("为了更好的方便一起编写站点的贡献者,本站点提供了以下的"),n(l,{color:"green"},{default:o(()=>[a("扩展MD格式供各位书写")]),_:1})])]),T,s("div",I,[w,s("p",null,[a("如果要本地测试,请确保设备有"),n(l,{color:"green"},{default:o(()=>[a("Node.js")]),_:1}),a(" 并在项目根目录使用以下命令:"),x]),N]),E,s("div",S,[R,s("p",null,[a("如果你已经发送了PR请求,可以通过我的Netlify预览站点进行预览,"),V,a(" Netlify会在你的PR请求下面显示你的预览页面地址。"),M,a(" 点击"),s("b",null,[n(l,{color:"orange"},{default:o(()=>[a("😎 Deploy Preview后面的链接")]),_:1})]),a("即可看见效果"),O,a(" 由于某些原因,TX会拦截Netlify的站点,请使用浏览器预览。")])]),G,B,$])}const U=e(i,[["render",j]]);export{Q as __pageData,U as default};
|
961
assets/app.9ee7a110.js
Normal file
|
@ -0,0 +1,961 @@
|
|||
import{_ as hn,o as pn,D as mn,E as gn,b as bn,S as In,U as yn,C as T,d as _n,Q as he,a5 as En,u as wn,q as Tn,k as vn,a6 as An,a7 as Sn,a8 as Cn,a9 as Dn,aa as Rn,ab as Mn,ac as Nn,ad as On,ae as Pn,af as Bn,ag as $n,ah as kn,ai as Fn,M as Ln}from"./chunks/framework.fcc0bf38.js";import{t as ht}from"./chunks/theme.9136979b.js";/**
|
||||
* @license
|
||||
* Copyright 2017 Google LLC
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*//**
|
||||
* @license
|
||||
* Copyright 2017 Google LLC
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/const pt=function(e){const t=[];let n=0;for(let r=0;r<e.length;r++){let i=e.charCodeAt(r);i<128?t[n++]=i:i<2048?(t[n++]=i>>6|192,t[n++]=i&63|128):(i&64512)===55296&&r+1<e.length&&(e.charCodeAt(r+1)&64512)===56320?(i=65536+((i&1023)<<10)+(e.charCodeAt(++r)&1023),t[n++]=i>>18|240,t[n++]=i>>12&63|128,t[n++]=i>>6&63|128,t[n++]=i&63|128):(t[n++]=i>>12|224,t[n++]=i>>6&63|128,t[n++]=i&63|128)}return t},Un=function(e){const t=[];let n=0,r=0;for(;n<e.length;){const i=e[n++];if(i<128)t[r++]=String.fromCharCode(i);else if(i>191&&i<224){const a=e[n++];t[r++]=String.fromCharCode((i&31)<<6|a&63)}else if(i>239&&i<365){const a=e[n++],s=e[n++],o=e[n++],c=((i&7)<<18|(a&63)<<12|(s&63)<<6|o&63)-65536;t[r++]=String.fromCharCode(55296+(c>>10)),t[r++]=String.fromCharCode(56320+(c&1023))}else{const a=e[n++],s=e[n++];t[r++]=String.fromCharCode((i&15)<<12|(a&63)<<6|s&63)}}return t.join("")},mt={byteToCharMap_:null,charToByteMap_:null,byteToCharMapWebSafe_:null,charToByteMapWebSafe_:null,ENCODED_VALS_BASE:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",get ENCODED_VALS(){return this.ENCODED_VALS_BASE+"+/="},get ENCODED_VALS_WEBSAFE(){return this.ENCODED_VALS_BASE+"-_."},HAS_NATIVE_SUPPORT:typeof atob=="function",encodeByteArray(e,t){if(!Array.isArray(e))throw Error("encodeByteArray takes an array as a parameter");this.init_();const n=t?this.byteToCharMapWebSafe_:this.byteToCharMap_,r=[];for(let i=0;i<e.length;i+=3){const a=e[i],s=i+1<e.length,o=s?e[i+1]:0,c=i+2<e.length,l=c?e[i+2]:0,d=a>>2,h=(a&3)<<4|o>>4;let g=(o&15)<<2|l>>6,b=l&63;c||(b=64,s||(g=64)),r.push(n[d],n[h],n[g],n[b])}return r.join("")},encodeString(e,t){return this.HAS_NATIVE_SUPPORT&&!t?btoa(e):this.encodeByteArray(pt(e),t)},decodeString(e,t){return this.HAS_NATIVE_SUPPORT&&!t?atob(e):Un(this.decodeStringToByteArray(e,t))},decodeStringToByteArray(e,t){this.init_();const n=t?this.charToByteMapWebSafe_:this.charToByteMap_,r=[];for(let i=0;i<e.length;){const a=n[e.charAt(i++)],o=i<e.length?n[e.charAt(i)]:0;++i;const l=i<e.length?n[e.charAt(i)]:64;++i;const h=i<e.length?n[e.charAt(i)]:64;if(++i,a==null||o==null||l==null||h==null)throw new xn;const g=a<<2|o>>4;if(r.push(g),l!==64){const b=o<<4&240|l>>2;if(r.push(b),h!==64){const fn=l<<6&192|h;r.push(fn)}}}return r},init_(){if(!this.byteToCharMap_){this.byteToCharMap_={},this.charToByteMap_={},this.byteToCharMapWebSafe_={},this.charToByteMapWebSafe_={};for(let e=0;e<this.ENCODED_VALS.length;e++)this.byteToCharMap_[e]=this.ENCODED_VALS.charAt(e),this.charToByteMap_[this.byteToCharMap_[e]]=e,this.byteToCharMapWebSafe_[e]=this.ENCODED_VALS_WEBSAFE.charAt(e),this.charToByteMapWebSafe_[this.byteToCharMapWebSafe_[e]]=e,e>=this.ENCODED_VALS_BASE.length&&(this.charToByteMap_[this.ENCODED_VALS_WEBSAFE.charAt(e)]=e,this.charToByteMapWebSafe_[this.ENCODED_VALS.charAt(e)]=e)}}};class xn extends Error{constructor(){super(...arguments),this.name="DecodeBase64StringError"}}const jn=function(e){const t=pt(e);return mt.encodeByteArray(t,!0)},gt=function(e){return jn(e).replace(/\./g,"")},Vn=function(e){try{return mt.decodeString(e,!0)}catch(t){console.error("base64Decode failed: ",t)}return null};/**
|
||||
* @license
|
||||
* Copyright 2022 Google LLC
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/function Hn(){if(typeof self<"u")return self;if(typeof window<"u")return window;if(typeof global<"u")return global;throw new Error("Unable to locate global object.")}/**
|
||||
* @license
|
||||
* Copyright 2022 Google LLC
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/const zn=()=>Hn().__FIREBASE_DEFAULTS__,qn=()=>{if(typeof process>"u"||typeof process.env>"u")return;const e={}.__FIREBASE_DEFAULTS__;if(e)return JSON.parse(e)},Wn=()=>{if(typeof document>"u")return;let e;try{e=document.cookie.match(/__FIREBASE_DEFAULTS__=([^;]+)/)}catch{return}const t=e&&Vn(e[1]);return t&&JSON.parse(t)},Gn=()=>{try{return zn()||qn()||Wn()}catch(e){console.info(`Unable to get __FIREBASE_DEFAULTS__ due to: ${e}`);return}},Kn=()=>{var e;return(e=Gn())===null||e===void 0?void 0:e.config};/**
|
||||
* @license
|
||||
* Copyright 2017 Google LLC
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/class Xn{constructor(){this.reject=()=>{},this.resolve=()=>{},this.promise=new Promise((t,n)=>{this.resolve=t,this.reject=n})}wrapCallback(t){return(n,r)=>{n?this.reject(n):this.resolve(r),typeof t=="function"&&(this.promise.catch(()=>{}),t.length===1?t(n):t(n,r))}}}function Yn(){const e=typeof chrome=="object"?chrome.runtime:typeof browser=="object"?browser.runtime:void 0;return typeof e=="object"&&e.id!==void 0}function ve(){try{return typeof indexedDB=="object"}catch{return!1}}function Ae(){return new Promise((e,t)=>{try{let n=!0;const r="validate-browser-context-for-indexeddb-analytics-module",i=self.indexedDB.open(r);i.onsuccess=()=>{i.result.close(),n||self.indexedDB.deleteDatabase(r),e(!0)},i.onupgradeneeded=()=>{n=!1},i.onerror=()=>{var a;t(((a=i.error)===null||a===void 0?void 0:a.message)||"")}}catch(n){t(n)}})}function bt(){return!(typeof navigator>"u"||!navigator.cookieEnabled)}/**
|
||||
* @license
|
||||
* Copyright 2017 Google LLC
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/const Jn="FirebaseError";class k extends Error{constructor(t,n,r){super(n),this.code=t,this.customData=r,this.name=Jn,Object.setPrototypeOf(this,k.prototype),Error.captureStackTrace&&Error.captureStackTrace(this,j.prototype.create)}}class j{constructor(t,n,r){this.service=t,this.serviceName=n,this.errors=r}create(t,...n){const r=n[0]||{},i=`${this.service}/${t}`,a=this.errors[t],s=a?Qn(a,r):"Error",o=`${this.serviceName}: ${s} (${i}).`;return new k(i,o,r)}}function Qn(e,t){return e.replace(Zn,(n,r)=>{const i=t[r];return i!=null?String(i):`<${r}?>`})}const Zn=/\{\$([^}]+)}/g;function z(e,t){if(e===t)return!0;const n=Object.keys(e),r=Object.keys(t);for(const i of n){if(!r.includes(i))return!1;const a=e[i],s=t[i];if(Le(a)&&Le(s)){if(!z(a,s))return!1}else if(a!==s)return!1}for(const i of r)if(!n.includes(i))return!1;return!0}function Le(e){return e!==null&&typeof e=="object"}/**
|
||||
* @license
|
||||
* Copyright 2019 Google LLC
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/const er=1e3,tr=2,nr=4*60*60*1e3,rr=.5;function Ue(e,t=er,n=tr){const r=t*Math.pow(n,e),i=Math.round(rr*r*(Math.random()-.5)*2);return Math.min(nr,r+i)}/**
|
||||
* @license
|
||||
* Copyright 2021 Google LLC
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/function Se(e){return e&&e._delegate?e._delegate:e}class v{constructor(t,n,r){this.name=t,this.instanceFactory=n,this.type=r,this.multipleInstances=!1,this.serviceProps={},this.instantiationMode="LAZY",this.onInstanceCreated=null}setInstantiationMode(t){return this.instantiationMode=t,this}setMultipleInstances(t){return this.multipleInstances=t,this}setServiceProps(t){return this.serviceProps=t,this}setInstanceCreatedCallback(t){return this.onInstanceCreated=t,this}}/**
|
||||
* @license
|
||||
* Copyright 2019 Google LLC
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/const M="[DEFAULT]";/**
|
||||
* @license
|
||||
* Copyright 2019 Google LLC
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/class ir{constructor(t,n){this.name=t,this.container=n,this.component=null,this.instances=new Map,this.instancesDeferred=new Map,this.instancesOptions=new Map,this.onInitCallbacks=new Map}get(t){const n=this.normalizeInstanceIdentifier(t);if(!this.instancesDeferred.has(n)){const r=new Xn;if(this.instancesDeferred.set(n,r),this.isInitialized(n)||this.shouldAutoInitialize())try{const i=this.getOrInitializeService({instanceIdentifier:n});i&&r.resolve(i)}catch{}}return this.instancesDeferred.get(n).promise}getImmediate(t){var n;const r=this.normalizeInstanceIdentifier(t==null?void 0:t.identifier),i=(n=t==null?void 0:t.optional)!==null&&n!==void 0?n:!1;if(this.isInitialized(r)||this.shouldAutoInitialize())try{return this.getOrInitializeService({instanceIdentifier:r})}catch(a){if(i)return null;throw a}else{if(i)return null;throw Error(`Service ${this.name} is not available`)}}getComponent(){return this.component}setComponent(t){if(t.name!==this.name)throw Error(`Mismatching Component ${t.name} for Provider ${this.name}.`);if(this.component)throw Error(`Component for ${this.name} has already been provided`);if(this.component=t,!!this.shouldAutoInitialize()){if(sr(t))try{this.getOrInitializeService({instanceIdentifier:M})}catch{}for(const[n,r]of this.instancesDeferred.entries()){const i=this.normalizeInstanceIdentifier(n);try{const a=this.getOrInitializeService({instanceIdentifier:i});r.resolve(a)}catch{}}}}clearInstance(t=M){this.instancesDeferred.delete(t),this.instancesOptions.delete(t),this.instances.delete(t)}async delete(){const t=Array.from(this.instances.values());await Promise.all([...t.filter(n=>"INTERNAL"in n).map(n=>n.INTERNAL.delete()),...t.filter(n=>"_delete"in n).map(n=>n._delete())])}isComponentSet(){return this.component!=null}isInitialized(t=M){return this.instances.has(t)}getOptions(t=M){return this.instancesOptions.get(t)||{}}initialize(t={}){const{options:n={}}=t,r=this.normalizeInstanceIdentifier(t.instanceIdentifier);if(this.isInitialized(r))throw Error(`${this.name}(${r}) has already been initialized`);if(!this.isComponentSet())throw Error(`Component ${this.name} has not been registered yet`);const i=this.getOrInitializeService({instanceIdentifier:r,options:n});for(const[a,s]of this.instancesDeferred.entries()){const o=this.normalizeInstanceIdentifier(a);r===o&&s.resolve(i)}return i}onInit(t,n){var r;const i=this.normalizeInstanceIdentifier(n),a=(r=this.onInitCallbacks.get(i))!==null&&r!==void 0?r:new Set;a.add(t),this.onInitCallbacks.set(i,a);const s=this.instances.get(i);return s&&t(s,i),()=>{a.delete(t)}}invokeOnInitCallbacks(t,n){const r=this.onInitCallbacks.get(n);if(r)for(const i of r)try{i(t,n)}catch{}}getOrInitializeService({instanceIdentifier:t,options:n={}}){let r=this.instances.get(t);if(!r&&this.component&&(r=this.component.instanceFactory(this.container,{instanceIdentifier:ar(t),options:n}),this.instances.set(t,r),this.instancesOptions.set(t,n),this.invokeOnInitCallbacks(r,t),this.component.onInstanceCreated))try{this.component.onInstanceCreated(this.container,t,r)}catch{}return r||null}normalizeInstanceIdentifier(t=M){return this.component?this.component.multipleInstances?t:M:t}shouldAutoInitialize(){return!!this.component&&this.component.instantiationMode!=="EXPLICIT"}}function ar(e){return e===M?void 0:e}function sr(e){return e.instantiationMode==="EAGER"}/**
|
||||
* @license
|
||||
* Copyright 2019 Google LLC
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/class or{constructor(t){this.name=t,this.providers=new Map}addComponent(t){const n=this.getProvider(t.name);if(n.isComponentSet())throw new Error(`Component ${t.name} has already been registered with ${this.name}`);n.setComponent(t)}addOrOverwriteComponent(t){this.getProvider(t.name).isComponentSet()&&this.providers.delete(t.name),this.addComponent(t)}getProvider(t){if(this.providers.has(t))return this.providers.get(t);const n=new ir(t,this);return this.providers.set(t,n),n}getProviders(){return Array.from(this.providers.values())}}/**
|
||||
* @license
|
||||
* Copyright 2017 Google LLC
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/var u;(function(e){e[e.DEBUG=0]="DEBUG",e[e.VERBOSE=1]="VERBOSE",e[e.INFO=2]="INFO",e[e.WARN=3]="WARN",e[e.ERROR=4]="ERROR",e[e.SILENT=5]="SILENT"})(u||(u={}));const cr={debug:u.DEBUG,verbose:u.VERBOSE,info:u.INFO,warn:u.WARN,error:u.ERROR,silent:u.SILENT},lr=u.INFO,ur={[u.DEBUG]:"log",[u.VERBOSE]:"log",[u.INFO]:"info",[u.WARN]:"warn",[u.ERROR]:"error"},dr=(e,t,...n)=>{if(t<e.logLevel)return;const r=new Date().toISOString(),i=ur[t];if(i)console[i](`[${r}] ${e.name}:`,...n);else throw new Error(`Attempted to log a message with an invalid logType (value: ${t})`)};class Ce{constructor(t){this.name=t,this._logLevel=lr,this._logHandler=dr,this._userLogHandler=null}get logLevel(){return this._logLevel}set logLevel(t){if(!(t in u))throw new TypeError(`Invalid value "${t}" assigned to \`logLevel\``);this._logLevel=t}setLogLevel(t){this._logLevel=typeof t=="string"?cr[t]:t}get logHandler(){return this._logHandler}set logHandler(t){if(typeof t!="function")throw new TypeError("Value assigned to `logHandler` must be a function");this._logHandler=t}get userLogHandler(){return this._userLogHandler}set userLogHandler(t){this._userLogHandler=t}debug(...t){this._userLogHandler&&this._userLogHandler(this,u.DEBUG,...t),this._logHandler(this,u.DEBUG,...t)}log(...t){this._userLogHandler&&this._userLogHandler(this,u.VERBOSE,...t),this._logHandler(this,u.VERBOSE,...t)}info(...t){this._userLogHandler&&this._userLogHandler(this,u.INFO,...t),this._logHandler(this,u.INFO,...t)}warn(...t){this._userLogHandler&&this._userLogHandler(this,u.WARN,...t),this._logHandler(this,u.WARN,...t)}error(...t){this._userLogHandler&&this._userLogHandler(this,u.ERROR,...t),this._logHandler(this,u.ERROR,...t)}}const fr=(e,t)=>t.some(n=>e instanceof n);let xe,je;function hr(){return xe||(xe=[IDBDatabase,IDBObjectStore,IDBIndex,IDBCursor,IDBTransaction])}function pr(){return je||(je=[IDBCursor.prototype.advance,IDBCursor.prototype.continue,IDBCursor.prototype.continuePrimaryKey])}const It=new WeakMap,pe=new WeakMap,yt=new WeakMap,Q=new WeakMap,De=new WeakMap;function mr(e){const t=new Promise((n,r)=>{const i=()=>{e.removeEventListener("success",a),e.removeEventListener("error",s)},a=()=>{n(A(e.result)),i()},s=()=>{r(e.error),i()};e.addEventListener("success",a),e.addEventListener("error",s)});return t.then(n=>{n instanceof IDBCursor&&It.set(n,e)}).catch(()=>{}),De.set(t,e),t}function gr(e){if(pe.has(e))return;const t=new Promise((n,r)=>{const i=()=>{e.removeEventListener("complete",a),e.removeEventListener("error",s),e.removeEventListener("abort",s)},a=()=>{n(),i()},s=()=>{r(e.error||new DOMException("AbortError","AbortError")),i()};e.addEventListener("complete",a),e.addEventListener("error",s),e.addEventListener("abort",s)});pe.set(e,t)}let me={get(e,t,n){if(e instanceof IDBTransaction){if(t==="done")return pe.get(e);if(t==="objectStoreNames")return e.objectStoreNames||yt.get(e);if(t==="store")return n.objectStoreNames[1]?void 0:n.objectStore(n.objectStoreNames[0])}return A(e[t])},set(e,t,n){return e[t]=n,!0},has(e,t){return e instanceof IDBTransaction&&(t==="done"||t==="store")?!0:t in e}};function br(e){me=e(me)}function Ir(e){return e===IDBDatabase.prototype.transaction&&!("objectStoreNames"in IDBTransaction.prototype)?function(t,...n){const r=e.call(Z(this),t,...n);return yt.set(r,t.sort?t.sort():[t]),A(r)}:pr().includes(e)?function(...t){return e.apply(Z(this),t),A(It.get(this))}:function(...t){return A(e.apply(Z(this),t))}}function yr(e){return typeof e=="function"?Ir(e):(e instanceof IDBTransaction&&gr(e),fr(e,hr())?new Proxy(e,me):e)}function A(e){if(e instanceof IDBRequest)return mr(e);if(Q.has(e))return Q.get(e);const t=yr(e);return t!==e&&(Q.set(e,t),De.set(t,e)),t}const Z=e=>De.get(e);function _r(e,t,{blocked:n,upgrade:r,blocking:i,terminated:a}={}){const s=indexedDB.open(e,t),o=A(s);return r&&s.addEventListener("upgradeneeded",c=>{r(A(s.result),c.oldVersion,c.newVersion,A(s.transaction),c)}),n&&s.addEventListener("blocked",c=>n(c.oldVersion,c.newVersion,c)),o.then(c=>{a&&c.addEventListener("close",()=>a()),i&&c.addEventListener("versionchange",l=>i(l.oldVersion,l.newVersion,l))}).catch(()=>{}),o}const Er=["get","getKey","getAll","getAllKeys","count"],wr=["put","add","delete","clear"],ee=new Map;function Ve(e,t){if(!(e instanceof IDBDatabase&&!(t in e)&&typeof t=="string"))return;if(ee.get(t))return ee.get(t);const n=t.replace(/FromIndex$/,""),r=t!==n,i=wr.includes(n);if(!(n in(r?IDBIndex:IDBObjectStore).prototype)||!(i||Er.includes(n)))return;const a=async function(s,...o){const c=this.transaction(s,i?"readwrite":"readonly");let l=c.store;return r&&(l=l.index(o.shift())),(await Promise.all([l[n](...o),i&&c.done]))[0]};return ee.set(t,a),a}br(e=>({...e,get:(t,n,r)=>Ve(t,n)||e.get(t,n,r),has:(t,n)=>!!Ve(t,n)||e.has(t,n)}));/**
|
||||
* @license
|
||||
* Copyright 2019 Google LLC
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/class Tr{constructor(t){this.container=t}getPlatformInfoString(){return this.container.getProviders().map(n=>{if(vr(n)){const r=n.getImmediate();return`${r.library}/${r.version}`}else return null}).filter(n=>n).join(" ")}}function vr(e){const t=e.getComponent();return(t==null?void 0:t.type)==="VERSION"}const ge="@firebase/app",He="0.9.9";/**
|
||||
* @license
|
||||
* Copyright 2019 Google LLC
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/const P=new Ce("@firebase/app"),Ar="@firebase/app-compat",Sr="@firebase/analytics-compat",Cr="@firebase/analytics",Dr="@firebase/app-check-compat",Rr="@firebase/app-check",Mr="@firebase/auth",Nr="@firebase/auth-compat",Or="@firebase/database",Pr="@firebase/database-compat",Br="@firebase/functions",$r="@firebase/functions-compat",kr="@firebase/installations",Fr="@firebase/installations-compat",Lr="@firebase/messaging",Ur="@firebase/messaging-compat",xr="@firebase/performance",jr="@firebase/performance-compat",Vr="@firebase/remote-config",Hr="@firebase/remote-config-compat",zr="@firebase/storage",qr="@firebase/storage-compat",Wr="@firebase/firestore",Gr="@firebase/firestore-compat",Kr="firebase";/**
|
||||
* @license
|
||||
* Copyright 2019 Google LLC
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/const be="[DEFAULT]",Xr={[ge]:"fire-core",[Ar]:"fire-core-compat",[Cr]:"fire-analytics",[Sr]:"fire-analytics-compat",[Rr]:"fire-app-check",[Dr]:"fire-app-check-compat",[Mr]:"fire-auth",[Nr]:"fire-auth-compat",[Or]:"fire-rtdb",[Pr]:"fire-rtdb-compat",[Br]:"fire-fn",[$r]:"fire-fn-compat",[kr]:"fire-iid",[Fr]:"fire-iid-compat",[Lr]:"fire-fcm",[Ur]:"fire-fcm-compat",[xr]:"fire-perf",[jr]:"fire-perf-compat",[Vr]:"fire-rc",[Hr]:"fire-rc-compat",[zr]:"fire-gcs",[qr]:"fire-gcs-compat",[Wr]:"fire-fst",[Gr]:"fire-fst-compat","fire-js":"fire-js",[Kr]:"fire-js-all"};/**
|
||||
* @license
|
||||
* Copyright 2019 Google LLC
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/const q=new Map,Ie=new Map;function Yr(e,t){try{e.container.addComponent(t)}catch(n){P.debug(`Component ${t.name} failed to register with FirebaseApp ${e.name}`,n)}}function R(e){const t=e.name;if(Ie.has(t))return P.debug(`There were multiple attempts to register component ${t}.`),!1;Ie.set(t,e);for(const n of q.values())Yr(n,e);return!0}function V(e,t){const n=e.container.getProvider("heartbeat").getImmediate({optional:!0});return n&&n.triggerHeartbeat(),e.container.getProvider(t)}/**
|
||||
* @license
|
||||
* Copyright 2019 Google LLC
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/const Jr={["no-app"]:"No Firebase App '{$appName}' has been created - call Firebase App.initializeApp()",["bad-app-name"]:"Illegal App name: '{$appName}",["duplicate-app"]:"Firebase App named '{$appName}' already exists with different options or config",["app-deleted"]:"Firebase App named '{$appName}' already deleted",["no-options"]:"Need to provide options, when not being deployed to hosting via source.",["invalid-app-argument"]:"firebase.{$appName}() takes either no argument or a Firebase App instance.",["invalid-log-argument"]:"First argument to `onLog` must be null or a function.",["idb-open"]:"Error thrown when opening IndexedDB. Original error: {$originalErrorMessage}.",["idb-get"]:"Error thrown when reading from IndexedDB. Original error: {$originalErrorMessage}.",["idb-set"]:"Error thrown when writing to IndexedDB. Original error: {$originalErrorMessage}.",["idb-delete"]:"Error thrown when deleting from IndexedDB. Original error: {$originalErrorMessage}."},S=new j("app","Firebase",Jr);/**
|
||||
* @license
|
||||
* Copyright 2019 Google LLC
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/class Qr{constructor(t,n,r){this._isDeleted=!1,this._options=Object.assign({},t),this._config=Object.assign({},n),this._name=n.name,this._automaticDataCollectionEnabled=n.automaticDataCollectionEnabled,this._container=r,this.container.addComponent(new v("app",()=>this,"PUBLIC"))}get automaticDataCollectionEnabled(){return this.checkDestroyed(),this._automaticDataCollectionEnabled}set automaticDataCollectionEnabled(t){this.checkDestroyed(),this._automaticDataCollectionEnabled=t}get name(){return this.checkDestroyed(),this._name}get options(){return this.checkDestroyed(),this._options}get config(){return this.checkDestroyed(),this._config}get container(){return this._container}get isDeleted(){return this._isDeleted}set isDeleted(t){this._isDeleted=t}checkDestroyed(){if(this.isDeleted)throw S.create("app-deleted",{appName:this._name})}}function _t(e,t={}){let n=e;typeof t!="object"&&(t={name:t});const r=Object.assign({name:be,automaticDataCollectionEnabled:!1},t),i=r.name;if(typeof i!="string"||!i)throw S.create("bad-app-name",{appName:String(i)});if(n||(n=Kn()),!n)throw S.create("no-options");const a=q.get(i);if(a){if(z(n,a.options)&&z(r,a.config))return a;throw S.create("duplicate-app",{appName:i})}const s=new or(i);for(const c of Ie.values())s.addComponent(c);const o=new Qr(n,r,s);return q.set(i,o),o}function Et(e=be){const t=q.get(e);if(!t&&e===be)return _t();if(!t)throw S.create("no-app",{appName:e});return t}function E(e,t,n){var r;let i=(r=Xr[e])!==null&&r!==void 0?r:e;n&&(i+=`-${n}`);const a=i.match(/\s|\//),s=t.match(/\s|\//);if(a||s){const o=[`Unable to register library "${i}" with version "${t}":`];a&&o.push(`library name "${i}" contains illegal characters (whitespace or "/")`),a&&s&&o.push("and"),s&&o.push(`version name "${t}" contains illegal characters (whitespace or "/")`),P.warn(o.join(" "));return}R(new v(`${i}-version`,()=>({library:i,version:t}),"VERSION"))}/**
|
||||
* @license
|
||||
* Copyright 2021 Google LLC
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/const Zr="firebase-heartbeat-database",ei=1,x="firebase-heartbeat-store";let te=null;function wt(){return te||(te=_r(Zr,ei,{upgrade:(e,t)=>{switch(t){case 0:e.createObjectStore(x)}}}).catch(e=>{throw S.create("idb-open",{originalErrorMessage:e.message})})),te}async function ti(e){try{return(await wt()).transaction(x).objectStore(x).get(Tt(e))}catch(t){if(t instanceof k)P.warn(t.message);else{const n=S.create("idb-get",{originalErrorMessage:t==null?void 0:t.message});P.warn(n.message)}}}async function ze(e,t){try{const r=(await wt()).transaction(x,"readwrite");return await r.objectStore(x).put(t,Tt(e)),r.done}catch(n){if(n instanceof k)P.warn(n.message);else{const r=S.create("idb-set",{originalErrorMessage:n==null?void 0:n.message});P.warn(r.message)}}}function Tt(e){return`${e.name}!${e.options.appId}`}/**
|
||||
* @license
|
||||
* Copyright 2021 Google LLC
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/const ni=1024,ri=30*24*60*60*1e3;class ii{constructor(t){this.container=t,this._heartbeatsCache=null;const n=this.container.getProvider("app").getImmediate();this._storage=new si(n),this._heartbeatsCachePromise=this._storage.read().then(r=>(this._heartbeatsCache=r,r))}async triggerHeartbeat(){const n=this.container.getProvider("platform-logger").getImmediate().getPlatformInfoString(),r=qe();if(this._heartbeatsCache===null&&(this._heartbeatsCache=await this._heartbeatsCachePromise),!(this._heartbeatsCache.lastSentHeartbeatDate===r||this._heartbeatsCache.heartbeats.some(i=>i.date===r)))return this._heartbeatsCache.heartbeats.push({date:r,agent:n}),this._heartbeatsCache.heartbeats=this._heartbeatsCache.heartbeats.filter(i=>{const a=new Date(i.date).valueOf();return Date.now()-a<=ri}),this._storage.overwrite(this._heartbeatsCache)}async getHeartbeatsHeader(){if(this._heartbeatsCache===null&&await this._heartbeatsCachePromise,this._heartbeatsCache===null||this._heartbeatsCache.heartbeats.length===0)return"";const t=qe(),{heartbeatsToSend:n,unsentEntries:r}=ai(this._heartbeatsCache.heartbeats),i=gt(JSON.stringify({version:2,heartbeats:n}));return this._heartbeatsCache.lastSentHeartbeatDate=t,r.length>0?(this._heartbeatsCache.heartbeats=r,await this._storage.overwrite(this._heartbeatsCache)):(this._heartbeatsCache.heartbeats=[],this._storage.overwrite(this._heartbeatsCache)),i}}function qe(){return new Date().toISOString().substring(0,10)}function ai(e,t=ni){const n=[];let r=e.slice();for(const i of e){const a=n.find(s=>s.agent===i.agent);if(a){if(a.dates.push(i.date),We(n)>t){a.dates.pop();break}}else if(n.push({agent:i.agent,dates:[i.date]}),We(n)>t){n.pop();break}r=r.slice(1)}return{heartbeatsToSend:n,unsentEntries:r}}class si{constructor(t){this.app=t,this._canUseIndexedDBPromise=this.runIndexedDBEnvironmentCheck()}async runIndexedDBEnvironmentCheck(){return ve()?Ae().then(()=>!0).catch(()=>!1):!1}async read(){return await this._canUseIndexedDBPromise?await ti(this.app)||{heartbeats:[]}:{heartbeats:[]}}async overwrite(t){var n;if(await this._canUseIndexedDBPromise){const i=await this.read();return ze(this.app,{lastSentHeartbeatDate:(n=t.lastSentHeartbeatDate)!==null&&n!==void 0?n:i.lastSentHeartbeatDate,heartbeats:t.heartbeats})}else return}async add(t){var n;if(await this._canUseIndexedDBPromise){const i=await this.read();return ze(this.app,{lastSentHeartbeatDate:(n=t.lastSentHeartbeatDate)!==null&&n!==void 0?n:i.lastSentHeartbeatDate,heartbeats:[...i.heartbeats,...t.heartbeats]})}else return}}function We(e){return gt(JSON.stringify({version:2,heartbeats:e})).length}/**
|
||||
* @license
|
||||
* Copyright 2019 Google LLC
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/function oi(e){R(new v("platform-logger",t=>new Tr(t),"PRIVATE")),R(new v("heartbeat",t=>new ii(t),"PRIVATE")),E(ge,He,e),E(ge,He,"esm2017"),E("fire-js","")}oi("");var ci="firebase",li="9.21.0";/**
|
||||
* @license
|
||||
* Copyright 2020 Google LLC
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/E(ci,li,"app");const ui=(e,t)=>t.some(n=>e instanceof n);let Ge,Ke;function di(){return Ge||(Ge=[IDBDatabase,IDBObjectStore,IDBIndex,IDBCursor,IDBTransaction])}function fi(){return Ke||(Ke=[IDBCursor.prototype.advance,IDBCursor.prototype.continue,IDBCursor.prototype.continuePrimaryKey])}const vt=new WeakMap,ye=new WeakMap,At=new WeakMap,ne=new WeakMap,Re=new WeakMap;function hi(e){const t=new Promise((n,r)=>{const i=()=>{e.removeEventListener("success",a),e.removeEventListener("error",s)},a=()=>{n(C(e.result)),i()},s=()=>{r(e.error),i()};e.addEventListener("success",a),e.addEventListener("error",s)});return t.then(n=>{n instanceof IDBCursor&&vt.set(n,e)}).catch(()=>{}),Re.set(t,e),t}function pi(e){if(ye.has(e))return;const t=new Promise((n,r)=>{const i=()=>{e.removeEventListener("complete",a),e.removeEventListener("error",s),e.removeEventListener("abort",s)},a=()=>{n(),i()},s=()=>{r(e.error||new DOMException("AbortError","AbortError")),i()};e.addEventListener("complete",a),e.addEventListener("error",s),e.addEventListener("abort",s)});ye.set(e,t)}let _e={get(e,t,n){if(e instanceof IDBTransaction){if(t==="done")return ye.get(e);if(t==="objectStoreNames")return e.objectStoreNames||At.get(e);if(t==="store")return n.objectStoreNames[1]?void 0:n.objectStore(n.objectStoreNames[0])}return C(e[t])},set(e,t,n){return e[t]=n,!0},has(e,t){return e instanceof IDBTransaction&&(t==="done"||t==="store")?!0:t in e}};function mi(e){_e=e(_e)}function gi(e){return e===IDBDatabase.prototype.transaction&&!("objectStoreNames"in IDBTransaction.prototype)?function(t,...n){const r=e.call(re(this),t,...n);return At.set(r,t.sort?t.sort():[t]),C(r)}:fi().includes(e)?function(...t){return e.apply(re(this),t),C(vt.get(this))}:function(...t){return C(e.apply(re(this),t))}}function bi(e){return typeof e=="function"?gi(e):(e instanceof IDBTransaction&&pi(e),ui(e,di())?new Proxy(e,_e):e)}function C(e){if(e instanceof IDBRequest)return hi(e);if(ne.has(e))return ne.get(e);const t=bi(e);return t!==e&&(ne.set(e,t),Re.set(t,e)),t}const re=e=>Re.get(e);function Ii(e,t,{blocked:n,upgrade:r,blocking:i,terminated:a}={}){const s=indexedDB.open(e,t),o=C(s);return r&&s.addEventListener("upgradeneeded",c=>{r(C(s.result),c.oldVersion,c.newVersion,C(s.transaction))}),n&&s.addEventListener("blocked",()=>n()),o.then(c=>{a&&c.addEventListener("close",()=>a()),i&&c.addEventListener("versionchange",()=>i())}).catch(()=>{}),o}const yi=["get","getKey","getAll","getAllKeys","count"],_i=["put","add","delete","clear"],ie=new Map;function Xe(e,t){if(!(e instanceof IDBDatabase&&!(t in e)&&typeof t=="string"))return;if(ie.get(t))return ie.get(t);const n=t.replace(/FromIndex$/,""),r=t!==n,i=_i.includes(n);if(!(n in(r?IDBIndex:IDBObjectStore).prototype)||!(i||yi.includes(n)))return;const a=async function(s,...o){const c=this.transaction(s,i?"readwrite":"readonly");let l=c.store;return r&&(l=l.index(o.shift())),(await Promise.all([l[n](...o),i&&c.done]))[0]};return ie.set(t,a),a}mi(e=>({...e,get:(t,n,r)=>Xe(t,n)||e.get(t,n,r),has:(t,n)=>!!Xe(t,n)||e.has(t,n)}));const St="@firebase/installations",Me="0.6.4";/**
|
||||
* @license
|
||||
* Copyright 2019 Google LLC
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/const Ct=1e4,Dt=`w:${Me}`,Rt="FIS_v2",Ei="https://firebaseinstallations.googleapis.com/v1",wi=60*60*1e3,Ti="installations",vi="Installations";/**
|
||||
* @license
|
||||
* Copyright 2019 Google LLC
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/const Ai={["missing-app-config-values"]:'Missing App configuration value: "{$valueName}"',["not-registered"]:"Firebase Installation is not registered.",["installation-not-found"]:"Firebase Installation not found.",["request-failed"]:'{$requestName} request failed with error "{$serverCode} {$serverStatus}: {$serverMessage}"',["app-offline"]:"Could not process request. Application offline.",["delete-pending-registration"]:"Can't delete installation while there is a pending registration request."},B=new j(Ti,vi,Ai);function Mt(e){return e instanceof k&&e.code.includes("request-failed")}/**
|
||||
* @license
|
||||
* Copyright 2019 Google LLC
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/function Nt({projectId:e}){return`${Ei}/projects/${e}/installations`}function Ot(e){return{token:e.token,requestStatus:2,expiresIn:Ci(e.expiresIn),creationTime:Date.now()}}async function Pt(e,t){const r=(await t.json()).error;return B.create("request-failed",{requestName:e,serverCode:r.code,serverMessage:r.message,serverStatus:r.status})}function Bt({apiKey:e}){return new Headers({"Content-Type":"application/json",Accept:"application/json","x-goog-api-key":e})}function Si(e,{refreshToken:t}){const n=Bt(e);return n.append("Authorization",Di(t)),n}async function $t(e){const t=await e();return t.status>=500&&t.status<600?e():t}function Ci(e){return Number(e.replace("s","000"))}function Di(e){return`${Rt} ${e}`}/**
|
||||
* @license
|
||||
* Copyright 2019 Google LLC
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/async function Ri({appConfig:e,heartbeatServiceProvider:t},{fid:n}){const r=Nt(e),i=Bt(e),a=t.getImmediate({optional:!0});if(a){const l=await a.getHeartbeatsHeader();l&&i.append("x-firebase-client",l)}const s={fid:n,authVersion:Rt,appId:e.appId,sdkVersion:Dt},o={method:"POST",headers:i,body:JSON.stringify(s)},c=await $t(()=>fetch(r,o));if(c.ok){const l=await c.json();return{fid:l.fid||n,registrationStatus:2,refreshToken:l.refreshToken,authToken:Ot(l.authToken)}}else throw await Pt("Create Installation",c)}/**
|
||||
* @license
|
||||
* Copyright 2019 Google LLC
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/function kt(e){return new Promise(t=>{setTimeout(t,e)})}/**
|
||||
* @license
|
||||
* Copyright 2019 Google LLC
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/function Mi(e){return btoa(String.fromCharCode(...e)).replace(/\+/g,"-").replace(/\//g,"_")}/**
|
||||
* @license
|
||||
* Copyright 2019 Google LLC
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/const Ni=/^[cdef][\w-]{21}$/,Ee="";function Oi(){try{const e=new Uint8Array(17);(self.crypto||self.msCrypto).getRandomValues(e),e[0]=112+e[0]%16;const n=Pi(e);return Ni.test(n)?n:Ee}catch{return Ee}}function Pi(e){return Mi(e).substr(0,22)}/**
|
||||
* @license
|
||||
* Copyright 2019 Google LLC
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/function X(e){return`${e.appName}!${e.appId}`}/**
|
||||
* @license
|
||||
* Copyright 2019 Google LLC
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/const Ft=new Map;function Lt(e,t){const n=X(e);Ut(n,t),Bi(n,t)}function Ut(e,t){const n=Ft.get(e);if(n)for(const r of n)r(t)}function Bi(e,t){const n=$i();n&&n.postMessage({key:e,fid:t}),ki()}let N=null;function $i(){return!N&&"BroadcastChannel"in self&&(N=new BroadcastChannel("[Firebase] FID Change"),N.onmessage=e=>{Ut(e.data.key,e.data.fid)}),N}function ki(){Ft.size===0&&N&&(N.close(),N=null)}/**
|
||||
* @license
|
||||
* Copyright 2019 Google LLC
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/const Fi="firebase-installations-database",Li=1,$="firebase-installations-store";let ae=null;function Ne(){return ae||(ae=Ii(Fi,Li,{upgrade:(e,t)=>{switch(t){case 0:e.createObjectStore($)}}})),ae}async function W(e,t){const n=X(e),i=(await Ne()).transaction($,"readwrite"),a=i.objectStore($),s=await a.get(n);return await a.put(t,n),await i.done,(!s||s.fid!==t.fid)&&Lt(e,t.fid),t}async function xt(e){const t=X(e),r=(await Ne()).transaction($,"readwrite");await r.objectStore($).delete(t),await r.done}async function Y(e,t){const n=X(e),i=(await Ne()).transaction($,"readwrite"),a=i.objectStore($),s=await a.get(n),o=t(s);return o===void 0?await a.delete(n):await a.put(o,n),await i.done,o&&(!s||s.fid!==o.fid)&&Lt(e,o.fid),o}/**
|
||||
* @license
|
||||
* Copyright 2019 Google LLC
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/async function Oe(e){let t;const n=await Y(e.appConfig,r=>{const i=Ui(r),a=xi(e,i);return t=a.registrationPromise,a.installationEntry});return n.fid===Ee?{installationEntry:await t}:{installationEntry:n,registrationPromise:t}}function Ui(e){const t=e||{fid:Oi(),registrationStatus:0};return jt(t)}function xi(e,t){if(t.registrationStatus===0){if(!navigator.onLine){const i=Promise.reject(B.create("app-offline"));return{installationEntry:t,registrationPromise:i}}const n={fid:t.fid,registrationStatus:1,registrationTime:Date.now()},r=ji(e,n);return{installationEntry:n,registrationPromise:r}}else return t.registrationStatus===1?{installationEntry:t,registrationPromise:Vi(e)}:{installationEntry:t}}async function ji(e,t){try{const n=await Ri(e,t);return W(e.appConfig,n)}catch(n){throw Mt(n)&&n.customData.serverCode===409?await xt(e.appConfig):await W(e.appConfig,{fid:t.fid,registrationStatus:0}),n}}async function Vi(e){let t=await Ye(e.appConfig);for(;t.registrationStatus===1;)await kt(100),t=await Ye(e.appConfig);if(t.registrationStatus===0){const{installationEntry:n,registrationPromise:r}=await Oe(e);return r||n}return t}function Ye(e){return Y(e,t=>{if(!t)throw B.create("installation-not-found");return jt(t)})}function jt(e){return Hi(e)?{fid:e.fid,registrationStatus:0}:e}function Hi(e){return e.registrationStatus===1&&e.registrationTime+Ct<Date.now()}/**
|
||||
* @license
|
||||
* Copyright 2019 Google LLC
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/async function zi({appConfig:e,heartbeatServiceProvider:t},n){const r=qi(e,n),i=Si(e,n),a=t.getImmediate({optional:!0});if(a){const l=await a.getHeartbeatsHeader();l&&i.append("x-firebase-client",l)}const s={installation:{sdkVersion:Dt,appId:e.appId}},o={method:"POST",headers:i,body:JSON.stringify(s)},c=await $t(()=>fetch(r,o));if(c.ok){const l=await c.json();return Ot(l)}else throw await Pt("Generate Auth Token",c)}function qi(e,{fid:t}){return`${Nt(e)}/${t}/authTokens:generate`}/**
|
||||
* @license
|
||||
* Copyright 2019 Google LLC
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/async function Pe(e,t=!1){let n;const r=await Y(e.appConfig,a=>{if(!Vt(a))throw B.create("not-registered");const s=a.authToken;if(!t&&Ki(s))return a;if(s.requestStatus===1)return n=Wi(e,t),a;{if(!navigator.onLine)throw B.create("app-offline");const o=Yi(a);return n=Gi(e,o),o}});return n?await n:r.authToken}async function Wi(e,t){let n=await Je(e.appConfig);for(;n.authToken.requestStatus===1;)await kt(100),n=await Je(e.appConfig);const r=n.authToken;return r.requestStatus===0?Pe(e,t):r}function Je(e){return Y(e,t=>{if(!Vt(t))throw B.create("not-registered");const n=t.authToken;return Ji(n)?Object.assign(Object.assign({},t),{authToken:{requestStatus:0}}):t})}async function Gi(e,t){try{const n=await zi(e,t),r=Object.assign(Object.assign({},t),{authToken:n});return await W(e.appConfig,r),n}catch(n){if(Mt(n)&&(n.customData.serverCode===401||n.customData.serverCode===404))await xt(e.appConfig);else{const r=Object.assign(Object.assign({},t),{authToken:{requestStatus:0}});await W(e.appConfig,r)}throw n}}function Vt(e){return e!==void 0&&e.registrationStatus===2}function Ki(e){return e.requestStatus===2&&!Xi(e)}function Xi(e){const t=Date.now();return t<e.creationTime||e.creationTime+e.expiresIn<t+wi}function Yi(e){const t={requestStatus:1,requestTime:Date.now()};return Object.assign(Object.assign({},e),{authToken:t})}function Ji(e){return e.requestStatus===1&&e.requestTime+Ct<Date.now()}/**
|
||||
* @license
|
||||
* Copyright 2019 Google LLC
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/async function Qi(e){const t=e,{installationEntry:n,registrationPromise:r}=await Oe(t);return r?r.catch(console.error):Pe(t).catch(console.error),n.fid}/**
|
||||
* @license
|
||||
* Copyright 2019 Google LLC
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/async function Zi(e,t=!1){const n=e;return await ea(n),(await Pe(n,t)).token}async function ea(e){const{registrationPromise:t}=await Oe(e);t&&await t}/**
|
||||
* @license
|
||||
* Copyright 2019 Google LLC
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/function ta(e){if(!e||!e.options)throw se("App Configuration");if(!e.name)throw se("App Name");const t=["projectId","apiKey","appId"];for(const n of t)if(!e.options[n])throw se(n);return{appName:e.name,projectId:e.options.projectId,apiKey:e.options.apiKey,appId:e.options.appId}}function se(e){return B.create("missing-app-config-values",{valueName:e})}/**
|
||||
* @license
|
||||
* Copyright 2020 Google LLC
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/const Ht="installations",na="installations-internal",ra=e=>{const t=e.getProvider("app").getImmediate(),n=ta(t),r=V(t,"heartbeat");return{app:t,appConfig:n,heartbeatServiceProvider:r,_delete:()=>Promise.resolve()}},ia=e=>{const t=e.getProvider("app").getImmediate(),n=V(t,Ht).getImmediate();return{getId:()=>Qi(n),getToken:i=>Zi(n,i)}};function aa(){R(new v(Ht,ra,"PUBLIC")),R(new v(na,ia,"PRIVATE"))}aa();E(St,Me);E(St,Me,"esm2017");/**
|
||||
* @license
|
||||
* Copyright 2019 Google LLC
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/const G="analytics",sa="firebase_id",oa="origin",ca=60*1e3,la="https://firebase.googleapis.com/v1alpha/projects/-/apps/{app-id}/webConfig",Be="https://www.googletagmanager.com/gtag/js";/**
|
||||
* @license
|
||||
* Copyright 2019 Google LLC
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/const m=new Ce("@firebase/analytics");/**
|
||||
* @license
|
||||
* Copyright 2019 Google LLC
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/const ua={["already-exists"]:"A Firebase Analytics instance with the appId {$id} already exists. Only one Firebase Analytics instance can be created for each appId.",["already-initialized"]:"initializeAnalytics() cannot be called again with different options than those it was initially called with. It can be called again with the same options to return the existing instance, or getAnalytics() can be used to get a reference to the already-intialized instance.",["already-initialized-settings"]:"Firebase Analytics has already been initialized.settings() must be called before initializing any Analytics instanceor it will have no effect.",["interop-component-reg-failed"]:"Firebase Analytics Interop Component failed to instantiate: {$reason}",["invalid-analytics-context"]:"Firebase Analytics is not supported in this environment. Wrap initialization of analytics in analytics.isSupported() to prevent initialization in unsupported environments. Details: {$errorInfo}",["indexeddb-unavailable"]:"IndexedDB unavailable or restricted in this environment. Wrap initialization of analytics in analytics.isSupported() to prevent initialization in unsupported environments. Details: {$errorInfo}",["fetch-throttle"]:"The config fetch request timed out while in an exponential backoff state. Unix timestamp in milliseconds when fetch request throttling ends: {$throttleEndTimeMillis}.",["config-fetch-failed"]:"Dynamic config fetch failed: [{$httpStatus}] {$responseMessage}",["no-api-key"]:'The "apiKey" field is empty in the local Firebase config. Firebase Analytics requires this field tocontain a valid API key.',["no-app-id"]:'The "appId" field is empty in the local Firebase config. Firebase Analytics requires this field tocontain a valid app ID.',["no-client-id"]:'The "client_id" field is empty.',["invalid-gtag-resource"]:"Trusted Types detected an invalid gtag resource: {$gtagURL}."},y=new j("analytics","Analytics",ua);/**
|
||||
* @license
|
||||
* Copyright 2019 Google LLC
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/function da(e){if(!e.startsWith(Be)){const t=y.create("invalid-gtag-resource",{gtagURL:e});return m.warn(t.message),""}return e}function zt(e){return Promise.all(e.map(t=>t.catch(n=>n)))}function fa(e,t){let n;return window.trustedTypes&&(n=window.trustedTypes.createPolicy(e,t)),n}function ha(e,t){const n=fa("firebase-js-sdk-policy",{createScriptURL:da}),r=document.createElement("script"),i=`${Be}?l=${e}&id=${t}`;r.src=n?n==null?void 0:n.createScriptURL(i):i,r.async=!0,document.head.appendChild(r)}function pa(e){let t=[];return Array.isArray(window[e])?t=window[e]:window[e]=t,t}async function ma(e,t,n,r,i,a){const s=r[i];try{if(s)await t[s];else{const c=(await zt(n)).find(l=>l.measurementId===i);c&&await t[c.appId]}}catch(o){m.error(o)}e("config",i,a)}async function ga(e,t,n,r,i){try{let a=[];if(i&&i.send_to){let s=i.send_to;Array.isArray(s)||(s=[s]);const o=await zt(n);for(const c of s){const l=o.find(h=>h.measurementId===c),d=l&&t[l.appId];if(d)a.push(d);else{a=[];break}}}a.length===0&&(a=Object.values(t)),await Promise.all(a),e("event",r,i||{})}catch(a){m.error(a)}}function ba(e,t,n,r){async function i(a,...s){try{if(a==="event"){const[o,c]=s;await ga(e,t,n,o,c)}else if(a==="config"){const[o,c]=s;await ma(e,t,n,r,o,c)}else if(a==="consent"){const[o]=s;e("consent","update",o)}else if(a==="get"){const[o,c,l]=s;e("get",o,c,l)}else if(a==="set"){const[o]=s;e("set",o)}else e(a,...s)}catch(o){m.error(o)}}return i}function Ia(e,t,n,r,i){let a=function(...s){window[r].push(arguments)};return window[i]&&typeof window[i]=="function"&&(a=window[i]),window[i]=ba(a,e,t,n),{gtagCore:a,wrappedGtag:window[i]}}function ya(e){const t=window.document.getElementsByTagName("script");for(const n of Object.values(t))if(n.src&&n.src.includes(Be)&&n.src.includes(e))return n;return null}/**
|
||||
* @license
|
||||
* Copyright 2020 Google LLC
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/const _a=30,Ea=1e3;class wa{constructor(t={},n=Ea){this.throttleMetadata=t,this.intervalMillis=n}getThrottleMetadata(t){return this.throttleMetadata[t]}setThrottleMetadata(t,n){this.throttleMetadata[t]=n}deleteThrottleMetadata(t){delete this.throttleMetadata[t]}}const qt=new wa;function Ta(e){return new Headers({Accept:"application/json","x-goog-api-key":e})}async function va(e){var t;const{appId:n,apiKey:r}=e,i={method:"GET",headers:Ta(r)},a=la.replace("{app-id}",n),s=await fetch(a,i);if(s.status!==200&&s.status!==304){let o="";try{const c=await s.json();!((t=c.error)===null||t===void 0)&&t.message&&(o=c.error.message)}catch{}throw y.create("config-fetch-failed",{httpStatus:s.status,responseMessage:o})}return s.json()}async function Aa(e,t=qt,n){const{appId:r,apiKey:i,measurementId:a}=e.options;if(!r)throw y.create("no-app-id");if(!i){if(a)return{measurementId:a,appId:r};throw y.create("no-api-key")}const s=t.getThrottleMetadata(r)||{backoffCount:0,throttleEndTimeMillis:Date.now()},o=new Da;return setTimeout(async()=>{o.abort()},n!==void 0?n:ca),Wt({appId:r,apiKey:i,measurementId:a},s,o,t)}async function Wt(e,{throttleEndTimeMillis:t,backoffCount:n},r,i=qt){var a;const{appId:s,measurementId:o}=e;try{await Sa(r,t)}catch(c){if(o)return m.warn(`Timed out fetching this Firebase app's measurement ID from the server. Falling back to the measurement ID ${o} provided in the "measurementId" field in the local Firebase config. [${c==null?void 0:c.message}]`),{appId:s,measurementId:o};throw c}try{const c=await va(e);return i.deleteThrottleMetadata(s),c}catch(c){const l=c;if(!Ca(l)){if(i.deleteThrottleMetadata(s),o)return m.warn(`Failed to fetch this Firebase app's measurement ID from the server. Falling back to the measurement ID ${o} provided in the "measurementId" field in the local Firebase config. [${l==null?void 0:l.message}]`),{appId:s,measurementId:o};throw c}const d=Number((a=l==null?void 0:l.customData)===null||a===void 0?void 0:a.httpStatus)===503?Ue(n,i.intervalMillis,_a):Ue(n,i.intervalMillis),h={throttleEndTimeMillis:Date.now()+d,backoffCount:n+1};return i.setThrottleMetadata(s,h),m.debug(`Calling attemptFetch again in ${d} millis`),Wt(e,h,r,i)}}function Sa(e,t){return new Promise((n,r)=>{const i=Math.max(t-Date.now(),0),a=setTimeout(n,i);e.addEventListener(()=>{clearTimeout(a),r(y.create("fetch-throttle",{throttleEndTimeMillis:t}))})})}function Ca(e){if(!(e instanceof k)||!e.customData)return!1;const t=Number(e.customData.httpStatus);return t===429||t===500||t===503||t===504}class Da{constructor(){this.listeners=[]}addEventListener(t){this.listeners.push(t)}abort(){this.listeners.forEach(t=>t())}}async function Ra(e,t,n,r,i){if(i&&i.global){e("event",n,r);return}else{const a=await t,s=Object.assign(Object.assign({},r),{send_to:a});e("event",n,s)}}/**
|
||||
* @license
|
||||
* Copyright 2020 Google LLC
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/async function Ma(){if(ve())try{await Ae()}catch(e){return m.warn(y.create("indexeddb-unavailable",{errorInfo:e==null?void 0:e.toString()}).message),!1}else return m.warn(y.create("indexeddb-unavailable",{errorInfo:"IndexedDB is not available in this environment."}).message),!1;return!0}async function Na(e,t,n,r,i,a,s){var o;const c=Aa(e);c.then(b=>{n[b.measurementId]=b.appId,e.options.measurementId&&b.measurementId!==e.options.measurementId&&m.warn(`The measurement ID in the local Firebase config (${e.options.measurementId}) does not match the measurement ID fetched from the server (${b.measurementId}). To ensure analytics events are always sent to the correct Analytics property, update the measurement ID field in the local config or remove it from the local config.`)}).catch(b=>m.error(b)),t.push(c);const l=Ma().then(b=>{if(b)return r.getId()}),[d,h]=await Promise.all([c,l]);ya(a)||ha(a,d.measurementId),i("js",new Date);const g=(o=s==null?void 0:s.config)!==null&&o!==void 0?o:{};return g[oa]="firebase",g.update=!0,h!=null&&(g[sa]=h),i("config",d.measurementId,g),d.measurementId}/**
|
||||
* @license
|
||||
* Copyright 2019 Google LLC
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/class Oa{constructor(t){this.app=t}_delete(){return delete U[this.app.options.appId],Promise.resolve()}}let U={},Qe=[];const Ze={};let oe="dataLayer",Pa="gtag",et,Gt,tt=!1;function Ba(){const e=[];if(Yn()&&e.push("This is a browser extension environment."),bt()||e.push("Cookies are not available."),e.length>0){const t=e.map((r,i)=>`(${i+1}) ${r}`).join(" "),n=y.create("invalid-analytics-context",{errorInfo:t});m.warn(n.message)}}function $a(e,t,n){Ba();const r=e.options.appId;if(!r)throw y.create("no-app-id");if(!e.options.apiKey)if(e.options.measurementId)m.warn(`The "apiKey" field is empty in the local Firebase config. This is needed to fetch the latest measurement ID for this Firebase app. Falling back to the measurement ID ${e.options.measurementId} provided in the "measurementId" field in the local Firebase config.`);else throw y.create("no-api-key");if(U[r]!=null)throw y.create("already-exists",{id:r});if(!tt){pa(oe);const{wrappedGtag:a,gtagCore:s}=Ia(U,Qe,Ze,oe,Pa);Gt=a,et=s,tt=!0}return U[r]=Na(e,Qe,Ze,t,et,oe,n),new Oa(e)}function ka(e=Et()){e=Se(e);const t=V(e,G);return t.isInitialized()?t.getImmediate():Fa(e)}function Fa(e,t={}){const n=V(e,G);if(n.isInitialized()){const i=n.getImmediate();if(z(t,n.getOptions()))return i;throw y.create("already-initialized")}return n.initialize({options:t})}function La(e,t,n,r){e=Se(e),Ra(Gt,U[e.app.options.appId],t,n,r).catch(i=>m.error(i))}const nt="@firebase/analytics",rt="0.10.0";function Ua(){R(new v(G,(t,{options:n})=>{const r=t.getProvider("app").getImmediate(),i=t.getProvider("installations-internal").getImmediate();return $a(r,i,n)},"PUBLIC")),R(new v("analytics-internal",e,"PRIVATE")),E(nt,rt),E(nt,rt,"esm2017");function e(t){try{const n=t.getProvider(G).getImmediate();return{logEvent:(r,i,a)=>La(n,r,i,a)}}catch(n){throw y.create("interop-component-reg-failed",{reason:n})}}}Ua();const it="@firebase/performance",we="0.6.4";/**
|
||||
* @license
|
||||
* Copyright 2020 Google LLC
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/const Kt=we,xa="FB-PERF-TRACE-START",ja="FB-PERF-TRACE-STOP",Te="FB-PERF-TRACE-MEASURE",Xt="_wt_",Yt="_fp",Jt="_fcp",Qt="_fid",Zt="@firebase/performance/config",en="@firebase/performance/configexpire",Va="performance",tn="Performance";/**
|
||||
* @license
|
||||
* Copyright 2020 Google LLC
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/const Ha={["trace started"]:"Trace {$traceName} was started before.",["trace stopped"]:"Trace {$traceName} is not running.",["nonpositive trace startTime"]:"Trace {$traceName} startTime should be positive.",["nonpositive trace duration"]:"Trace {$traceName} duration should be positive.",["no window"]:"Window is not available.",["no app id"]:"App id is not available.",["no project id"]:"Project id is not available.",["no api key"]:"Api key is not available.",["invalid cc log"]:"Attempted to queue invalid cc event",["FB not default"]:"Performance can only start when Firebase app instance is the default one.",["RC response not ok"]:"RC response is not ok",["invalid attribute name"]:"Attribute name {$attributeName} is invalid.",["invalid attribute value"]:"Attribute value {$attributeValue} is invalid.",["invalid custom metric name"]:"Custom metric name {$customMetricName} is invalid",["invalid String merger input"]:"Input for String merger is invalid, contact support team to resolve.",["already initialized"]:"initializePerformance() has already been called with different options. To avoid this error, call initializePerformance() with the same options as when it was originally called, or call getPerformance() to return the already initialized instance."},p=new j(Va,tn,Ha);/**
|
||||
* @license
|
||||
* Copyright 2020 Google LLC
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/const w=new Ce(tn);w.logLevel=u.INFO;/**
|
||||
* @license
|
||||
* Copyright 2020 Google LLC
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/let ce,nn;class f{constructor(t){if(this.window=t,!t)throw p.create("no window");this.performance=t.performance,this.PerformanceObserver=t.PerformanceObserver,this.windowLocation=t.location,this.navigator=t.navigator,this.document=t.document,this.navigator&&this.navigator.cookieEnabled&&(this.localStorage=t.localStorage),t.perfMetrics&&t.perfMetrics.onFirstInputDelay&&(this.onFirstInputDelay=t.perfMetrics.onFirstInputDelay)}getUrl(){return this.windowLocation.href.split("?")[0]}mark(t){!this.performance||!this.performance.mark||this.performance.mark(t)}measure(t,n,r){!this.performance||!this.performance.measure||this.performance.measure(t,n,r)}getEntriesByType(t){return!this.performance||!this.performance.getEntriesByType?[]:this.performance.getEntriesByType(t)}getEntriesByName(t){return!this.performance||!this.performance.getEntriesByName?[]:this.performance.getEntriesByName(t)}getTimeOrigin(){return this.performance&&(this.performance.timeOrigin||this.performance.timing.navigationStart)}requiredApisAvailable(){return!fetch||!Promise||!bt()?(w.info("Firebase Performance cannot start if browser does not support fetch and Promise or cookie is disabled."),!1):ve()?!0:(w.info("IndexedDB is not supported by current browswer"),!1)}setupObserver(t,n){if(!this.PerformanceObserver)return;new this.PerformanceObserver(i=>{for(const a of i.getEntries())n(a)}).observe({entryTypes:[t]})}static getInstance(){return ce===void 0&&(ce=new f(nn)),ce}}function za(e){nn=e}/**
|
||||
* @license
|
||||
* Copyright 2020 Google LLC
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/let rn;function qa(e){const t=e.getId();return t.then(n=>{rn=n}),t}function $e(){return rn}function Wa(e){const t=e.getToken();return t.then(n=>{}),t}/**
|
||||
* @license
|
||||
* Copyright 2020 Google LLC
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/function at(e,t){const n=e.length-t.length;if(n<0||n>1)throw p.create("invalid String merger input");const r=[];for(let i=0;i<e.length;i++)r.push(e.charAt(i)),t.length>i&&r.push(t.charAt(i));return r.join("")}/**
|
||||
* @license
|
||||
* Copyright 2019 Google LLC
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/let le;class I{constructor(){this.instrumentationEnabled=!0,this.dataCollectionEnabled=!0,this.loggingEnabled=!1,this.tracesSamplingRate=1,this.networkRequestsSamplingRate=1,this.logEndPointUrl="https://firebaselogging.googleapis.com/v0cc/log?format=json_proto",this.flTransportEndpointUrl=at("hts/frbslgigp.ogepscmv/ieo/eaylg","tp:/ieaeogn-agolai.o/1frlglgc/o"),this.transportKey=at("AzSC8r6ReiGqFMyfvgow","Iayx0u-XT3vksVM-pIV"),this.logSource=462,this.logTraceAfterSampling=!1,this.logNetworkAfterSampling=!1,this.configTimeToLive=12}getFlTransportFullUrl(){return this.flTransportEndpointUrl.concat("?key=",this.transportKey)}static getInstance(){return le===void 0&&(le=new I),le}}/**
|
||||
* @license
|
||||
* Copyright 2020 Google LLC
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/var F;(function(e){e[e.UNKNOWN=0]="UNKNOWN",e[e.VISIBLE=1]="VISIBLE",e[e.HIDDEN=2]="HIDDEN"})(F||(F={}));const Ga=["firebase_","google_","ga_"],Ka=new RegExp("^[a-zA-Z]\\w*$"),Xa=40,Ya=100;function Ja(){const e=f.getInstance().navigator;return e!=null&&e.serviceWorker?e.serviceWorker.controller?2:3:1}function an(){switch(f.getInstance().document.visibilityState){case"visible":return F.VISIBLE;case"hidden":return F.HIDDEN;default:return F.UNKNOWN}}function Qa(){const t=f.getInstance().navigator.connection;switch(t&&t.effectiveType){case"slow-2g":return 1;case"2g":return 2;case"3g":return 3;case"4g":return 4;default:return 0}}function Za(e){return e.length===0||e.length>Xa?!1:!Ga.some(n=>e.startsWith(n))&&!!e.match(Ka)}function es(e){return e.length!==0&&e.length<=Ya}/**
|
||||
* @license
|
||||
* Copyright 2020 Google LLC
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/function sn(e){var t;const n=(t=e.options)===null||t===void 0?void 0:t.appId;if(!n)throw p.create("no app id");return n}function ts(e){var t;const n=(t=e.options)===null||t===void 0?void 0:t.projectId;if(!n)throw p.create("no project id");return n}function ns(e){var t;const n=(t=e.options)===null||t===void 0?void 0:t.apiKey;if(!n)throw p.create("no api key");return n}/**
|
||||
* @license
|
||||
* Copyright 2020 Google LLC
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/const rs="0.0.1",_={loggingEnabled:!0},is="FIREBASE_INSTALLATIONS_AUTH";function as(e,t){const n=ss();return n?(st(n),Promise.resolve()):ls(e,t).then(st).then(r=>os(r),()=>{})}function ss(){const e=f.getInstance().localStorage;if(!e)return;const t=e.getItem(en);if(!t||!us(t))return;const n=e.getItem(Zt);if(n)try{return JSON.parse(n)}catch{return}}function os(e){const t=f.getInstance().localStorage;!e||!t||(t.setItem(Zt,JSON.stringify(e)),t.setItem(en,String(Date.now()+I.getInstance().configTimeToLive*60*60*1e3)))}const cs="Could not fetch config, will use default configs";function ls(e,t){return Wa(e.installations).then(n=>{const r=ts(e.app),i=ns(e.app),a=`https://firebaseremoteconfig.googleapis.com/v1/projects/${r}/namespaces/fireperf:fetch?key=${i}`,s=new Request(a,{method:"POST",headers:{Authorization:`${is} ${n}`},body:JSON.stringify({app_instance_id:t,app_instance_id_token:n,app_id:sn(e.app),app_version:Kt,sdk_version:rs})});return fetch(s).then(o=>{if(o.ok)return o.json();throw p.create("RC response not ok")})}).catch(()=>{w.info(cs)})}function st(e){if(!e)return e;const t=I.getInstance(),n=e.entries||{};return n.fpr_enabled!==void 0?t.loggingEnabled=String(n.fpr_enabled)==="true":t.loggingEnabled=_.loggingEnabled,n.fpr_log_source?t.logSource=Number(n.fpr_log_source):_.logSource&&(t.logSource=_.logSource),n.fpr_log_endpoint_url?t.logEndPointUrl=n.fpr_log_endpoint_url:_.logEndPointUrl&&(t.logEndPointUrl=_.logEndPointUrl),n.fpr_log_transport_key?t.transportKey=n.fpr_log_transport_key:_.transportKey&&(t.transportKey=_.transportKey),n.fpr_vc_network_request_sampling_rate!==void 0?t.networkRequestsSamplingRate=Number(n.fpr_vc_network_request_sampling_rate):_.networkRequestsSamplingRate!==void 0&&(t.networkRequestsSamplingRate=_.networkRequestsSamplingRate),n.fpr_vc_trace_sampling_rate!==void 0?t.tracesSamplingRate=Number(n.fpr_vc_trace_sampling_rate):_.tracesSamplingRate!==void 0&&(t.tracesSamplingRate=_.tracesSamplingRate),t.logTraceAfterSampling=ot(t.tracesSamplingRate),t.logNetworkAfterSampling=ot(t.networkRequestsSamplingRate),e}function us(e){return Number(e)>Date.now()}function ot(e){return Math.random()<=e}/**
|
||||
* @license
|
||||
* Copyright 2020 Google LLC
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/let ke=1,ue;function on(e){return ke=2,ue=ue||fs(e),ue}function ds(){return ke===3}function fs(e){return hs().then(()=>qa(e.installations)).then(t=>as(e,t)).then(()=>ct(),()=>ct())}function hs(){const e=f.getInstance().document;return new Promise(t=>{if(e&&e.readyState!=="complete"){const n=()=>{e.readyState==="complete"&&(e.removeEventListener("readystatechange",n),t())};e.addEventListener("readystatechange",n)}else t()})}function ct(){ke=3}/**
|
||||
* @license
|
||||
* Copyright 2020 Google LLC
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/const Fe=10*1e3,ps=5.5*1e3,cn=3,ms=1e3;let K=cn,D=[],lt=!1;function gs(){lt||(J(ps),lt=!0)}function J(e){setTimeout(()=>{if(K!==0){if(!D.length)return J(Fe);bs()}},e)}function bs(){const e=D.splice(0,ms),t=e.map(r=>({source_extension_json_proto3:r.message,event_time_ms:String(r.eventTime)})),n={request_time_ms:String(Date.now()),client_info:{client_type:1,js_client_info:{}},log_source:I.getInstance().logSource,log_event:t};Is(n,e).catch(()=>{D=[...e,...D],K--,w.info(`Tries left: ${K}.`),J(Fe)})}function Is(e,t){return ys(e).then(n=>(n.ok||w.info("Call to Firebase backend failed."),n.json())).then(n=>{const r=Number(n.nextRequestWaitMillis);let i=Fe;isNaN(r)||(i=Math.max(r,i));const a=n.logResponseDetails;Array.isArray(a)&&a.length>0&&a[0].responseAction==="RETRY_REQUEST_LATER"&&(D=[...t,...D],w.info("Retry transport request later.")),K=cn,J(i)})}function ys(e){const t=I.getInstance().getFlTransportFullUrl();return fetch(t,{method:"POST",body:JSON.stringify(e)})}function _s(e){if(!e.eventTime||!e.message)throw p.create("invalid cc log");D=[...D,e]}function Es(e){return(...t)=>{const n=e(...t);_s({message:n,eventTime:Date.now()})}}/**
|
||||
* @license
|
||||
* Copyright 2020 Google LLC
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/let de;function ln(e,t){de||(de=Es(Ts)),de(e,t)}function H(e){const t=I.getInstance();!t.instrumentationEnabled&&e.isAuto||!t.dataCollectionEnabled&&!e.isAuto||f.getInstance().requiredApisAvailable()&&(e.isAuto&&an()!==F.VISIBLE||(ds()?fe(e):on(e.performanceController).then(()=>fe(e),()=>fe(e))))}function fe(e){if(!$e())return;const t=I.getInstance();!t.loggingEnabled||!t.logTraceAfterSampling||setTimeout(()=>ln(e,1),0)}function ws(e){const t=I.getInstance();if(!t.instrumentationEnabled)return;const n=e.url,r=t.logEndPointUrl.split("?")[0],i=t.flTransportEndpointUrl.split("?")[0];n===r||n===i||!t.loggingEnabled||!t.logNetworkAfterSampling||setTimeout(()=>ln(e,0),0)}function Ts(e,t){return t===0?vs(e):As(e)}function vs(e){const t={url:e.url,http_method:e.httpMethod||0,http_response_code:200,response_payload_bytes:e.responsePayloadBytes,client_start_time_us:e.startTimeUs,time_to_response_initiated_us:e.timeToResponseInitiatedUs,time_to_response_completed_us:e.timeToResponseCompletedUs},n={application_info:un(e.performanceController.app),network_request_metric:t};return JSON.stringify(n)}function As(e){const t={name:e.name,is_auto:e.isAuto,client_start_time_us:e.startTimeUs,duration_us:e.durationUs};Object.keys(e.counters).length!==0&&(t.counters=e.counters);const n=e.getAttributes();Object.keys(n).length!==0&&(t.custom_attributes=n);const r={application_info:un(e.performanceController.app),trace_metric:t};return JSON.stringify(r)}function un(e){return{google_app_id:sn(e),app_instance_id:$e(),web_app_info:{sdk_version:Kt,page_url:f.getInstance().getUrl(),service_worker_status:Ja(),visibility_state:an(),effective_connection_type:Qa()},application_process_state:0}}/**
|
||||
* @license
|
||||
* Copyright 2020 Google LLC
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/const Ss=100,Cs="_",Ds=[Yt,Jt,Qt];function Rs(e,t){return e.length===0||e.length>Ss?!1:t&&t.startsWith(Xt)&&Ds.indexOf(e)>-1||!e.startsWith(Cs)}function Ms(e){const t=Math.floor(e);return t<e&&w.info(`Metric value should be an Integer, setting the value as : ${t}.`),t}/**
|
||||
* @license
|
||||
* Copyright 2020 Google LLC
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/class O{constructor(t,n,r=!1,i){this.performanceController=t,this.name=n,this.isAuto=r,this.state=1,this.customAttributes={},this.counters={},this.api=f.getInstance(),this.randomId=Math.floor(Math.random()*1e6),this.isAuto||(this.traceStartMark=`${xa}-${this.randomId}-${this.name}`,this.traceStopMark=`${ja}-${this.randomId}-${this.name}`,this.traceMeasure=i||`${Te}-${this.randomId}-${this.name}`,i&&this.calculateTraceMetrics())}start(){if(this.state!==1)throw p.create("trace started",{traceName:this.name});this.api.mark(this.traceStartMark),this.state=2}stop(){if(this.state!==2)throw p.create("trace stopped",{traceName:this.name});this.state=3,this.api.mark(this.traceStopMark),this.api.measure(this.traceMeasure,this.traceStartMark,this.traceStopMark),this.calculateTraceMetrics(),H(this)}record(t,n,r){if(t<=0)throw p.create("nonpositive trace startTime",{traceName:this.name});if(n<=0)throw p.create("nonpositive trace duration",{traceName:this.name});if(this.durationUs=Math.floor(n*1e3),this.startTimeUs=Math.floor(t*1e3),r&&r.attributes&&(this.customAttributes=Object.assign({},r.attributes)),r&&r.metrics)for(const i of Object.keys(r.metrics))isNaN(Number(r.metrics[i]))||(this.counters[i]=Math.floor(Number(r.metrics[i])));H(this)}incrementMetric(t,n=1){this.counters[t]===void 0?this.putMetric(t,n):this.putMetric(t,this.counters[t]+n)}putMetric(t,n){if(Rs(t,this.name))this.counters[t]=Ms(n??0);else throw p.create("invalid custom metric name",{customMetricName:t})}getMetric(t){return this.counters[t]||0}putAttribute(t,n){const r=Za(t),i=es(n);if(r&&i){this.customAttributes[t]=n;return}if(!r)throw p.create("invalid attribute name",{attributeName:t});if(!i)throw p.create("invalid attribute value",{attributeValue:n})}getAttribute(t){return this.customAttributes[t]}removeAttribute(t){this.customAttributes[t]!==void 0&&delete this.customAttributes[t]}getAttributes(){return Object.assign({},this.customAttributes)}setStartTime(t){this.startTimeUs=t}setDuration(t){this.durationUs=t}calculateTraceMetrics(){const t=this.api.getEntriesByName(this.traceMeasure),n=t&&t[0];n&&(this.durationUs=Math.floor(n.duration*1e3),this.startTimeUs=Math.floor((n.startTime+this.api.getTimeOrigin())*1e3))}static createOobTrace(t,n,r,i){const a=f.getInstance().getUrl();if(!a)return;const s=new O(t,Xt+a,!0),o=Math.floor(f.getInstance().getTimeOrigin()*1e3);s.setStartTime(o),n&&n[0]&&(s.setDuration(Math.floor(n[0].duration*1e3)),s.putMetric("domInteractive",Math.floor(n[0].domInteractive*1e3)),s.putMetric("domContentLoadedEventEnd",Math.floor(n[0].domContentLoadedEventEnd*1e3)),s.putMetric("loadEventEnd",Math.floor(n[0].loadEventEnd*1e3)));const c="first-paint",l="first-contentful-paint";if(r){const d=r.find(g=>g.name===c);d&&d.startTime&&s.putMetric(Yt,Math.floor(d.startTime*1e3));const h=r.find(g=>g.name===l);h&&h.startTime&&s.putMetric(Jt,Math.floor(h.startTime*1e3)),i&&s.putMetric(Qt,Math.floor(i*1e3))}H(s)}static createUserTimingTrace(t,n){const r=new O(t,n,!1,n);H(r)}}/**
|
||||
* @license
|
||||
* Copyright 2020 Google LLC
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/function ut(e,t){const n=t;if(!n||n.responseStart===void 0)return;const r=f.getInstance().getTimeOrigin(),i=Math.floor((n.startTime+r)*1e3),a=n.responseStart?Math.floor((n.responseStart-n.startTime)*1e3):void 0,s=Math.floor((n.responseEnd-n.startTime)*1e3),o=n.name&&n.name.split("?")[0],c={performanceController:e,url:o,responsePayloadBytes:n.transferSize,startTimeUs:i,timeToResponseInitiatedUs:a,timeToResponseCompletedUs:s};ws(c)}/**
|
||||
* @license
|
||||
* Copyright 2020 Google LLC
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/const Ns=5e3;function dt(e){$e()&&(setTimeout(()=>Ps(e),0),setTimeout(()=>Os(e),0),setTimeout(()=>Bs(e),0))}function Os(e){const t=f.getInstance(),n=t.getEntriesByType("resource");for(const r of n)ut(e,r);t.setupObserver("resource",r=>ut(e,r))}function Ps(e){const t=f.getInstance(),n=t.getEntriesByType("navigation"),r=t.getEntriesByType("paint");if(t.onFirstInputDelay){let i=setTimeout(()=>{O.createOobTrace(e,n,r),i=void 0},Ns);t.onFirstInputDelay(a=>{i&&(clearTimeout(i),O.createOobTrace(e,n,r,a))})}else O.createOobTrace(e,n,r)}function Bs(e){const t=f.getInstance(),n=t.getEntriesByType("measure");for(const r of n)ft(e,r);t.setupObserver("measure",r=>ft(e,r))}function ft(e,t){const n=t.name;n.substring(0,Te.length)!==Te&&O.createUserTimingTrace(e,n)}/**
|
||||
* @license
|
||||
* Copyright 2020 Google LLC
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/class $s{constructor(t,n){this.app=t,this.installations=n,this.initialized=!1}_init(t){this.initialized||((t==null?void 0:t.dataCollectionEnabled)!==void 0&&(this.dataCollectionEnabled=t.dataCollectionEnabled),(t==null?void 0:t.instrumentationEnabled)!==void 0&&(this.instrumentationEnabled=t.instrumentationEnabled),f.getInstance().requiredApisAvailable()?Ae().then(n=>{n&&(gs(),on(this).then(()=>dt(this),()=>dt(this)),this.initialized=!0)}).catch(n=>{w.info(`Environment doesn't support IndexedDB: ${n}`)}):w.info('Firebase Performance cannot start if the browser does not support "Fetch" and "Promise", or cookies are disabled.'))}set instrumentationEnabled(t){I.getInstance().instrumentationEnabled=t}get instrumentationEnabled(){return I.getInstance().instrumentationEnabled}set dataCollectionEnabled(t){I.getInstance().dataCollectionEnabled=t}get dataCollectionEnabled(){return I.getInstance().dataCollectionEnabled}}const ks="[DEFAULT]";function Fs(e=Et()){return e=Se(e),V(e,"performance").getImmediate()}const Ls=(e,{options:t})=>{const n=e.getProvider("app").getImmediate(),r=e.getProvider("installations-internal").getImmediate();if(n.name!==ks)throw p.create("FB not default");if(typeof window>"u")throw p.create("no window");za(window);const i=new $s(n,r);return i._init(t),i};function Us(){R(new v("performance",Ls,"PUBLIC")),E(it,we),E(it,we,"esm2017")}Us();const xs=e=>(In("data-v-fd8ce0a8"),e=e(),yn(),e),js=xs(()=>T("div",{"data-v-98ddab3d":"","data-v-8f7cd5e4":"",class:"VPContent",id:"VPContent"},[T("div",{"data-v-6c4a3ffe":"","data-v-98ddab3d":"",class:"NotFound"},[T("img",{src:"https://rust.coldmint.top/ftp/ling/cdnpng/logo.png",alt:"",class:"notfound-img"}),T("p",{"data-v-6c4a3ffe":"",class:"code"},"404"),T("h1",{"data-v-6c4a3ffe":"",class:"title"}," 你干嘛~,这里什么都没有! "),T("div",{"data-v-6c4a3ffe":"",class:"divider"}),T("blockquote",{"data-v-6c4a3ffe":"",class:"quote"}," 你寻找的页面可能不存在或被迁移…… "),T("div",{"data-v-6c4a3ffe":"",class:"action"},[T("a",{"data-v-6c4a3ffe":"",class:"link",href:"/","aria-label":"go to home"}," 返回主页 ")])])],-1)),Vs={__name:"NotFound",setup(e){const{Layout:t}=ht;return(n,r)=>(pn(),mn(bn(t),null,{"not-found":gn(()=>[js]),_:1}))}},Hs=hn(Vs,[["__scopeId","data-v-fd8ce0a8"]]),zs=()=>{const t=_t({apiKey:"AIzaSyANVvapu0ihi1cM8ZzuXTkwjx9lM_J1RyQ",authDomain:"rw-api-code-d0779.firebaseapp.com",projectId:"rw-api-code-d0779",storageBucket:"rw-api-code-d0779.appspot.com",messagingSenderId:"363611843335",appId:"1:363611843335:web:f15aef7ab427f52b4033a2",measurementId:"G-XJH5TKP5VL"});return ka(t),Fs(t),"Firebase initialized successfully"};(async function(){try{const e=await zs();console.log(e)}catch(e){console.error(e)}})();function qs(e){return new Promise(t=>setTimeout(t,e))}async function Ws(){try{await navigator.permissions.query({name:"clipboard-write"})}catch(e){console.error(e)}}async function Gs(){try{await qs(1e3);const e=document.getElementsByClassName("copy");for(let t=0;t<e.length;t++){const n=e[t];n.addEventListener("touchend",async()=>{await Ws();const a=[...n.parentNode.querySelector("code").querySelectorAll("span")],s=[...new Set(a.map(o=>o.textContent))].join("");try{await navigator.clipboard.writeText(s)}catch{const c=document.createElement("textarea");c.value=s,document.body.appendChild(c),c.select(),document.execCommand("copy"),document.body.removeChild(c)}})}}catch(e){console.error(e)}}Gs();const Ks={...ht,Layout:Hs};function dn(e){if(e.extends){const t=dn(e.extends);return{...t,...e,async enhanceApp(n){t.enhanceApp&&await t.enhanceApp(n),e.enhanceApp&&await e.enhanceApp(n)}}}return e}const L=dn(Ks),Xs=_n({name:"VitePressApp",setup(){const{site:e}=wn();return Tn(()=>{vn(()=>{document.documentElement.lang=e.value.lang,document.documentElement.dir=e.value.dir})}),An(),Sn(),Cn(),L.setup&&L.setup(),()=>Dn(L.Layout)}});async function Ys(){const e=Qs(),t=Js();t.provide(Rn,e);const n=Mn(e.route);return t.provide(Nn,n),t.component("Content",On),t.component("ClientOnly",Pn),Object.defineProperties(t.config.globalProperties,{$frontmatter:{get(){return n.frontmatter.value}},$params:{get(){return n.page.value.params}}}),L.enhanceApp&&await L.enhanceApp({app:t,router:e,siteData:Bn}),{app:t,router:e,data:n}}function Js(){return $n(Xs)}function Qs(){let e=he,t;return kn(n=>{let r=Fn(n);return e&&(t=r),(e||t===r)&&(r=r.replace(/\.js$/,".lean.js")),he&&(e=!1),Ln(()=>import(r),[])},L.NotFound)}he&&Ys().then(({app:e,router:t,data:n})=>{t.go().then(()=>{En(t.route,n.site),e.mount("#app")})});export{Ys as createApp};
|
1
assets/chunks/@localSearchIndexroot.e1eaeb94.js
Normal file
1
assets/chunks/VPLocalSearchBox.d1ada2c9.js
Normal file
2
assets/chunks/framework.fcc0bf38.js
Normal file
7
assets/chunks/theme.9136979b.js
Normal file
1
assets/cos.md.4cc32180.js
Normal file
|
@ -0,0 +1 @@
|
|||
import{_ as t,c as a,o as s,V as r}from"./chunks/framework.fcc0bf38.js";const g=JSON.parse('{"title":"","description":"","frontmatter":{},"headers":[],"relativePath":"cos.md","filePath":"cos.md"}'),e={name:"cos.md"},b=r('<h3 id="站点开发贡献者-截止到2023-8-22" tabindex="-1">站点开发贡献者-截止到2023-8-22 <a class="header-anchor" href="#站点开发贡献者-截止到2023-8-22" aria-label="Permalink to "站点开发贡献者-截止到2023-8-22""></a></h3><table><tr><td align="center"><a href="https://github.com/shishanyue"><img src="https://avatars.githubusercontent.com/u/62888460?v=4" width="100;" alt="shishanyue"><br><sub><b>Shishanyue</b></sub><br>RWE作者 <br>第一深度 </a></td><td align="center"><a href="https://github.com/LingASDJ"><img src="https://avatars.githubusercontent.com/u/70191651?v=4" width="100;" alt="LingASDJ"><br><sub><b>JDSA Ling</b></sub><br>站长 </a></td><td align="center"><a href="https://github.com/tobby3600"><img src="https://avatars.githubusercontent.com/u/79432329?v=4" width="100;" alt="tobby3600"><br><sub><b>Tobby</b></sub><br>逻辑组 </a></td><td align="center"><a href="https://github.com/mason369"><img src="https://avatars.githubusercontent.com/u/93964390?v=4" width="100;" alt="mason369"><br><sub><b>Mason</b></sub><br>技术支持 <br>副站长 </a></td><td align="center"><a href="https://github.com/liusxs"><img src="https://avatars.githubusercontent.com/u/101164913?v=4" width="100;" alt="liusxs"><br><sub><b>Liuliu</b></sub><br>布局优化 <br>副站长 </a></td><td align="center"><a href="https://github.com/allureluoli"><img src="https://avatars.githubusercontent.com/u/106828088?v=4" width="100;" alt="allureluoli"><br><sub><b>二月</b></sub><br>图像组 <br>二月可爱捏 </a></td></tr><tr><td align="center"><a href="https://github.com/WisenextTime"><img src="https://avatars.githubusercontent.com/u/141509640?v=4" width="100;" alt="WisenextTime"><br><sub><b>作业中毒</b></sub><br>刷兵运动组 <br>催逝员 </a></td><td align="center"><a href="https://github.com/Thisisafox"><img src="https://avatars.githubusercontent.com/u/141534430?v=4" width="100;" alt="Thisisafox"><br><sub><b>屑狐狸</b></sub><br>附属攻击组 <br>大聪明 </a></td><td align="center"><a href="#"><img src="https://avatars.githubusercontent.com/in/29110?s=64&v=4" width="100;" alt="Thisisafox"><br><sub><b>???</b></sub><br>更多贡献者 <br>等待你的到来 </a></td></tr></table>',2),i=[b];function h(u,c,n,o,l,d){return s(),a("div",null,i)}const p=t(e,[["render",h]]);export{g as __pageData,p as default};
|
1
assets/cos.md.4cc32180.lean.js
Normal file
|
@ -0,0 +1 @@
|
|||
import{_ as t,c as a,o as s,V as r}from"./chunks/framework.fcc0bf38.js";const g=JSON.parse('{"title":"","description":"","frontmatter":{},"headers":[],"relativePath":"cos.md","filePath":"cos.md"}'),e={name:"cos.md"},b=r("",2),i=[b];function h(u,c,n,o,l,d){return s(),a("div",null,i)}const p=t(e,[["render",h]]);export{g as __pageData,p as default};
|
1
assets/index.md.7a8a1ce3.js
Normal file
|
@ -0,0 +1 @@
|
|||
import{_ as t,c as e,o as n}from"./chunks/framework.fcc0bf38.js";const m=JSON.parse('{"title":"","description":"","frontmatter":{"layout":"home","action":null,"hero":{"name":"铁锈战争-API-Code","text":"轻松编码,轻松学习","tagline":"学习Mod,制作Mod,创新Mod","image":{"src":"https://rust.coldmint.top/ftp/ling/cdnpng/logo.png","alt":"RW-API-Code"},"actions":[{"theme":"alt","text":"编写指南","link":"/api-dev"},{"theme":"brand","text":"Github","link":"https://github.com/LingASDJ/RW-API-Code"}]},"features":[{"title":"单位代码表","details":"学习最基础的铁锈单位API-Code","link":"/src/Unit/core","linkText":"让我们立刻开始吧!"},{"title":"地图代码表","details":"学习铁锈的地图TMX代码表","linkText":"让我们立刻开始吧![开发中]"},{"title":"调试代码表","details":"学习铁锈的高级调试代码表(仅Android)","linkText":"让我们立刻开始吧![开发中]"},{"title":"RW-Engine指南","details":"学习铁锈Mod RW-Engine的使用(仅Android)","link":"/src/RW-Engine/quick-start","linkText":"让我们立刻开始吧![开发中]"}]},"headers":[],"relativePath":"index.md","filePath":"index.md"}'),i={name:"index.md"};function o(a,d,l,r,s,c){return n(),e("div")}const x=t(i,[["render",o]]);export{m as __pageData,x as default};
|
1
assets/index.md.7a8a1ce3.lean.js
Normal file
|
@ -0,0 +1 @@
|
|||
import{_ as t,c as e,o as n}from"./chunks/framework.fcc0bf38.js";const m=JSON.parse('{"title":"","description":"","frontmatter":{"layout":"home","action":null,"hero":{"name":"铁锈战争-API-Code","text":"轻松编码,轻松学习","tagline":"学习Mod,制作Mod,创新Mod","image":{"src":"https://rust.coldmint.top/ftp/ling/cdnpng/logo.png","alt":"RW-API-Code"},"actions":[{"theme":"alt","text":"编写指南","link":"/api-dev"},{"theme":"brand","text":"Github","link":"https://github.com/LingASDJ/RW-API-Code"}]},"features":[{"title":"单位代码表","details":"学习最基础的铁锈单位API-Code","link":"/src/Unit/core","linkText":"让我们立刻开始吧!"},{"title":"地图代码表","details":"学习铁锈的地图TMX代码表","linkText":"让我们立刻开始吧![开发中]"},{"title":"调试代码表","details":"学习铁锈的高级调试代码表(仅Android)","linkText":"让我们立刻开始吧![开发中]"},{"title":"RW-Engine指南","details":"学习铁锈Mod RW-Engine的使用(仅Android)","link":"/src/RW-Engine/quick-start","linkText":"让我们立刻开始吧![开发中]"}]},"headers":[],"relativePath":"index.md","filePath":"index.md"}'),i={name:"index.md"};function o(a,d,l,r,s,c){return n(),e("div")}const x=t(i,[["render",o]]);export{m as __pageData,x as default};
|
BIN
assets/inter-italic-cyrillic-ext.33bd5a8e.woff2
Normal file
BIN
assets/inter-italic-cyrillic.ea42a392.woff2
Normal file
BIN
assets/inter-italic-greek-ext.4fbe9427.woff2
Normal file
BIN
assets/inter-italic-greek.8f4463c4.woff2
Normal file
BIN
assets/inter-italic-latin-ext.bd8920cc.woff2
Normal file
BIN
assets/inter-italic-latin.bd3b6f56.woff2
Normal file
BIN
assets/inter-italic-vietnamese.6ce511fb.woff2
Normal file
BIN
assets/inter-roman-cyrillic-ext.e75737ce.woff2
Normal file
BIN
assets/inter-roman-cyrillic.5f2c6c8c.woff2
Normal file
BIN
assets/inter-roman-greek-ext.ab0619bc.woff2
Normal file
BIN
assets/inter-roman-greek.d5a6d92a.woff2
Normal file
BIN
assets/inter-roman-latin-ext.0030eebd.woff2
Normal file
BIN
assets/inter-roman-latin.2ed14f66.woff2
Normal file
BIN
assets/inter-roman-vietnamese.14ce25a6.woff2
Normal file
1
assets/src_Debug_test.md.501f237e.js
Normal file
|
@ -0,0 +1 @@
|
|||
import{_ as e,c as t,o as s,C as a}from"./chunks/framework.fcc0bf38.js";const u=JSON.parse('{"title":"","description":"","frontmatter":{},"headers":[],"relativePath":"src/Debug/test.md","filePath":"src/Debug/test.md"}'),o={name:"src/Debug/test.md"},r=a("p",null,"fasa",-1),c=[r];function n(_,d,i,p,l,f){return s(),t("div",null,c)}const h=e(o,[["render",n]]);export{u as __pageData,h as default};
|
1
assets/src_Debug_test.md.501f237e.lean.js
Normal file
|
@ -0,0 +1 @@
|
|||
import{_ as e,c as t,o as s,C as a}from"./chunks/framework.fcc0bf38.js";const u=JSON.parse('{"title":"","description":"","frontmatter":{},"headers":[],"relativePath":"src/Debug/test.md","filePath":"src/Debug/test.md"}'),o={name:"src/Debug/test.md"},r=a("p",null,"fasa",-1),c=[r];function n(_,d,i,p,l,f){return s(),t("div",null,c)}const h=e(o,[["render",n]]);export{u as __pageData,h as default};
|
1
assets/src_Map_tsada.md.95d6f1dd.js
Normal file
|
@ -0,0 +1 @@
|
|||
import{_ as a,c as t,o as e}from"./chunks/framework.fcc0bf38.js";const m=JSON.parse('{"title":"","description":"","frontmatter":{},"headers":[],"relativePath":"src/Map/tsada.md","filePath":"src/Map/tsada.md"}'),s={name:"src/Map/tsada.md"};function r(c,o,n,d,p,_){return e(),t("div")}const f=a(s,[["render",r]]);export{m as __pageData,f as default};
|
1
assets/src_Map_tsada.md.95d6f1dd.lean.js
Normal file
|
@ -0,0 +1 @@
|
|||
import{_ as a,c as t,o as e}from"./chunks/framework.fcc0bf38.js";const m=JSON.parse('{"title":"","description":"","frontmatter":{},"headers":[],"relativePath":"src/Map/tsada.md","filePath":"src/Map/tsada.md"}'),s={name:"src/Map/tsada.md"};function r(c,o,n,d,p,_){return e(),t("div")}const f=a(s,[["render",r]]);export{m as __pageData,f as default};
|
31
assets/src_RW-Engine_quick-start.md.a2b4fb07.js
Normal file
|
@ -0,0 +1,31 @@
|
|||
import{_ as n,c as e,o as s,V as a}from"./chunks/framework.fcc0bf38.js";const q=JSON.parse('{"title":"QuickStart","description":"","frontmatter":{"outline":"deep"},"headers":[],"relativePath":"src/RW-Engine/quick-start.md","filePath":"src/RW-Engine/quick-start.md"}'),t={name:"src/RW-Engine/quick-start.md"},o=a(`<h1 id="quickstart" tabindex="-1"><strong>QuickStart</strong> <a class="header-anchor" href="#quickstart" aria-label="Permalink to "**QuickStart**""></a></h1><h2 id="一-安装rw-engine" tabindex="-1">一.安装RW-Engine <a class="header-anchor" href="#一-安装rw-engine" aria-label="Permalink to "一.安装RW-Engine""></a></h2><h3 id="下载rw-engine" tabindex="-1">下载RW-Engine <a class="header-anchor" href="#下载rw-engine" aria-label="Permalink to "下载RW-Engine""></a></h3><pre><code>蓝奏云:
|
||||
</code></pre><h3 id="安装rw-engine" tabindex="-1">安装RW-Engine <a class="header-anchor" href="#安装rw-engine" aria-label="Permalink to "安装RW-Engine""></a></h3><pre><code>解压下载的ZIP,将里面的RW_Engine这个文件夹整个复制到你的mod的目录下。
|
||||
|
||||
文件结构:
|
||||
---units
|
||||
---你的mod1
|
||||
---RW_Engine
|
||||
---mod-info.txt
|
||||
---.........
|
||||
---你的mod2
|
||||
</code></pre><h2 id="二-使用rw-engine" tabindex="-1">二.使用RW-Engine <a class="header-anchor" href="#二-使用rw-engine" aria-label="Permalink to "二.使用RW-Engine""></a></h2><div class="tip custom-block"><p class="custom-block-title">TIP</p><p>如没特殊注明,函数均支持commonCallBack</p></div><h3 id="linetextview-函数列表" tabindex="-1">LineTextView-函数列表 <a class="header-anchor" href="#linetextview-函数列表" aria-label="Permalink to "LineTextView-函数列表""></a></h3><div class="info custom-block"><p class="custom-block-title">INFO</p><p>函数列表: 1.setText <br> Data: ("text",type="string") <br> 设置显示的文本 <br> 2.setTextMax <br> Data: ("textMax",type="number") <br> 设置一行所能显示的最大文本数量 <br> 3.setTextColor <br> Data: ("commonHeadLength",type="number") ("indexStart",type="number") ("indexEnd",type="number") ("color",type="number") <br> 设置文本的颜色 <br> 4.setTextScale <br> Data: ("textScale",type="number") <br> 设置文本的缩放</p></div><h3 id="linetextview-使用" tabindex="-1">LineTextView-使用 <a class="header-anchor" href="#linetextview-使用" aria-label="Permalink to "LineTextView-使用""></a></h3><p>LineTextView作为RW-Engine最基本的组件 <br> 默认以ini被铁锈加载。 <br> 所以使用LineTextView有俩种方式 <br> 第一种是spawnUnits,生成一个LineTextView <br> 或者在附属添加LineTextView <br> 第二种是copyForm这个ini <br></p><div class="info custom-block"><p class="custom-block-title">INFO</p><p>第一种方式</p></div><br><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;">@memory LTVSystem:unit</span></span>
|
||||
<span class="line"></span>
|
||||
<span class="line"><span style="color:#89DDFF;">[hiddenAction_created]</span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;">autoTriggerOnEvent:created</span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;">resetCustomTimer:true</span></span>
|
||||
<span class="line"></span>
|
||||
<span class="line"><span style="color:#676E95;font-style:italic;">#创建文本框</span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;">spawnUnits:LineTextViewSystem</span></span>
|
||||
<span class="line"></span>
|
||||
<span class="line"><span style="color:#676E95;font-style:italic;">#文本框会自动发送tag为addLTVSystemToEpoll给该单位</span></span>
|
||||
<span class="line"><span style="color:#89DDFF;">[hiddenAction_addLTVSystemToEpoll]</span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;">autoTriggerOnEvent:newMessage(</span><span style="color:#F07178;">withTag</span><span style="color:#89DDFF;">=</span><span style="color:#89DDFF;">"</span><span style="color:#C3E88D;">addLTVSystemToEpoll</span><span style="color:#89DDFF;">"</span><span style="color:#A6ACCD;">)</span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;">setUnitMemory:</span><span style="color:#F07178;">LTVSystem</span><span style="color:#A6ACCD;"> </span><span style="color:#89DDFF;">=</span><span style="color:#A6ACCD;"> eventSource</span></span>
|
||||
<span class="line"></span>
|
||||
<span class="line"><span style="color:#89DDFF;">[action_setTextTest]</span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;">text:setText</span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;">isVisible:true</span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;">sendMessageTo:memory.LTVSystem</span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;">sendMessageWithTags:setText</span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;">sendMessageWithData:</span><span style="color:#F07178;">text</span><span style="color:#89DDFF;">=</span><span style="color:#89DDFF;">"</span><span style="color:#C3E88D;">B站关注学画画的十山月</span><span style="color:#89DDFF;">"</span></span></code></pre></div>`,15),l=[o];function i(r,p,c,u,d,y){return s(),e("div",null,l)}const h=n(t,[["render",i]]);export{q as __pageData,h as default};
|
1
assets/src_RW-Engine_quick-start.md.a2b4fb07.lean.js
Normal file
|
@ -0,0 +1 @@
|
|||
import{_ as n,c as e,o as s,V as a}from"./chunks/framework.fcc0bf38.js";const q=JSON.parse('{"title":"QuickStart","description":"","frontmatter":{"outline":"deep"},"headers":[],"relativePath":"src/RW-Engine/quick-start.md","filePath":"src/RW-Engine/quick-start.md"}'),t={name:"src/RW-Engine/quick-start.md"},o=a("",15),l=[o];function i(r,p,c,u,d,y){return s(),e("div",null,l)}const h=n(t,[["render",i]]);export{q as __pageData,h as default};
|
37
assets/src_Unit_attachment.md.2e3e2a58.js
Normal file
|
@ -0,0 +1,37 @@
|
|||
import{_ as a,c as e,o as t,V as n}from"./chunks/framework.fcc0bf38.js";const b=JSON.parse('{"title":"[attachment]组","description":"","frontmatter":{"outline":"deep"},"headers":[],"relativePath":"src/Unit/attachment.md","filePath":"src/Unit/attachment.md"}'),i={name:"src/Unit/attachment.md"},o=n(`<h1 id="attachment-组" tabindex="-1"><strong>[attachment]组</strong> <a class="header-anchor" href="#attachment-组" aria-label="Permalink to "**[attachment]组**""></a></h1><h2 id="第一类-附属代码组" tabindex="-1">第一类-附属代码组 <a class="header-anchor" href="#第一类-附属代码组" aria-label="Permalink to "第一类-附属代码组""></a></h2><h3 id="x-y" tabindex="-1">x/y <a class="header-anchor" href="#x-y" aria-label="Permalink to "x/y""></a></h3><h4 id="x-y-代码简介" tabindex="-1">x/y-代码简介 <a class="header-anchor" href="#x-y-代码简介" aria-label="Permalink to "x/y-代码简介""></a></h4><p>代码:x/y 中文释义:x坐标/y坐标 类型:逻辑布尔值LogicBoolean 隶属于:附属代码组</p><h4 id="x-y-要点指示" tabindex="-1">x/y-要点指示 <a class="header-anchor" href="#x-y-要点指示" aria-label="Permalink to "x/y-要点指示""></a></h4><p>相对主体单位的x偏移坐标/y偏移坐标</p><h4 id="x-y-演示例子" tabindex="-1">x/y-演示例子 <a class="header-anchor" href="#x-y-演示例子" aria-label="Permalink to "x/y-演示例子""></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;">[attachment_1]</span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;">x:10</span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;">y:10</span></span></code></pre></div><hr><h3 id="height" tabindex="-1">height <a class="header-anchor" href="#height" aria-label="Permalink to "height""></a></h3><h4 id="height-代码简介" tabindex="-1">height-代码简介 <a class="header-anchor" href="#height-代码简介" aria-label="Permalink to "height-代码简介""></a></h4><p>代码:height 中文释义:高度 类型:浮点值float 隶属于:附属代码组</p><h4 id="height-要点指示" tabindex="-1">height-要点指示 <a class="header-anchor" href="#height-要点指示" aria-label="Permalink to "height-要点指示""></a></h4><p>附属基于主体单位的高度</p><h4 id="height-演示例子" tabindex="-1">height-演示例子 <a class="header-anchor" href="#height-演示例子" aria-label="Permalink to "height-演示例子""></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;">[attachment_1]</span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;">height:10.5</span></span></code></pre></div><hr><h3 id="idledir" tabindex="-1">idleDir <a class="header-anchor" href="#idledir" aria-label="Permalink to "idleDir""></a></h3><h4 id="idledir-代码简介" tabindex="-1">idleDir-代码简介 <a class="header-anchor" href="#idledir-代码简介" aria-label="Permalink to "idleDir-代码简介""></a></h4><p>代码:idleDir 中文释义:闲置角度 类型:浮点值float 隶属于:附属代码组</p><h4 id="idledir-要点指示" tabindex="-1">idleDir-要点指示 <a class="header-anchor" href="#idledir-要点指示" aria-label="Permalink to "idleDir-要点指示""></a></h4><p>闲置时的角度</p><h4 id="idledir-演示例子" tabindex="-1">idleDir-演示例子 <a class="header-anchor" href="#idledir-演示例子" aria-label="Permalink to "idleDir-演示例子""></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;">[attachment_1]</span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;">idleDir:45</span></span></code></pre></div><hr><h3 id="idledirreversing" tabindex="-1">idleDirReversing <a class="header-anchor" href="#idledirreversing" aria-label="Permalink to "idleDirReversing""></a></h3><h4 id="idledirreversing-代码简介" tabindex="-1">idleDirReversing-代码简介 <a class="header-anchor" href="#idledirreversing-代码简介" aria-label="Permalink to "idleDirReversing-代码简介""></a></h4><p>代码:idleDirReversing 中文释义:闲置角度反转 类型:布尔值bool 隶属于:附属代码组</p><h4 id="idledirreversing-要点指示" tabindex="-1">idleDirReversing-要点指示 <a class="header-anchor" href="#idledirreversing-要点指示" aria-label="Permalink to "idleDirReversing-要点指示""></a></h4><p>闲置时的角度在部分情况下反转</p><h4 id="idledirreversing-演示例子" tabindex="-1">idleDirReversing-演示例子 <a class="header-anchor" href="#idledirreversing-演示例子" aria-label="Permalink to "idleDirReversing-演示例子""></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;">[attachment_1]</span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;">idleDirReversing:true</span></span></code></pre></div><hr><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 中文释义:是可见的 类型:逻辑布尔值LogicBoolean 隶属于:附属代码组</p><h4 id="isvisible-要点指示" tabindex="-1">isVisible-要点指示 <a class="header-anchor" href="#isvisible-要点指示" aria-label="Permalink to "isVisible-要点指示""></a></h4><p>输出false时隐藏附属内单位</p><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;">[attachment_1]</span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;">isVisible:if self.hp>=100</span></span></code></pre></div><hr><h3 id="hidden" tabindex="-1">hidden <a class="header-anchor" href="#hidden" aria-label="Permalink to "hidden""></a></h3><h4 id="hidden-代码简介" tabindex="-1">hidden-代码简介 <a class="header-anchor" href="#hidden-代码简介" aria-label="Permalink to "hidden-代码简介""></a></h4><p>代码:hidden 中文释义:隐藏 类型:布尔值bool 隶属于:附属代码组</p><h4 id="hidden-要点指示" tabindex="-1">hidden-要点指示 <a class="header-anchor" href="#hidden-要点指示" aria-label="Permalink to "hidden-要点指示""></a></h4><p>隐藏此附属内的单位</p><h4 id="hidden-演示例子" tabindex="-1">hidden-演示例子 <a class="header-anchor" href="#hidden-演示例子" aria-label="Permalink to "hidden-演示例子""></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;">[attachment_1]</span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;">hidden:true</span></span></code></pre></div><hr><h3 id="oncreatespawnunitof" tabindex="-1">onCreateSpawnUnitOf <a class="header-anchor" href="#oncreatespawnunitof" aria-label="Permalink to "onCreateSpawnUnitOf""></a></h3><h4 id="oncreatespawnunitof-代码简介" tabindex="-1">onCreateSpawnUnitOf-代码简介 <a class="header-anchor" href="#oncreatespawnunitof-代码简介" aria-label="Permalink to "onCreateSpawnUnitOf-代码简介""></a></h4><p>代码:onCreateSpawnUnitOf 中文释义:创建添加单位 类型:单位unit 隶属于:附属代码组</p><h4 id="oncreatespawnunitof-要点指示" tabindex="-1">onCreateSpawnUnitOf-要点指示 <a class="header-anchor" href="#oncreatespawnunitof-要点指示" aria-label="Permalink to "onCreateSpawnUnitOf-要点指示""></a></h4><p>创建时向此附属位添加的单位</p><h4 id="oncreatespawnunitof-演示例子" tabindex="-1">onCreateSpawnUnitOf-演示例子 <a class="header-anchor" href="#oncreatespawnunitof-演示例子" aria-label="Permalink to "onCreateSpawnUnitOf-演示例子""></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;">[attachment_1]</span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;">onCreateSpawnUnitOf:tank</span></span></code></pre></div><hr><h3 id="canbeattackedanddamaged" tabindex="-1">canBeAttackedAndDamaged <a class="header-anchor" href="#canbeattackedanddamaged" aria-label="Permalink to "canBeAttackedAndDamaged""></a></h3><h4 id="canbeattackedanddamaged-代码简介" tabindex="-1">canBeAttackedAndDamaged-代码简介 <a class="header-anchor" href="#canbeattackedanddamaged-代码简介" aria-label="Permalink to "canBeAttackedAndDamaged-代码简介""></a></h4><p>代码:canBeAttackedAndDamaged 中文释义:可被攻击或伤害 类型:布尔值bool 隶属于:附属代码组</p><h4 id="canbeattackedanddamaged-要点指示" tabindex="-1">canBeAttackedAndDamaged-要点指示 <a class="header-anchor" href="#canbeattackedanddamaged-要点指示" aria-label="Permalink to "canBeAttackedAndDamaged-要点指示""></a></h4><p>设置此附属内的单位可被攻击或伤害</p><h4 id="canbeattackedanddamaged-演示例子" tabindex="-1">canBeAttackedAndDamaged-演示例子 <a class="header-anchor" href="#canbeattackedanddamaged-演示例子" aria-label="Permalink to "canBeAttackedAndDamaged-演示例子""></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;">[attachment_1]</span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;">canBeAttackedAndDamaged:true</span></span></code></pre></div><hr><h3 id="isunselectable" tabindex="-1">isUnselectable <a class="header-anchor" href="#isunselectable" aria-label="Permalink to "isUnselectable""></a></h3><h4 id="isunselectable-代码简介" tabindex="-1">isUnselectable-代码简介 <a class="header-anchor" href="#isunselectable-代码简介" aria-label="Permalink to "isUnselectable-代码简介""></a></h4><p>代码:isUnselectable 中文释义:无法选择 类型:布尔值bool 隶属于:附属代码组</p><h4 id="isunselectable-要点指示" tabindex="-1">isUnselectable-要点指示 <a class="header-anchor" href="#isunselectable-要点指示" aria-label="Permalink to "isUnselectable-要点指示""></a></h4><p>此附属内的单位无法被选中或框选</p><h4 id="isunselectable-演示例子" tabindex="-1">isUnselectable-演示例子 <a class="header-anchor" href="#isunselectable-演示例子" aria-label="Permalink to "isUnselectable-演示例子""></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;">[attachment_1]</span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;">isUnselectable:true</span></span></code></pre></div><hr><h3 id="isunselectableastarget" tabindex="-1">isUnselectableAsTarget <a class="header-anchor" href="#isunselectableastarget" aria-label="Permalink to "isUnselectableAsTarget""></a></h3><h4 id="isunselectableastarget-代码简介" tabindex="-1">isUnselectableAsTarget-代码简介 <a class="header-anchor" href="#isunselectableastarget-代码简介" aria-label="Permalink to "isUnselectableAsTarget-代码简介""></a></h4><p>代码:isUnselectableAsTarget 中文释义:禁止选择和作为目标 类型:布尔值bool 隶属于:附属代码组</p><h4 id="isunselectableastarget-要点指示" tabindex="-1">isUnselectableAsTarget-要点指示 <a class="header-anchor" href="#isunselectableastarget-要点指示" aria-label="Permalink to "isUnselectableAsTarget-要点指示""></a></h4><p>此附属内的单位无法被选择和作为目标</p><h4 id="isunselectableastarget-演示例子" tabindex="-1">isUnselectableAsTarget-演示例子 <a class="header-anchor" href="#isunselectableastarget-演示例子" aria-label="Permalink to "isUnselectableAsTarget-演示例子""></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;">[attachment_1]</span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;">isUnselectableAsTarget:true</span></span></code></pre></div><hr><h3 id="locklegmovement" tabindex="-1">lockLegMovement <a class="header-anchor" href="#locklegmovement" aria-label="Permalink to "lockLegMovement""></a></h3><h4 id="locklegmovement-代码简介" tabindex="-1">lockLegMovement-代码简介 <a class="header-anchor" href="#locklegmovement-代码简介" aria-label="Permalink to "lockLegMovement-代码简介""></a></h4><p>代码:lockLegMovement 中文释义:锁定腿脚运动 类型:布尔值bool 隶属于:附属代码组</p><h4 id="locklegmovement-要点指示" tabindex="-1">lockLegMovement-要点指示 <a class="header-anchor" href="#locklegmovement-要点指示" aria-label="Permalink to "lockLegMovement-要点指示""></a></h4><p>锁定此附属内的单位的腿脚</p><h4 id="locklegmovement-演示例子" tabindex="-1">lockLegMovement-演示例子 <a class="header-anchor" href="#locklegmovement-演示例子" aria-label="Permalink to "lockLegMovement-演示例子""></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;">[attachment_1]</span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;">lockLegMovement:true</span></span></code></pre></div><hr><h3 id="freezelegmovement" tabindex="-1">freezeLegMovement <a class="header-anchor" href="#freezelegmovement" aria-label="Permalink to "freezeLegMovement""></a></h3><h4 id="freezelegmovement-代码简介" tabindex="-1">freezeLegMovement-代码简介 <a class="header-anchor" href="#freezelegmovement-代码简介" aria-label="Permalink to "freezeLegMovement-代码简介""></a></h4><p>代码:freezeLegMovement 中文释义:冻结腿脚运动 类型:布尔值bool 隶属于:附属代码组</p><h4 id="freezelegmovement-要点指示" tabindex="-1">freezeLegMovement-要点指示 <a class="header-anchor" href="#freezelegmovement-要点指示" aria-label="Permalink to "freezeLegMovement-要点指示""></a></h4><p>相较于锁定腿脚更好用,可以避免锁定腿脚的腿脚乱动</p><h4 id="freezelegmovement-演示例子" tabindex="-1">freezeLegMovement-演示例子 <a class="header-anchor" href="#freezelegmovement-演示例子" aria-label="Permalink to "freezeLegMovement-演示例子""></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;">[attachment_1]</span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;">freezeLegMovement:true</span></span></code></pre></div><hr><h3 id="hidehp" tabindex="-1">hideHp <a class="header-anchor" href="#hidehp" aria-label="Permalink to "hideHp""></a></h3><h4 id="hidehp-代码简介" tabindex="-1">hideHp-代码简介 <a class="header-anchor" href="#hidehp-代码简介" aria-label="Permalink to "hideHp-代码简介""></a></h4><p>代码:hideHp 中文释义:隐藏血条 类型:布尔值bool 隶属于:附属代码组</p><h4 id="hidehp-要点指示" tabindex="-1">hideHp-要点指示 <a class="header-anchor" href="#hidehp-要点指示" aria-label="Permalink to "hideHp-要点指示""></a></h4><p>隐藏此附属内的单位的血量</p><h4 id="hidehp-演示例子" tabindex="-1">hideHp-演示例子 <a class="header-anchor" href="#hidehp-演示例子" aria-label="Permalink to "hideHp-演示例子""></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;">[attachment_1]</span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;">hideHp:true</span></span></code></pre></div><hr><h3 id="showminihp" tabindex="-1">showMiniHp <a class="header-anchor" href="#showminihp" aria-label="Permalink to "showMiniHp""></a></h3><h4 id="showminihp-代码简介" tabindex="-1">showMiniHp-代码简介 <a class="header-anchor" href="#showminihp-代码简介" aria-label="Permalink to "showMiniHp-代码简介""></a></h4><p>代码:showMiniHp 中文释义:显示迷你血条 类型:布尔值bool 隶属于:附属代码组</p><h4 id="showminihp-要点指示" tabindex="-1">showMiniHp-要点指示 <a class="header-anchor" href="#showminihp-要点指示" aria-label="Permalink to "showMiniHp-要点指示""></a></h4><p>显示此附属内的单位的迷你血条 如果hideHp:true时则此条强制false</p><h4 id="showminihp-演示例子" tabindex="-1">showMiniHp-演示例子 <a class="header-anchor" href="#showminihp-演示例子" aria-label="Permalink to "showMiniHp-演示例子""></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;">[attachment_1]</span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;">showMiniHp:true</span></span></code></pre></div><hr><h3 id="keepalivewhenparentdies" tabindex="-1">keepAliveWhenParentDies <a class="header-anchor" href="#keepalivewhenparentdies" aria-label="Permalink to "keepAliveWhenParentDies""></a></h3><h4 id="keepalivewhenparentdies-代码简介" tabindex="-1">keepAliveWhenParentDies-代码简介 <a class="header-anchor" href="#keepalivewhenparentdies-代码简介" aria-label="Permalink to "keepAliveWhenParentDies-代码简介""></a></h4><p>代码:keepAliveWhenParentDies 中文释义:保持子单位存活 类型:布尔值bool 隶属于:附属代码组</p><h4 id="keepalivewhenparentdies-要点指示" tabindex="-1">keepAliveWhenParentDies-要点指示 <a class="header-anchor" href="#keepalivewhenparentdies-要点指示" aria-label="Permalink to "keepAliveWhenParentDies-要点指示""></a></h4><p>主体单位死亡后此附属内的单位保持存活</p><h4 id="keepalivewhenparentdies-演示例子" tabindex="-1">keepAliveWhenParentDies-演示例子 <a class="header-anchor" href="#keepalivewhenparentdies-演示例子" aria-label="Permalink to "keepAliveWhenParentDies-演示例子""></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;">[attachment_1]</span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;">keepAliveWhenParentDies:true</span></span></code></pre></div><hr><h3 id="setdrawlayerontop" tabindex="-1">setDrawLayerOnTop <a class="header-anchor" href="#setdrawlayerontop" aria-label="Permalink to "setDrawLayerOnTop""></a></h3><h4 id="setdrawlayerontop-代码简介" tabindex="-1">setDrawLayerOnTop-代码简介 <a class="header-anchor" href="#setdrawlayerontop-代码简介" aria-label="Permalink to "setDrawLayerOnTop-代码简介""></a></h4><p>代码:setDrawLayerOnTop 中文释义:绘制在顶层 类型:布尔值bool 隶属于:附属代码组</p><h4 id="setdrawlayerontop-要点指示" tabindex="-1">setDrawLayerOnTop-要点指示 <a class="header-anchor" href="#setdrawlayerontop-要点指示" aria-label="Permalink to "setDrawLayerOnTop-要点指示""></a></h4><p>此附属内的单位绘制在主体单位的顶层</p><h4 id="setdrawlayerontop-演示例子" tabindex="-1">setDrawLayerOnTop-演示例子 <a class="header-anchor" href="#setdrawlayerontop-演示例子" aria-label="Permalink to "setDrawLayerOnTop-演示例子""></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;">[attachment_1]</span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;">setDrawLayerOnTop:true</span></span></code></pre></div><hr><h3 id="setdrawlayeronbottom" tabindex="-1">setDrawLayerOnBottom <a class="header-anchor" href="#setdrawlayeronbottom" aria-label="Permalink to "setDrawLayerOnBottom""></a></h3><h4 id="setdrawlayeronbottom-代码简介" tabindex="-1">setDrawLayerOnBottom-代码简介 <a class="header-anchor" href="#setdrawlayeronbottom-代码简介" aria-label="Permalink to "setDrawLayerOnBottom-代码简介""></a></h4><p>代码:setDrawLayerOnBottom 中文释义:绘制在底层 类型:布尔值bool 隶属于:附属代码组</p><h4 id="setdrawlayeronbottom-要点指示" tabindex="-1">setDrawLayerOnBottom-要点指示 <a class="header-anchor" href="#setdrawlayeronbottom-要点指示" aria-label="Permalink to "setDrawLayerOnBottom-要点指示""></a></h4><p>此附属内的单位绘制在主体单位的底层</p><h4 id="setdrawlayeronbottom-演示例子" tabindex="-1">setDrawLayerOnBottom-演示例子 <a class="header-anchor" href="#setdrawlayeronbottom-演示例子" aria-label="Permalink to "setDrawLayerOnBottom-演示例子""></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;">[attachment_1]</span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;">setDrawLayerOnBottom:true</span></span></code></pre></div><hr><h3 id="addtransportedunits" tabindex="-1">addTransportedUnits <a class="header-anchor" href="#addtransportedunits" aria-label="Permalink to "addTransportedUnits""></a></h3><h4 id="addtransportedunits-代码简介" tabindex="-1">addTransportedUnits-代码简介 <a class="header-anchor" href="#addtransportedunits-代码简介" aria-label="Permalink to "addTransportedUnits-代码简介""></a></h4><p>代码:addTransportedUnits 中文释义:添加被运输单位 类型:布尔值bool 隶属于:附属代码组</p><h4 id="addtransportedunits-要点指示" tabindex="-1">addTransportedUnits-要点指示 <a class="header-anchor" href="#addtransportedunits-要点指示" aria-label="Permalink to "addTransportedUnits-要点指示""></a></h4><p>单位进入运输时,进入附属内</p><h4 id="addtransportedunits-演示例子" tabindex="-1">addTransportedUnits-演示例子 <a class="header-anchor" href="#addtransportedunits-演示例子" aria-label="Permalink to "addTransportedUnits-演示例子""></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;">[attachment_1]</span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;">addTransportedUnits:true</span></span></code></pre></div><hr><h3 id="lockrotation" tabindex="-1">lockRotation <a class="header-anchor" href="#lockrotation" aria-label="Permalink to "lockRotation""></a></h3><h4 id="lockrotation-代码简介" tabindex="-1">lockRotation-代码简介 <a class="header-anchor" href="#lockrotation-代码简介" aria-label="Permalink to "lockRotation-代码简介""></a></h4><p>代码:lockRotation 中文释义:锁定旋转 类型:布尔值bool 隶属于:附属代码组</p><h4 id="lockrotation-要点指示" tabindex="-1">lockRotation-要点指示 <a class="header-anchor" href="#lockrotation-要点指示" aria-label="Permalink to "lockRotation-要点指示""></a></h4><p>锁定此附属内的单位的角度,禁止旋转</p><h4 id="lockrotation-演示例子" tabindex="-1">lockRotation-演示例子 <a class="header-anchor" href="#lockrotation-演示例子" aria-label="Permalink to "lockRotation-演示例子""></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;">[attachment_1]</span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;">lockRotation:true</span></span></code></pre></div><hr><h3 id="rotatewithparent" tabindex="-1">rotateWithParent <a class="header-anchor" href="#rotatewithparent" aria-label="Permalink to "rotateWithParent""></a></h3><h4 id="rotatewithparent-代码简介" tabindex="-1">rotateWithParent-代码简介 <a class="header-anchor" href="#rotatewithparent-代码简介" aria-label="Permalink to "rotateWithParent-代码简介""></a></h4><p>代码:rotateWithParent 中文释义:子单位一同旋转 类型:布尔值bool 隶属于:附属代码组</p><h4 id="rotatewithparent-要点指示" tabindex="-1">rotateWithParent-要点指示 <a class="header-anchor" href="#rotatewithparent-要点指示" aria-label="Permalink to "rotateWithParent-要点指示""></a></h4><p>子单位与父单位一起旋转</p><h4 id="rotatewithparent-演示例子" tabindex="-1">rotateWithParent-演示例子 <a class="header-anchor" href="#rotatewithparent-演示例子" aria-label="Permalink to "rotateWithParent-演示例子""></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;">[attachment_1]</span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;">rotateWithParent:true</span></span></code></pre></div><hr><h3 id="resetrotationwhennotattacking" tabindex="-1">resetRotationWhenNotAttacking <a class="header-anchor" href="#resetrotationwhennotattacking" aria-label="Permalink to "resetRotationWhenNotAttacking""></a></h3><h4 id="resetrotationwhennotattacking-代码简介" tabindex="-1">resetRotationWhenNotAttacking-代码简介 <a class="header-anchor" href="#resetrotationwhennotattacking-代码简介" aria-label="Permalink to "resetRotationWhenNotAttacking-代码简介""></a></h4><p>代码:resetRotationWhenNotAttacking 中文释义:不攻击时重置角度 类型:布尔值bool 隶属于:附属代码组</p><h4 id="resetrotationwhennotattacking-要点指示" tabindex="-1">resetRotationWhenNotAttacking-要点指示 <a class="header-anchor" href="#resetrotationwhennotattacking-要点指示" aria-label="Permalink to "resetRotationWhenNotAttacking-要点指示""></a></h4><p>子单位不攻击时旋转回闲置角度</p><h4 id="resetrotationwhennotattacking-演示例子" tabindex="-1">resetRotationWhenNotAttacking-演示例子 <a class="header-anchor" href="#resetrotationwhennotattacking-演示例子" aria-label="Permalink to "resetRotationWhenNotAttacking-演示例子""></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;">[attachment_1]</span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;">resetRotationWhenNotAttacking:true</span></span></code></pre></div><hr><h3 id="deattachifwantingtomove" tabindex="-1">deattachIfWantingToMove <a class="header-anchor" href="#deattachifwantingtomove" aria-label="Permalink to "deattachIfWantingToMove""></a></h3><h4 id="deattachifwantingtomove-代码简介" tabindex="-1">deattachIfWantingToMove-代码简介 <a class="header-anchor" href="#deattachifwantingtomove-代码简介" aria-label="Permalink to "deattachIfWantingToMove-代码简介""></a></h4><p>代码:deattachIfWantingToMove 中文释义:移动时脱离 类型:布尔值bool 隶属于:附属代码组</p><h4 id="deattachifwantingtomove-要点指示" tabindex="-1">deattachIfWantingToMove-要点指示 <a class="header-anchor" href="#deattachifwantingtomove-要点指示" aria-label="Permalink to "deattachIfWantingToMove-要点指示""></a></h4><p>子单位拥有路径时自动脱离附属</p><h4 id="deattachifwantingtomove-演示例子" tabindex="-1">deattachIfWantingToMove-演示例子 <a class="header-anchor" href="#deattachifwantingtomove-演示例子" aria-label="Permalink to "deattachIfWantingToMove-演示例子""></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;">[attachment_1]</span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;">deattachIfWantingToMove:true</span></span></code></pre></div><hr><h3 id="prioritizeparentsmaintarget" tabindex="-1">prioritizeParentsMainTarget <a class="header-anchor" href="#prioritizeparentsmaintarget" aria-label="Permalink to "prioritizeParentsMainTarget""></a></h3><h4 id="prioritizeparentsmaintarget-代码简介" tabindex="-1">prioritizeParentsMainTarget-代码简介 <a class="header-anchor" href="#prioritizeparentsmaintarget-代码简介" aria-label="Permalink to "prioritizeParentsMainTarget-代码简介""></a></h4><p>代码:prioritizeParentsMainTarget 中文释义:优先攻击父单位主要目标 类型:布尔值bool 隶属于:附属代码组</p><h4 id="prioritizeparentsmaintarget-要点指示" tabindex="-1">prioritizeParentsMainTarget-要点指示 <a class="header-anchor" href="#prioritizeparentsmaintarget-要点指示" aria-label="Permalink to "prioritizeParentsMainTarget-要点指示""></a></h4><p>父单位攻击时子单位优先攻击父单位攻击的目标</p><h4 id="prioritizeparentsmaintarget-演示例子" tabindex="-1">prioritizeParentsMainTarget-演示例子 <a class="header-anchor" href="#prioritizeparentsmaintarget-演示例子" aria-label="Permalink to "prioritizeParentsMainTarget-演示例子""></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;">[attachment_1]</span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;">prioritizeParentsMainTarget:true</span></span></code></pre></div><hr><h3 id="alwaysallowedtoattackparentsmaintarget" tabindex="-1">alwaysAllowedToAttackParentsMainTarget <a class="header-anchor" href="#alwaysallowedtoattackparentsmaintarget" aria-label="Permalink to "alwaysAllowedToAttackParentsMainTarget""></a></h3><h4 id="alwaysallowedtoattackparentsmaintarget-代码简介" tabindex="-1">alwaysAllowedToAttackParentsMainTarget-代码简介 <a class="header-anchor" href="#alwaysallowedtoattackparentsmaintarget-代码简介" aria-label="Permalink to "alwaysAllowedToAttackParentsMainTarget-代码简介""></a></h4><p>代码:alwaysAllowedToAttackParentsMainTarget 中文释义:总是攻击父单位主要目标 类型:布尔值bool 隶属于:附属代码组</p><h4 id="alwaysallowedtoattackparentsmaintarget-要点指示" tabindex="-1">alwaysAllowedToAttackParentsMainTarget-要点指示 <a class="header-anchor" href="#alwaysallowedtoattackparentsmaintarget-要点指示" aria-label="Permalink to "alwaysAllowedToAttackParentsMainTarget-要点指示""></a></h4><p>子单位总是跟随攻击父单位攻击的目标</p><h4 id="alwaysallowedtoattackparentsmaintarget-演示例子" tabindex="-1">alwaysAllowedToAttackParentsMainTarget-演示例子 <a class="header-anchor" href="#alwaysallowedtoattackparentsmaintarget-演示例子" aria-label="Permalink to "alwaysAllowedToAttackParentsMainTarget-演示例子""></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;">[attachment_1]</span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;">alwaysAllowedToAttackParentsMainTarget:true</span></span></code></pre></div><hr><h3 id="onlyattackparentsmaintarget" tabindex="-1">onlyAttackParentsMainTarget <a class="header-anchor" href="#onlyattackparentsmaintarget" aria-label="Permalink to "onlyAttackParentsMainTarget""></a></h3><h4 id="onlyattackparentsmaintarget-代码简介" tabindex="-1">onlyAttackParentsMainTarget-代码简介 <a class="header-anchor" href="#onlyattackparentsmaintarget-代码简介" aria-label="Permalink to "onlyAttackParentsMainTarget-代码简介""></a></h4><p>代码:lockRotation 中文释义:只攻击父单位的主要目标 类型:布尔值bool 隶属于:附属代码组</p><h4 id="onlyattackparentsmaintarget-要点指示" tabindex="-1">onlyAttackParentsMainTarget-要点指示 <a class="header-anchor" href="#onlyattackparentsmaintarget-要点指示" aria-label="Permalink to "onlyAttackParentsMainTarget-要点指示""></a></h4><p>子单位与父单位攻击目标必定相同 就算子单位攻击范围内有敌人但父单位攻击范围内没有此敌人则子单位无法攻击此敌人</p><h4 id="onlyattackparentsmaintarget-演示例子" tabindex="-1">onlyAttackParentsMainTarget-演示例子 <a class="header-anchor" href="#onlyattackparentsmaintarget-演示例子" aria-label="Permalink to "onlyAttackParentsMainTarget-演示例子""></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;">[attachment_1]</span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;">onlyAttackParentsMainTarget:true</span></span></code></pre></div><hr><h3 id="onparentteamchangekeepcurrentteam" tabindex="-1">onParentTeamChangeKeepCurrentTeam <a class="header-anchor" href="#onparentteamchangekeepcurrentteam" aria-label="Permalink to "onParentTeamChangeKeepCurrentTeam""></a></h3><h4 id="onparentteamchangekeepcurrentteam-代码简介" tabindex="-1">onParentTeamChangeKeepCurrentTeam-代码简介 <a class="header-anchor" href="#onparentteamchangekeepcurrentteam-代码简介" aria-label="Permalink to "onParentTeamChangeKeepCurrentTeam-代码简介""></a></h4><p>代码:onParentTeamChangeKeepCurrentTeam 中文释义:改变队伍时子单位保持原队伍 类型:布尔值bool 隶属于:附属代码组</p><h4 id="onparentteamchangekeepcurrentteam-要点指示" tabindex="-1">onParentTeamChangeKeepCurrentTeam-要点指示 <a class="header-anchor" href="#onparentteamchangekeepcurrentteam-要点指示" aria-label="Permalink to "onParentTeamChangeKeepCurrentTeam-要点指示""></a></h4><p>父单位队伍改变时子单位队伍不改变</p><h4 id="onparentteamchangekeepcurrentteam-演示例子" tabindex="-1">onParentTeamChangeKeepCurrentTeam-演示例子 <a class="header-anchor" href="#onparentteamchangekeepcurrentteam-演示例子" aria-label="Permalink to "onParentTeamChangeKeepCurrentTeam-演示例子""></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;">[attachment_1]</span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;">onParentTeamChangeKeepCurrentTeam:true</span></span></code></pre></div><hr><h3 id="smoothlyblendpositionwhenexistingunitadded" tabindex="-1">smoothlyBlendPositionWhenExistingUnitAdded <a class="header-anchor" href="#smoothlyblendpositionwhenexistingunitadded" aria-label="Permalink to "smoothlyBlendPositionWhenExistingUnitAdded""></a></h3><h4 id="smoothlyblendpositionwhenexistingunitadded-代码简介" tabindex="-1">smoothlyBlendPositionWhenExistingUnitAdded-代码简介 <a class="header-anchor" href="#smoothlyblendpositionwhenexistingunitadded-代码简介" aria-label="Permalink to "smoothlyBlendPositionWhenExistingUnitAdded-代码简介""></a></h4><p>代码:smoothlyBlendPositionWhenExistingUnitAdded 中文释义:补充时平滑移动 类型:布尔值bool 隶属于:附属代码组</p><h4 id="smoothlyblendpositionwhenexistingunitadded-要点指示" tabindex="-1">smoothlyBlendPositionWhenExistingUnitAdded-要点指示 <a class="header-anchor" href="#smoothlyblendpositionwhenexistingunitadded-要点指示" aria-label="Permalink to "smoothlyBlendPositionWhenExistingUnitAdded-要点指示""></a></h4><p>补充运输单位至槽位时平滑移动</p><h4 id="smoothlyblendpositionwhenexistingunitadded-演示例子" tabindex="-1">smoothlyBlendPositionWhenExistingUnitAdded-演示例子 <a class="header-anchor" href="#smoothlyblendpositionwhenexistingunitadded-演示例子" aria-label="Permalink to "smoothlyBlendPositionWhenExistingUnitAdded-演示例子""></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;">[attachment_1]</span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;">smoothlyBlendPositionWhenExistingUnitAdded:true</span></span></code></pre></div><hr><h3 id="keepwaypointsneedingmovement" tabindex="-1">keepWaypointsNeedingMovement <a class="header-anchor" href="#keepwaypointsneedingmovement" aria-label="Permalink to "keepWaypointsNeedingMovement""></a></h3><h4 id="keepwaypointsneedingmovement-代码简介" tabindex="-1">keepWaypointsNeedingMovement-代码简介 <a class="header-anchor" href="#keepwaypointsneedingmovement-代码简介" aria-label="Permalink to "keepWaypointsNeedingMovement-代码简介""></a></h4><p>代码:keepWaypointsNeedingMovement 中文释义:保持需要移动路径点 类型:布尔值bool 隶属于:附属代码组</p><h4 id="keepwaypointsneedingmovement-要点指示" tabindex="-1">keepWaypointsNeedingMovement-要点指示 <a class="header-anchor" href="#keepwaypointsneedingmovement-要点指示" aria-label="Permalink to "keepWaypointsNeedingMovement-要点指示""></a></h4><p>默认值为false,为false时队列中任何需要移动才能完成的队列路径点都会被移除</p><h4 id="keepwaypointsneedingmovement-演示例子" tabindex="-1">keepWaypointsNeedingMovement-演示例子 <a class="header-anchor" href="#keepwaypointsneedingmovement-演示例子" aria-label="Permalink to "keepWaypointsNeedingMovement-演示例子""></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;">[attachment_1]</span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;">keepWaypointsNeedingMovement:true</span></span></code></pre></div><hr><h3 id="showallactionsfrom" tabindex="-1">showAllActionsFrom <a class="header-anchor" href="#showallactionsfrom" aria-label="Permalink to "showAllActionsFrom""></a></h3><h4 id="showallactionsfrom-代码简介" tabindex="-1">showAllActionsFrom-代码简介 <a class="header-anchor" href="#showallactionsfrom-代码简介" aria-label="Permalink to "showAllActionsFrom-代码简介""></a></h4><p>代码:showAllActionsFrom 中文释义:显示所有操作来源 类型:逻辑布尔值LogicBoolean 隶属于:附属代码组</p><h4 id="showallactionsfrom-要点指示" tabindex="-1">showAllActionsFrom-要点指示 <a class="header-anchor" href="#showallactionsfrom-要点指示" aria-label="Permalink to "showAllActionsFrom-要点指示""></a></h4><p>父单位显示子单位的全部行动</p><h4 id="showallactionsfrom-演示例子" tabindex="-1">showAllActionsFrom-演示例子 <a class="header-anchor" href="#showallactionsfrom-演示例子" aria-label="Permalink to "showAllActionsFrom-演示例子""></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;">[attachment_1]</span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;">showAllActionsFrom:if </span><span style="color:#F07178;">self.ammo</span><span style="color:#89DDFF;">=</span><span style="color:#A6ACCD;">=1</span></span></code></pre></div><hr><h3 id="createincompleteifparentis" tabindex="-1">createIncompleteIfParentIs <a class="header-anchor" href="#createincompleteifparentis" aria-label="Permalink to "createIncompleteIfParentIs""></a></h3><h4 id="createincompleteifparentis-代码简介" tabindex="-1">createIncompleteIfParentIs-代码简介 <a class="header-anchor" href="#createincompleteifparentis-代码简介" aria-label="Permalink to "createIncompleteIfParentIs-代码简介""></a></h4><p>代码:createIncompleteIfParentIs 中文释义:创建随父单位 类型:布尔值bool 隶属于:附属代码组</p><h4 id="createincompleteifparentis-要点指示" tabindex="-1">createIncompleteIfParentIs-要点指示 <a class="header-anchor" href="#createincompleteifparentis-要点指示" aria-label="Permalink to "createIncompleteIfParentIs-要点指示""></a></h4><p>父单位创建时子单位同步创建 且子单位建造进度与父单位建造进度相同</p><h4 id="createincompleteifparentis-演示例子" tabindex="-1">createIncompleteIfParentIs-演示例子 <a class="header-anchor" href="#createincompleteifparentis-演示例子" aria-label="Permalink to "createIncompleteIfParentIs-演示例子""></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;">[attachment_1]</span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;">createIncompleteIfParentIs:true</span></span></code></pre></div><hr><h3 id="redirectdamagetoparent" tabindex="-1">redirectDamageToParent <a class="header-anchor" href="#redirectdamagetoparent" aria-label="Permalink to "redirectDamageToParent""></a></h3><h4 id="redirectdamagetoparent-代码简介" tabindex="-1">redirectDamageToParent-代码简介 <a class="header-anchor" href="#redirectdamagetoparent-代码简介" aria-label="Permalink to "redirectDamageToParent-代码简介""></a></h4><p>代码:redirectDamageToParent 中文释义:附属受伤转给父单位 类型:布尔值bool 隶属于:附属代码组</p><h4 id="redirectdamagetoparent-要点指示" tabindex="-1">redirectDamageToParent-要点指示 <a class="header-anchor" href="#redirectdamagetoparent-要点指示" aria-label="Permalink to "redirectDamageToParent-要点指示""></a></h4><p>子单位受伤时将伤害传给父单位</p><h4 id="redirectdamagetoparent-演示例子" tabindex="-1">redirectDamageToParent-演示例子 <a class="header-anchor" href="#redirectdamagetoparent-演示例子" aria-label="Permalink to "redirectDamageToParent-演示例子""></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;">[attachment_1]</span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;">redirectDamageToParent:true</span></span></code></pre></div><hr><h3 id="redirectdamagetoparent-shieldonly" tabindex="-1">redirectDamageToParent_shieldOnly <a class="header-anchor" href="#redirectdamagetoparent-shieldonly" aria-label="Permalink to "redirectDamageToParent_shieldOnly""></a></h3><h4 id="redirectdamagetoparent-shieldonly-代码简介" tabindex="-1">redirectDamageToParent_shieldOnly-代码简介 <a class="header-anchor" href="#redirectdamagetoparent-shieldonly-代码简介" aria-label="Permalink to "redirectDamageToParent_shieldOnly-代码简介""></a></h4><p>代码:redirectDamageToParent_shieldOnly 中文释义:附属受伤转给父单位的护盾 类型:布尔值bool 隶属于:附属代码组</p><h4 id="redirectdamagetoparent-shieldonly-要点指示" tabindex="-1">redirectDamageToParent_shieldOnly-要点指示 <a class="header-anchor" href="#redirectdamagetoparent-shieldonly-要点指示" aria-label="Permalink to "redirectDamageToParent_shieldOnly-要点指示""></a></h4><p>子单位受伤时将伤害传给父单位 如果父单位护盾为空则无法将伤害传给父单位</p><h4 id="redirectdamagetoparent-shieldonly-演示例子" tabindex="-1">redirectDamageToParent_shieldOnly-演示例子 <a class="header-anchor" href="#redirectdamagetoparent-shieldonly-演示例子" aria-label="Permalink to "redirectDamageToParent_shieldOnly-演示例子""></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;">[attachment_1]</span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;">redirectDamageToParent_shieldOnly:true</span></span></code></pre></div><hr><h2 id="第二类-未知代码组" tabindex="-1">第二类-未知代码组 <a class="header-anchor" href="#第二类-未知代码组" aria-label="Permalink to "第二类-未知代码组""></a></h2><h3 id="lockdir" tabindex="-1">lockDir <a class="header-anchor" href="#lockdir" aria-label="Permalink to "lockDir""></a></h3><h4 id="lockdir-代码简介" tabindex="-1">lockDir-代码简介 <a class="header-anchor" href="#lockdir-代码简介" aria-label="Permalink to "lockDir-代码简介""></a></h4><p>代码:lockDir 中文释义:锁定角度 类型:布尔值bool 隶属于:未知代码组</p><h4 id="lockdir-要点指示" tabindex="-1">lockDir-要点指示 <a class="header-anchor" href="#lockdir-要点指示" aria-label="Permalink to "lockDir-要点指示""></a></h4><p>未知</p><h4 id="lockdir-演示例子" tabindex="-1">lockDir-演示例子 <a class="header-anchor" href="#lockdir-演示例子" aria-label="Permalink to "lockDir-演示例子""></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;">[attachment_1]</span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;">lockDir:true</span></span></code></pre></div><hr><h3 id="unloadincurrentposition" tabindex="-1">unloadInCurrentPosition <a class="header-anchor" href="#unloadincurrentposition" aria-label="Permalink to "unloadInCurrentPosition""></a></h3><h4 id="unloadincurrentposition-代码简介" tabindex="-1">unloadInCurrentPosition-代码简介 <a class="header-anchor" href="#unloadincurrentposition-代码简介" aria-label="Permalink to "unloadInCurrentPosition-代码简介""></a></h4><p>代码:lockRotation 中文释义:卸载于此位置 类型:布尔值bool 隶属于:未知代码组</p><h4 id="unloadincurrentposition-要点指示" tabindex="-1">unloadInCurrentPosition-要点指示 <a class="header-anchor" href="#unloadincurrentposition-要点指示" aria-label="Permalink to "unloadInCurrentPosition-要点指示""></a></h4><p>未知</p><h4 id="unloadincurrentposition-演示例子" tabindex="-1">unloadInCurrentPosition-演示例子 <a class="header-anchor" href="#unloadincurrentposition-演示例子" aria-label="Permalink to "unloadInCurrentPosition-演示例子""></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;">[attachment_1]</span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;">unloadInCurrentPosition:true</span></span></code></pre></div><hr><h3 id="onconvertkeepexistingunitinsameslot" tabindex="-1">onConvertKeepExistingUnitInSameSlot <a class="header-anchor" href="#onconvertkeepexistingunitinsameslot" aria-label="Permalink to "onConvertKeepExistingUnitInSameSlot""></a></h3><h4 id="onconvertkeepexistingunitinsameslot-代码简介" tabindex="-1">onConvertKeepExistingUnitInSameSlot-代码简介 <a class="header-anchor" href="#onconvertkeepexistingunitinsameslot-代码简介" aria-label="Permalink to "onConvertKeepExistingUnitInSameSlot-代码简介""></a></h4><p>代码:onConvertKeepExistingUnitInSameSlot 中文释义:转换时附属仍然在同一槽位中 类型:布尔值bool 隶属于:未知代码组</p><h4 id="onconvertkeepexistingunitinsameslot-要点指示" tabindex="-1">onConvertKeepExistingUnitInSameSlot-要点指示 <a class="header-anchor" href="#onconvertkeepexistingunitinsameslot-要点指示" aria-label="Permalink to "onConvertKeepExistingUnitInSameSlot-要点指示""></a></h4><p>未知</p><h4 id="onconvertkeepexistingunitinsameslot-演示例子" tabindex="-1">onConvertKeepExistingUnitInSameSlot-演示例子 <a class="header-anchor" href="#onconvertkeepexistingunitinsameslot-演示例子" aria-label="Permalink to "onConvertKeepExistingUnitInSameSlot-演示例子""></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;">[attachment_1]</span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;">onConvertKeepExistingUnitInSameSlot:true</span></span></code></pre></div><hr>`,283),s=[o];function r(l,h,d,c,p,m){return t(),e("div",null,s)}const g=a(i,[["render",r]]);export{b as __pageData,g as default};
|
1
assets/src_Unit_attachment.md.2e3e2a58.lean.js
Normal file
|
@ -0,0 +1 @@
|
|||
import{_ as a,c as e,o as t,V as n}from"./chunks/framework.fcc0bf38.js";const b=JSON.parse('{"title":"[attachment]组","description":"","frontmatter":{"outline":"deep"},"headers":[],"relativePath":"src/Unit/attachment.md","filePath":"src/Unit/attachment.md"}'),i={name:"src/Unit/attachment.md"},o=n("",283),s=[o];function r(l,h,d,c,p,m){return t(),e("div",null,s)}const g=a(i,[["render",r]]);export{b as __pageData,g as default};
|
27
assets/src_Unit_attack.md.9d57709d.js
Normal file
|
@ -0,0 +1,27 @@
|
|||
import{_ as a,c as t,o as e,V as n}from"./chunks/framework.fcc0bf38.js";const k=JSON.parse('{"title":"[attack]组","description":"","frontmatter":{"outline":"deep"},"headers":[],"relativePath":"src/Unit/attack.md","filePath":"src/Unit/attack.md"}'),i={name:"src/Unit/attack.md"},s=n(`<h1 id="attack-组" tabindex="-1"><strong>[attack]组</strong> <a class="header-anchor" href="#attack-组" aria-label="Permalink to "**[attack]组**""></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><div class="info custom-block"><p class="custom-block-title">INFO</p><p>此处攻击代码均可以在炮塔节进行覆盖</p></div><h3 id="canattack" tabindex="-1">canAttack <a class="header-anchor" href="#canattack" aria-label="Permalink to "canAttack""></a></h3><h4 id="canattack-代码简介" tabindex="-1">canAttack-代码简介 <a class="header-anchor" href="#canattack-代码简介" aria-label="Permalink to "canAttack-代码简介""></a></h4><p>代码:canAttack 中文释义:可攻击 类型:布尔值bool 隶属于:基础攻击代码组</p><h4 id="canattack-要点指示" tabindex="-1">canAttack-要点指示 <a class="header-anchor" href="#canattack-要点指示" aria-label="Permalink to "canAttack-要点指示""></a></h4><p>设置单位是否能攻击</p><h4 id="canattack-演示例子" tabindex="-1">canAttack-演示例子 <a class="header-anchor" href="#canattack-演示例子" aria-label="Permalink to "canAttack-演示例子""></a></h4><div class="language-ini"><button title="Copy Code" class="copy"></button><span class="lang">ini</span><pre class="shiki material-theme-palenight"><code><span class="line"><span style="color:#89DDFF;">[attack]</span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;">canAttack:true</span></span></code></pre></div><hr><h3 id="canattacklandunits" tabindex="-1">canAttackLandUnits <a class="header-anchor" href="#canattacklandunits" aria-label="Permalink to "canAttackLandUnits""></a></h3><h4 id="canattacklandunits-代码简介" tabindex="-1">canAttackLandUnits-代码简介 <a class="header-anchor" href="#canattacklandunits-代码简介" aria-label="Permalink to "canAttackLandUnits-代码简介""></a></h4><p>代码:canAttackLandUnits 中文释义:可攻击表面单位 类型:逻辑布尔值LogicBoolean 隶属于:基础攻击代码组</p><h4 id="canattacklandunits-要点指示" tabindex="-1">canAttackLandUnits-要点指示 <a class="header-anchor" href="#canattacklandunits-要点指示" aria-label="Permalink to "canAttackLandUnits-要点指示""></a></h4><p>设置单位是否能对地面目标攻击</p><h4 id="canattacklandunits-演示例子" tabindex="-1">canAttackLandUnits-演示例子 <a class="header-anchor" href="#canattacklandunits-演示例子" aria-label="Permalink to "canAttackLandUnits-演示例子""></a></h4><div class="language-ini"><button title="Copy Code" class="copy"></button><span class="lang">ini</span><pre class="shiki material-theme-palenight"><code><span class="line"><span style="color:#89DDFF;">[attack]</span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;">canAttackLandUnits:if self.ammo>=2</span></span></code></pre></div><hr><h3 id="canattackflyingunits" tabindex="-1">canAttackFlyingUnits <a class="header-anchor" href="#canattackflyingunits" aria-label="Permalink to "canAttackFlyingUnits""></a></h3><h4 id="canattackflyingunits-代码简介" tabindex="-1">canAttackFlyingUnits-代码简介 <a class="header-anchor" href="#canattackflyingunits-代码简介" aria-label="Permalink to "canAttackFlyingUnits-代码简介""></a></h4><p>代码:canAttackFlyingUnits 中文释义:可攻击空中单位 类型:逻辑布尔值LogicBoolean 隶属于:基础攻击代码组</p><h4 id="canattackflyingunits-要点指示" tabindex="-1">canAttackFlyingUnits-要点指示 <a class="header-anchor" href="#canattackflyingunits-要点指示" aria-label="Permalink to "canAttackFlyingUnits-要点指示""></a></h4><p>设置单位是否能对空中目标攻击</p><h4 id="canattackflyingunits-演示例子" tabindex="-1">canAttackFlyingUnits-演示例子 <a class="header-anchor" href="#canattackflyingunits-演示例子" aria-label="Permalink to "canAttackFlyingUnits-演示例子""></a></h4><div class="language-ini"><button title="Copy Code" class="copy"></button><span class="lang">ini</span><pre class="shiki material-theme-palenight"><code><span class="line"><span style="color:#89DDFF;">[attack]</span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;">canAttackFlyingUnits:if self.ammo>=2</span></span></code></pre></div><hr><h3 id="canattackunderwaterunits" tabindex="-1">canAttackUnderwaterUnits <a class="header-anchor" href="#canattackunderwaterunits" aria-label="Permalink to "canAttackUnderwaterUnits""></a></h3><h4 id="canattackunderwaterunits-代码简介" tabindex="-1">canAttackUnderwaterUnits-代码简介 <a class="header-anchor" href="#canattackunderwaterunits-代码简介" aria-label="Permalink to "canAttackUnderwaterUnits-代码简介""></a></h4><p>代码:canAttackUnderwaterUnits 中文释义:可攻击水下单位 类型:逻辑布尔值LogicBoolean 隶属于:基础攻击代码组</p><h4 id="canattackunderwaterunits-要点指示" tabindex="-1">canAttackUnderwaterUnits-要点指示 <a class="header-anchor" href="#canattackunderwaterunits-要点指示" aria-label="Permalink to "canAttackUnderwaterUnits-要点指示""></a></h4><p>设置单位是否能对潜水目标攻击</p><h4 id="canattackunderwaterunits-演示例子" tabindex="-1">canAttackUnderwaterUnits-演示例子 <a class="header-anchor" href="#canattackunderwaterunits-演示例子" aria-label="Permalink to "canAttackUnderwaterUnits-演示例子""></a></h4><div class="language-ini"><button title="Copy Code" class="copy"></button><span class="lang">ini</span><pre class="shiki material-theme-palenight"><code><span class="line"><span style="color:#89DDFF;">[attack]</span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;">canAttackUnderwaterUnits:if self.ammo>=2</span></span></code></pre></div><hr><h3 id="canattacknottouchingwaterunits" tabindex="-1">canAttackNotTouchingWaterUnits <a class="header-anchor" href="#canattacknottouchingwaterunits" aria-label="Permalink to "canAttackNotTouchingWaterUnits""></a></h3><h4 id="canattacknottouchingwaterunits-代码简介" tabindex="-1">canAttackNotTouchingWaterUnits-代码简介 <a class="header-anchor" href="#canattacknottouchingwaterunits-代码简介" aria-label="Permalink to "canAttackNotTouchingWaterUnits-代码简介""></a></h4><p>代码:canAttackNotTouchingWaterUnits 中文释义:可攻击非接触水单位 类型:逻辑布尔值LogicBoolean 隶属于:基础攻击代码组</p><h4 id="canattacknottouchingwaterunits-要点指示" tabindex="-1">canAttackNotTouchingWaterUnits-要点指示 <a class="header-anchor" href="#canattacknottouchingwaterunits-要点指示" aria-label="Permalink to "canAttackNotTouchingWaterUnits-要点指示""></a></h4><p>设置单位是否能对不在水中的目标攻击</p><h4 id="canattacknottouchingwaterunits-演示例子" tabindex="-1">canAttackNotTouchingWaterUnits-演示例子 <a class="header-anchor" href="#canattacknottouchingwaterunits-演示例子" aria-label="Permalink to "canAttackNotTouchingWaterUnits-演示例子""></a></h4><div class="language-ini"><button title="Copy Code" class="copy"></button><span class="lang">ini</span><pre class="shiki material-theme-palenight"><code><span class="line"><span style="color:#89DDFF;">[attack]</span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;">canAttackNotTouchingWaterUnits:if self.ammo>=2</span></span></code></pre></div><hr><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>非必须存在的代码,根据情况自行使用</p></div><h3 id="canonlyattackunitswithtags" tabindex="-1">canOnlyAttackUnitsWithTags <a class="header-anchor" href="#canonlyattackunitswithtags" aria-label="Permalink to "canOnlyAttackUnitsWithTags""></a></h3><h4 id="canonlyattackunitswithtags-代码简介" tabindex="-1">canOnlyAttackUnitsWithTags-代码简介 <a class="header-anchor" href="#canonlyattackunitswithtags-代码简介" aria-label="Permalink to "canOnlyAttackUnitsWithTags-代码简介""></a></h4><p>代码:canOnlyAttackUnitsWithTags 中文释义:只攻击带特定标签单位 类型:标签tag 隶属于:攻击代码组</p><h4 id="canonlyattackunitswithtags-要点指示" tabindex="-1">canOnlyAttackUnitsWithTags-要点指示 <a class="header-anchor" href="#canonlyattackunitswithtags-要点指示" aria-label="Permalink to "canOnlyAttackUnitsWithTags-要点指示""></a></h4><p>设置单位只能攻击携带此标签的目标</p><h4 id="canonlyattackunitswithtags-演示例子" tabindex="-1">canOnlyAttackUnitsWithTags-演示例子 <a class="header-anchor" href="#canonlyattackunitswithtags-演示例子" aria-label="Permalink to "canOnlyAttackUnitsWithTags-演示例子""></a></h4><div class="language-ini"><button title="Copy Code" class="copy"></button><span class="lang">ini</span><pre class="shiki material-theme-palenight"><code><span class="line"><span style="color:#89DDFF;">[attack]</span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;">canOnlyAttackUnitsWithTags:标签</span></span></code></pre></div><hr><h3 id="canonlyattackunitswithouttags" tabindex="-1">canOnlyAttackUnitsWithoutTags <a class="header-anchor" href="#canonlyattackunitswithouttags" aria-label="Permalink to "canOnlyAttackUnitsWithoutTags""></a></h3><h4 id="canonlyattackunitswithtags-代码简介-1" tabindex="-1">canOnlyAttackUnitsWithTags-代码简介 <a class="header-anchor" href="#canonlyattackunitswithtags-代码简介-1" aria-label="Permalink to "canOnlyAttackUnitsWithTags-代码简介""></a></h4><p>代码:canOnlyAttackUnitsWithoutTags 中文释义:不攻击带特定标签单位 类型:标签tag 隶属于:攻击代码组</p><h4 id="canonlyattackunitswithouttags-要点指示" tabindex="-1">canOnlyAttackUnitsWithoutTags-要点指示 <a class="header-anchor" href="#canonlyattackunitswithouttags-要点指示" aria-label="Permalink to "canOnlyAttackUnitsWithoutTags-要点指示""></a></h4><p>设置单位不能攻击携带此标签的目标</p><h4 id="canonlyattackunitswithouttags-演示例子" tabindex="-1">canOnlyAttackUnitsWithoutTags-演示例子 <a class="header-anchor" href="#canonlyattackunitswithouttags-演示例子" aria-label="Permalink to "canOnlyAttackUnitsWithoutTags-演示例子""></a></h4><div class="language-ini"><button title="Copy Code" class="copy"></button><span class="lang">ini</span><pre class="shiki material-theme-palenight"><code><span class="line"><span style="color:#89DDFF;">[attack]</span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;">canOnlyAttackUnitsWithoutTags:标签</span></span></code></pre></div><hr><h3 id="turretmultitargeting" tabindex="-1">turretMultiTargeting <a class="header-anchor" href="#turretmultitargeting" aria-label="Permalink to "turretMultiTargeting""></a></h3><h4 id="turretmultitargeting-代码简介" tabindex="-1">turretMultiTargeting-代码简介 <a class="header-anchor" href="#turretmultitargeting-代码简介" aria-label="Permalink to "turretMultiTargeting-代码简介""></a></h4><p>代码:turretMultiTargeting 中文释义:炮塔攻击多目标 类型:布尔值bool 隶属于:攻击代码组</p><h4 id="turretmultitargeting-要点指示" tabindex="-1">turretMultiTargeting-要点指示 <a class="header-anchor" href="#turretmultitargeting-要点指示" aria-label="Permalink to "turretMultiTargeting-要点指示""></a></h4><p>设置单位是否允许炮塔攻击不同目标,对范围限制 角度限制 不同类型炮塔很有用</p><h4 id="turretmultitargeting-演示例子" tabindex="-1">turretMultiTargeting-演示例子 <a class="header-anchor" href="#turretmultitargeting-演示例子" aria-label="Permalink to "turretMultiTargeting-演示例子""></a></h4><div class="language-ini"><button title="Copy Code" class="copy"></button><span class="lang">ini</span><pre class="shiki material-theme-palenight"><code><span class="line"><span style="color:#89DDFF;">[attack]</span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;">turretMultiTargeting:true</span></span></code></pre></div><hr><h3 id="dieonattack-removeonattack" tabindex="-1">dieOnAttack/removeOnAttack <a class="header-anchor" href="#dieonattack-removeonattack" aria-label="Permalink to "dieOnAttack/removeOnAttack""></a></h3><h4 id="dieonattack-代码简介" tabindex="-1">dieOnAttack-代码简介 <a class="header-anchor" href="#dieonattack-代码简介" aria-label="Permalink to "dieOnAttack-代码简介""></a></h4><p>代码:dieOnAttack/removeOnAttack中文释义:自爆攻击/移除攻击 类型:布尔值bool 隶属于:攻击代码组</p><h4 id="dieonattack-要点指示" tabindex="-1">dieOnAttack-要点指示 <a class="header-anchor" href="#dieonattack-要点指示" aria-label="Permalink to "dieOnAttack-要点指示""></a></h4><p>设置单位是否在攻击时自毁</p><h4 id="removeonattack-要点指示" tabindex="-1">removeOnAttack-要点指示 <a class="header-anchor" href="#removeonattack-要点指示" aria-label="Permalink to "removeOnAttack-要点指示""></a></h4><p>设置单位是否在攻击时移除自身</p><h4 id="dieonattack-removeonattack-演示例子" tabindex="-1">dieOnAttack/removeOnAttack-演示例子 <a class="header-anchor" href="#dieonattack-removeonattack-演示例子" aria-label="Permalink to "dieOnAttack/removeOnAttack-演示例子""></a></h4><div class="language-ini"><button title="Copy Code" class="copy"></button><span class="lang">ini</span><pre class="shiki material-theme-palenight"><code><span class="line"><span style="color:#89DDFF;">[attack]</span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;">dieOnAttack:true</span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;">removeOnAttack:true</span></span></code></pre></div><hr><h3 id="isfixedfiring" tabindex="-1">isFixedFiring <a class="header-anchor" href="#isfixedfiring" aria-label="Permalink to "isFixedFiring""></a></h3><h4 id="isfixedfiring-代码简介" tabindex="-1">isFixedFiring-代码简介 <a class="header-anchor" href="#isfixedfiring-代码简介" aria-label="Permalink to "isFixedFiring-代码简介""></a></h4><p>代码:isFixedFiring 中文释义:固定射击 类型:布尔值bool 隶属于:攻击代码组</p><h4 id="isfixedfiring-要点指示" tabindex="-1">isFixedFiring-要点指示 <a class="header-anchor" href="#isfixedfiring-要点指示" aria-label="Permalink to "isFixedFiring-要点指示""></a></h4><p>设置单位炮塔是否需要必须对准敌人才能攻击</p><h4 id="isfixedfiring-演示例子" tabindex="-1">isFixedFiring-演示例子 <a class="header-anchor" href="#isfixedfiring-演示例子" aria-label="Permalink to "isFixedFiring-演示例子""></a></h4><div class="language-ini"><button title="Copy Code" class="copy"></button><span class="lang">ini</span><pre class="shiki material-theme-palenight"><code><span class="line"><span style="color:#89DDFF;">[attack]</span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;">isFixedFiring:true</span></span></code></pre></div><hr><h3 id="stoptargetingafterfiring" tabindex="-1">stopTargetingAfterFiring <a class="header-anchor" href="#stoptargetingafterfiring" aria-label="Permalink to "stopTargetingAfterFiring""></a></h3><h4 id="stoptargetingafterfiring-代码简介" tabindex="-1">stopTargetingAfterFiring-代码简介 <a class="header-anchor" href="#stoptargetingafterfiring-代码简介" aria-label="Permalink to "stopTargetingAfterFiring-代码简介""></a></h4><p>代码:stopTargetingAfterFiring 中文释义:自动停火 类型:布尔值bool 隶属于:攻击代码组</p><h4 id="stoptargetingafterfiring-要点指示" tabindex="-1">stopTargetingAfterFiring-要点指示 <a class="header-anchor" href="#stoptargetingafterfiring-要点指示" aria-label="Permalink to "stopTargetingAfterFiring-要点指示""></a></h4><p>设置单位在攻击后是否停止攻击</p><h4 id="stoptargetingafterfiring-演示例子" tabindex="-1">stopTargetingAfterFiring-演示例子 <a class="header-anchor" href="#stoptargetingafterfiring-演示例子" aria-label="Permalink to "stopTargetingAfterFiring-演示例子""></a></h4><div class="language-ini"><button title="Copy Code" class="copy"></button><span class="lang">ini</span><pre class="shiki material-theme-palenight"><code><span class="line"><span style="color:#89DDFF;">[attack]</span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;">stopTargetingAfterFiring:true</span></span></code></pre></div><hr><h3 id="disablepassivetargeting" tabindex="-1">disablePassiveTargeting <a class="header-anchor" href="#disablepassivetargeting" aria-label="Permalink to "disablePassiveTargeting""></a></h3><h4 id="disablepassivetargeting-代码简介" tabindex="-1">disablePassiveTargeting-代码简介 <a class="header-anchor" href="#disablepassivetargeting-代码简介" aria-label="Permalink to "disablePassiveTargeting-代码简介""></a></h4><p>代码:disablePassiveTargeting 中文释义:不能主动攻击 类型:布尔值bool 隶属于:攻击代码组</p><h4 id="disablepassivetargeting-要点指示" tabindex="-1">disablePassiveTargeting-要点指示 <a class="header-anchor" href="#disablepassivetargeting-要点指示" aria-label="Permalink to "disablePassiveTargeting-要点指示""></a></h4><p>设置单位是否需要手动指定目标才能攻击,由于attack路径点回在目标死亡后会重新选定目标,导致此条代码失效</p><h4 id="disablepassivetargeting-演示例子" tabindex="-1">disablePassiveTargeting-演示例子 <a class="header-anchor" href="#disablepassivetargeting-演示例子" aria-label="Permalink to "disablePassiveTargeting-演示例子""></a></h4><div class="language-ini"><button title="Copy Code" class="copy"></button><span class="lang">ini</span><pre class="shiki material-theme-palenight"><code><span class="line"><span style="color:#89DDFF;">[attack]</span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;">disablePassiveTargeting:true</span></span></code></pre></div><hr><h3 id="ismelee" tabindex="-1">isMelee <a class="header-anchor" href="#ismelee" aria-label="Permalink to "isMelee""></a></h3><h4 id="ismelee-代码简介" tabindex="-1">isMelee-代码简介 <a class="header-anchor" href="#ismelee-代码简介" aria-label="Permalink to "isMelee-代码简介""></a></h4><p>代码:isMelee 中文释义:近战 类型:布尔值bool 隶属于:攻击代码组</p><h4 id="ismelee-要点指示" tabindex="-1">isMelee-要点指示 <a class="header-anchor" href="#ismelee-要点指示" aria-label="Permalink to "isMelee-要点指示""></a></h4><p>设置单位是否拥有近战逻辑,如单位攻击时不需要瞄准到目标中心,只需要瞄准到半径内,同时自动索敌</p><h4 id="ismelee-演示例子" tabindex="-1">isMelee-演示例子 <a class="header-anchor" href="#ismelee-演示例子" aria-label="Permalink to "isMelee-演示例子""></a></h4><div class="language-ini"><button title="Copy Code" class="copy"></button><span class="lang">ini</span><pre class="shiki material-theme-palenight"><code><span class="line"><span style="color:#89DDFF;">[attack]</span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;">isMelee:true</span></span></code></pre></div><hr><h3 id="meleeengangementdistance" tabindex="-1">meleeEngangementDistance <a class="header-anchor" href="#meleeengangementdistance" aria-label="Permalink to "meleeEngangementDistance""></a></h3><h4 id="meleeengangementdistance-代码简介" tabindex="-1">meleeEngangementDistance-代码简介 <a class="header-anchor" href="#meleeengangementdistance-代码简介" aria-label="Permalink to "meleeEngangementDistance-代码简介""></a></h4><p>代码:meleeEngangementDistance 中文释义:近战索敌距离 类型:整数int 隶属于:攻击代码组</p><h4 id="meleeengangementdistance-要点指示" tabindex="-1">meleeEngangementDistance-要点指示 <a class="header-anchor" href="#meleeengangementdistance-要点指示" aria-label="Permalink to "meleeEngangementDistance-要点指示""></a></h4><p>设置单位的近战逻辑索敌距离,与isMelee结合使用,最高1500</p><h4 id="meleeengangementdistance-演示例子" tabindex="-1">meleeEngangementDistance-演示例子 <a class="header-anchor" href="#meleeengangementdistance-演示例子" aria-label="Permalink to "meleeEngangementDistance-演示例子""></a></h4><div class="language-ini"><button title="Copy Code" class="copy"></button><span class="lang">ini</span><pre class="shiki material-theme-palenight"><code><span class="line"><span style="color:#89DDFF;">[attack]</span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;">meleeEngangementDistance:1500</span></span></code></pre></div><hr><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>,优先级低于炮塔节的代码,如果炮塔节未填写覆盖则使用此处的属性。</p></div><h3 id="turretsize" tabindex="-1">turretSize <a class="header-anchor" href="#turretsize" aria-label="Permalink to "turretSize""></a></h3><h4 id="turretsize-代码简介" tabindex="-1">turretSize-代码简介 <a class="header-anchor" href="#turretsize-代码简介" aria-label="Permalink to "turretSize-代码简介""></a></h4><p>代码:turretSize 中文释义:炮塔大小 类型:浮点值float 隶属于:攻击属性代码组</p><h4 id="turretsize-要点指示" tabindex="-1">turretSize-要点指示 <a class="header-anchor" href="#turretsize-要点指示" aria-label="Permalink to "turretSize-要点指示""></a></h4><p>设置单位炮塔大小,按像素修改炮塔开火位置,在炮塔节使用size覆盖</p><h4 id="turretsize-演示例子" tabindex="-1">turretSize-演示例子 <a class="header-anchor" href="#turretsize-演示例子" aria-label="Permalink to "turretSize-演示例子""></a></h4><div class="language-ini"><button title="Copy Code" class="copy"></button><span class="lang">ini</span><pre class="shiki material-theme-palenight"><code><span class="line"><span style="color:#89DDFF;">[attack]</span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;">turretSize:20</span></span></code></pre></div><hr><h3 id="turretturnspeed" tabindex="-1">turretTurnSpeed <a class="header-anchor" href="#turretturnspeed" aria-label="Permalink to "turretTurnSpeed""></a></h3><h4 id="turretturnspeed-代码简介" tabindex="-1">turretTurnSpeed-代码简介 <a class="header-anchor" href="#turretturnspeed-代码简介" aria-label="Permalink to "turretTurnSpeed-代码简介""></a></h4><p>代码:turretTurnSpeed 中文释义:炮塔转速 类型:浮点值float 隶属于:攻击属性代码组</p><h4 id="turretturnspeed-要点指示" tabindex="-1">turretTurnSpeed-要点指示 <a class="header-anchor" href="#turretturnspeed-要点指示" aria-label="Permalink to "turretTurnSpeed-要点指示""></a></h4><p>设置单位炮塔的旋转速度,按帧转动炮塔,如60帧1速就是1秒旋转60度,在炮塔节使用turnSpeed覆盖</p><h4 id="turretturnspeed-演示例子" tabindex="-1">turretTurnSpeed-演示例子 <a class="header-anchor" href="#turretturnspeed-演示例子" aria-label="Permalink to "turretTurnSpeed-演示例子""></a></h4><div class="language-ini"><button title="Copy Code" class="copy"></button><span class="lang">ini</span><pre class="shiki material-theme-palenight"><code><span class="line"><span style="color:#89DDFF;">[attack]</span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;">turretTurnSpeed:2</span></span></code></pre></div><hr><h3 id="shootdelay" tabindex="-1">shootDelay <a class="header-anchor" href="#shootdelay" aria-label="Permalink to "shootDelay""></a></h3><h4 id="shootdelay-代码简介" tabindex="-1">shootDelay-代码简介 <a class="header-anchor" href="#shootdelay-代码简介" aria-label="Permalink to "shootDelay-代码简介""></a></h4><p>代码:shootDelay 中文释义:攻击间隔 类型:浮点值float 隶属于:攻击属性代码组</p><h4 id="shootdelay-要点指示" tabindex="-1">shootDelay-要点指示 <a class="header-anchor" href="#shootdelay-要点指示" aria-label="Permalink to "shootDelay-要点指示""></a></h4><p>设置单位炮塔的攻击间隔,按帧或按时间修改,如填写60可以更换成1s,在炮塔节使用delay覆盖</p><h4 id="shootdelay-演示例子" tabindex="-1">shootDelay-演示例子 <a class="header-anchor" href="#shootdelay-演示例子" aria-label="Permalink to "shootDelay-演示例子""></a></h4><div class="language-ini"><button title="Copy Code" class="copy"></button><span class="lang">ini</span><pre class="shiki material-theme-palenight"><code><span class="line"><span style="color:#89DDFF;">[attack]</span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;">shootDelay:60</span></span></code></pre></div><hr><h3 id="maxattackrange" tabindex="-1">maxAttackRange <a class="header-anchor" href="#maxattackrange" aria-label="Permalink to "maxAttackRange""></a></h3><h4 id="maxattackrange-代码简介" tabindex="-1">maxAttackRange-代码简介 <a class="header-anchor" href="#maxattackrange-代码简介" aria-label="Permalink to "maxAttackRange-代码简介""></a></h4><p>代码:maxAttackRange 中文释义:攻击距离 类型:整数int 隶属于:攻击属性代码组</p><h4 id="maxattackrange-要点指示" tabindex="-1">maxAttackRange-要点指示 <a class="header-anchor" href="#maxattackrange-要点指示" aria-label="Permalink to "maxAttackRange-要点指示""></a></h4><p>设置单位炮塔的攻击距离,在炮塔节使用limitingRange覆盖</p><details class="details custom-block"><summary>Details</summary><p>limitingRange不能超过maxAttackRange,如果炮塔都使用了limitingRange,那此处需要删除maxAttackRange</p></details><h4 id="maxattackrange-演示例子" tabindex="-1">maxAttackRange-演示例子 <a class="header-anchor" href="#maxattackrange-演示例子" aria-label="Permalink to "maxAttackRange-演示例子""></a></h4><div class="language-ini"><button title="Copy Code" class="copy"></button><span class="lang">ini</span><pre class="shiki material-theme-palenight"><code><span class="line"><span style="color:#89DDFF;">[attack]</span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;">maxAttackRange:1000</span></span></code></pre></div><hr><h3 id="aimoffsetspread" tabindex="-1">aimOffsetSpread <a class="header-anchor" href="#aimoffsetspread" aria-label="Permalink to "aimOffsetSpread""></a></h3><h4 id="aimoffsetspread-代码简介" tabindex="-1">aimOffsetSpread-代码简介 <a class="header-anchor" href="#aimoffsetspread-代码简介" aria-label="Permalink to "aimOffsetSpread-代码简介""></a></h4><p>代码:aimOffsetSpread 中文释义:攻击偏移 类型:浮点值float 隶属于:攻击属性组</p><h4 id="aimoffsetspread-要点指示" tabindex="-1">aimOffsetSpread-要点指示 <a class="header-anchor" href="#aimoffsetspread-要点指示" aria-label="Permalink to "aimOffsetSpread-要点指示""></a></h4><p>攻击时按照敌人半径乘对应值进行位置偏移,填0时攻击中心</p><h4 id="aimoffsetspread-演示例子" tabindex="-1">aimOffsetSpread-演示例子 <a class="header-anchor" href="#aimoffsetspread-演示例子" aria-label="Permalink to "aimOffsetSpread-演示例子""></a></h4><div class="language-ini"><button title="Copy Code" class="copy"></button><span class="lang">ini</span><pre class="shiki material-theme-palenight"><code><span class="line"><span style="color:#89DDFF;">[attack]</span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;">aimOffsetSpread:0.6</span></span></code></pre></div><hr><h3 id="shootdelaymultiplier-shootdamagemultiplier" tabindex="-1">shootDelayMultiplier/shootDamageMultiplier <a class="header-anchor" href="#shootdelaymultiplier-shootdamagemultiplier" aria-label="Permalink to "shootDelayMultiplier/shootDamageMultiplier""></a></h3><h4 id="shootdelaymultiplier-shootdamagemultiplier-代码简介" tabindex="-1">shootDelayMultiplier/shootDamageMultiplier-代码简介 <a class="header-anchor" href="#shootdelaymultiplier-shootdamagemultiplier-代码简介" aria-label="Permalink to "shootDelayMultiplier/shootDamageMultiplier-代码简介""></a></h4><p>代码:shootDelayMultiplier/shootDamageMultiplier 中文释义:攻击间隔乘数/攻击伤害乘数 类型:浮点值 隶属于:攻击属性代码组</p><h4 id="shootdelaymultiplier-shootdamagemultiplier-要点指示" tabindex="-1">shootDelayMultiplier/shootDamageMultiplier-要点指示 <a class="header-anchor" href="#shootdelaymultiplier-shootdamagemultiplier-要点指示" aria-label="Permalink to "shootDelayMultiplier/shootDamageMultiplier-要点指示""></a></h4><p>设置单位的攻击间隔乘数和攻击伤害乘数,在行动节使用setUnitStats修改</p><h4 id="shootdelaymultiplier-shootdamagemultiplier-演示例子" tabindex="-1">shootDelayMultiplier/shootDamageMultiplier-演示例子 <a class="header-anchor" href="#shootdelaymultiplier-shootdamagemultiplier-演示例子" aria-label="Permalink to "shootDelayMultiplier/shootDamageMultiplier-演示例子""></a></h4><div class="language-ini"><button title="Copy Code" class="copy"></button><span class="lang">ini</span><pre class="shiki material-theme-palenight"><code><span class="line"><span style="color:#89DDFF;">[action_1]</span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;">setUnitStats:</span><span style="color:#F07178;">shootDelayMultiplier</span><span style="color:#89DDFF;">=</span><span style="color:#A6ACCD;">0.8,</span><span style="color:#F07178;">shootDamageMultiplier</span><span style="color:#89DDFF;">=</span><span style="color:#A6ACCD;">1.4</span></span></code></pre></div><hr><h2 id="第四类-显示相关组" tabindex="-1">第四类-显示相关组 <a class="header-anchor" href="#第四类-显示相关组" aria-label="Permalink to "第四类-显示相关组""></a></h2><div class="vp-code-group"><div class="tabs"><input type="radio" name="group-HjEPZ" id="tab-5ijSeq3" checked="checked"><label for="tab-5ijSeq3">屑狐狸</label></div><div class="blocks"><div class="language-bash active"><button title="Copy Code" class="copy"></button><span class="lang">bash</span><pre class="shiki material-theme-palenight"><code><span class="line"><span style="color:#FFCB6B;">以下的代码为</span><span style="color:#89DDFF;">\`</span><span style="color:#FFCB6B;">显示代码</span><span style="color:#89DDFF;">\`</span><span style="color:#FFCB6B;">,用于让单位在攻击时效果更好</span></span>
|
||||
<span class="line"><span style="color:#FFCB6B;">对于部分有对应需求的单位来说这部分较为有用</span></span></code></pre></div></div></div><h3 id="setmainturretas" tabindex="-1">setMainTurretAs <a class="header-anchor" href="#setmainturretas" aria-label="Permalink to "setMainTurretAs""></a></h3><h4 id="setmainturretas-代码简介" tabindex="-1">setMainTurretAs-代码简介 <a class="header-anchor" href="#setmainturretas-代码简介" aria-label="Permalink to "setMainTurretAs-代码简介""></a></h4><p>代码:setMainTurretAs 中文释义:设置主炮塔 类型:炮塔turret ref 隶属于:显示相关组</p><h4 id="setmainturretas-要点指示" tabindex="-1">setMainTurretAs-要点指示 <a class="header-anchor" href="#setmainturretas-要点指示" aria-label="Permalink to "setMainTurretAs-要点指示""></a></h4><p>设置单位主炮塔</p><h4 id="setmainturretas-演示例子" tabindex="-1">setMainTurretAs-演示例子 <a class="header-anchor" href="#setmainturretas-演示例子" aria-label="Permalink to "setMainTurretAs-演示例子""></a></h4><div class="language-ini"><button title="Copy Code" class="copy"></button><span class="lang">ini</span><pre class="shiki material-theme-palenight"><code><span class="line"><span style="color:#89DDFF;">[attack]</span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;">setMainTurretAs:31</span></span></code></pre></div><hr><h3 id="turretrotatewithbody" tabindex="-1">turretRotateWithBody <a class="header-anchor" href="#turretrotatewithbody" aria-label="Permalink to "turretRotateWithBody""></a></h3><h4 id="turretrotatewithbody-代码简介" tabindex="-1">turretRotateWithBody-代码简介 <a class="header-anchor" href="#turretrotatewithbody-代码简介" aria-label="Permalink to "turretRotateWithBody-代码简介""></a></h4><p>代码:turretRotateWithBody 中文释义:炮塔跟随主体旋转 类型:布尔值bool 隶属于:显示相关组</p><h4 id="turretrotatewithbody-要点指示" tabindex="-1">turretRotateWithBody-要点指示 <a class="header-anchor" href="#turretrotatewithbody-要点指示" aria-label="Permalink to "turretRotateWithBody-要点指示""></a></h4><p>设置单位炮塔跟随主体旋转,比如重型拦截机</p><h4 id="turretrotatewithbody-演示例子" tabindex="-1">turretRotateWithBody-演示例子 <a class="header-anchor" href="#turretrotatewithbody-演示例子" aria-label="Permalink to "turretRotateWithBody-演示例子""></a></h4><div class="language-ini"><button title="Copy Code" class="copy"></button><span class="lang">ini</span><pre class="shiki material-theme-palenight"><code><span class="line"><span style="color:#89DDFF;">[attack]</span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;">turretRotateWithBody:true</span></span></code></pre></div><hr><h3 id="attackmovement" tabindex="-1">attackMovement <a class="header-anchor" href="#attackmovement" aria-label="Permalink to "attackMovement""></a></h3><h4 id="attackmovement-代码简介" tabindex="-1">attackMovement-代码简介 <a class="header-anchor" href="#attackmovement-代码简介" aria-label="Permalink to "attackMovement-代码简介""></a></h4><p>代码:attackMovement 中文释义:攻击移动类型 类型:字符串string 隶属于:显示相关组</p><h4 id="attackmovement-要点指示" tabindex="-1">attackMovement-要点指示 <a class="header-anchor" href="#attackmovement-要点指示" aria-label="Permalink to "attackMovement-要点指示""></a></h4><p>设置单位攻击移动类型</p><div class="tip custom-block"><p class="custom-block-title">TIP</p><p>可填类型如下</p><table><thead><tr><th>类型</th><th>normal</th><th>bomber</th><th>moveaway</th><th>strafing</th></tr></thead><tbody><tr><td>效果</td><td>无</td><td>轰炸机</td><td>无效</td><td>无效</td></tr></tbody></table></div><h4 id="attackmovement-演示例子" tabindex="-1">attackMovement-演示例子 <a class="header-anchor" href="#attackmovement-演示例子" aria-label="Permalink to "attackMovement-演示例子""></a></h4><div class="language-ini"><button title="Copy Code" class="copy"></button><span class="lang">ini</span><pre class="shiki material-theme-palenight"><code><span class="line"><span style="color:#89DDFF;">[attack]</span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;">attackMovement:bomber</span></span></code></pre></div><hr><h3 id="showrangeuiguide" tabindex="-1">showRangeUIGuide <a class="header-anchor" href="#showrangeuiguide" aria-label="Permalink to "showRangeUIGuide""></a></h3><h4 id="showrangeuiguide-代码简介" tabindex="-1">showRangeUIGuide-代码简介 <a class="header-anchor" href="#showrangeuiguide-代码简介" aria-label="Permalink to "showRangeUIGuide-代码简介""></a></h4><p>代码:showRangeUIGuide 中文释义:显示范围UI 类型:布尔值bool 隶属于:显示相关组</p><h4 id="showrangeuiguide-要点指示" tabindex="-1">showRangeUIGuide-要点指示 <a class="header-anchor" href="#showrangeuiguide-要点指示" aria-label="Permalink to "showRangeUIGuide-要点指示""></a></h4><p>是否显示范围UI,如默认不显示的小范围填写true则会显示范围,比如瞭望塔</p><h4 id="showrangeuiguide-演示例子" tabindex="-1">showRangeUIGuide-演示例子 <a class="header-anchor" href="#showrangeuiguide-演示例子" aria-label="Permalink to "showRangeUIGuide-演示例子""></a></h4><div class="language-ini"><button title="Copy Code" class="copy"></button><span class="lang">ini</span><pre class="shiki material-theme-palenight"><code><span class="line"><span style="color:#89DDFF;">[attack]</span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;">showRangeUIGuide:true</span></span></code></pre></div><hr>`,206),l=[s];function r(o,c,h,d,p,u){return e(),t("div",null,l)}const m=a(i,[["render",r]]);export{k as __pageData,m as default};
|
1
assets/src_Unit_attack.md.9d57709d.lean.js
Normal file
|
@ -0,0 +1 @@
|
|||
import{_ as a,c as t,o as e,V as n}from"./chunks/framework.fcc0bf38.js";const k=JSON.parse('{"title":"[attack]组","description":"","frontmatter":{"outline":"deep"},"headers":[],"relativePath":"src/Unit/attack.md","filePath":"src/Unit/attack.md"}'),i={name:"src/Unit/attack.md"},s=n("",206),l=[s];function r(o,c,h,d,p,u){return e(),t("div",null,l)}const m=a(i,[["render",r]]);export{k as __pageData,m as default};
|
33
assets/src_Unit_canbuild.md.4f4f1935.js
Normal file
|
@ -0,0 +1,33 @@
|
|||
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-8tBz-" id="tab-oLGhYuX" checked="checked"><label for="tab-oLGhYuX">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>
|
||||
<span class="line"><span style="color:#89DDFF;">[canBuild_%TK]</span><span style="color:#A6ACCD;"> </span><span style="color:#676E95;font-style:italic;">#符号命名</span></span>
|
||||
<span class="line"><span style="color:#89DDFF;">[canBuild_P P]</span><span style="color:#A6ACCD;"> </span><span style="color:#676E95;font-style:italic;">#字母与空格的组合也会被视为单独的组名</span></span>
|
||||
<span class="line"><span style="color:#89DDFF;">[canBuild_/(ㄒoㄒ)/~~]</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;">#甚至是emoji</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></code></pre></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><div class="danger custom-block"><p class="custom-block-title">DANGER</p><p>如果没有name而填入其他代码将引发报错,且name:不能不填<br> 需要为空可以填写 name:NONE</p></div><h4 id="name-用法" tabindex="-1">name-用法 <a class="header-anchor" href="#name-用法" aria-label="Permalink to "name-用法""></a></h4><p>name应填写单位[core]内中 name属性的名称, 它决定了需要建造哪个单位。</p><div class="warning custom-block"><p class="custom-block-title">WARNING</p><p>注意! 如果你填了两个相同的name,建造栏会自动合并,建造栏中不会出现两个相同的单位。<br> 其中根据代码自上而下的先后顺序判断优先级。</p></div><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:#89DDFF;">[canBuild_SmallTank]</span><span style="color:#A6ACCD;"> </span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;">name: SmallTank</span></span>
|
||||
<span class="line"></span>
|
||||
<span class="line"><span style="color:#89DDFF;">[canBuild_小坦克]</span><span style="color:#A6ACCD;"> </span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;">name: 小坦克</span></span></code></pre></div><h3 id="pos" tabindex="-1">pos <a class="header-anchor" href="#pos" aria-label="Permalink to "pos""></a></h3><h4 id="pos-代码简介" tabindex="-1">pos-代码简介 <a class="header-anchor" href="#pos-代码简介" aria-label="Permalink to "pos-代码简介""></a></h4><p>代码:pos 英文全称:position 中文释义:名次 类型:浮点数</p><h4 id="pos-用法" tabindex="-1">pos-用法 <a class="header-anchor" href="#pos-用法" aria-label="Permalink to "pos-用法""></a></h4><p>pos:属性数值表示排序的序号,其中越小的越靠前。</p><div class="info custom-block"><p class="custom-block-title">INFO</p><p>如果没有填写pos,将默认为1,并按照代码顺序依次递增。<br> 其中数值可以为小数,可以为负,也可以为整数。</p></div><div class="warning custom-block"><p class="custom-block-title">WARNING</p><p>小数点后位数过长将会影响判断,建议用整数。</p></div><h4 id="pos-演示例子" tabindex="-1">pos-演示例子 <a class="header-anchor" href="#pos-演示例子" aria-label="Permalink to "pos-演示例子""></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>
|
||||
<span class="line"><span style="color:#A6ACCD;">pos:0.1</span></span>
|
||||
<span class="line"></span>
|
||||
<span class="line"><span style="color:#89DDFF;">[canBuild_小坦克]</span><span style="color:#A6ACCD;"> </span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;">pos:-2</span></span></code></pre></div><h3 id="tech" tabindex="-1">tech <a class="header-anchor" href="#tech" aria-label="Permalink to "tech""></a></h3><h4 id="tech-代码简介" tabindex="-1">tech-代码简介 <a class="header-anchor" href="#tech-代码简介" aria-label="Permalink to "tech-代码简介""></a></h4><p>代码:tech 英文全称:technology 中文释义:科技 类型:整数</p><h4 id="tech-用法" tabindex="-1">tech-用法 <a class="header-anchor" href="#tech-用法" aria-label="Permalink to "tech-用法""></a></h4><p>填写数字设置单位的科技等级,共有3个级别,1级GUI显示为绿色,2、3级显示为黄色。</p><div class="info custom-block"><p class="custom-block-title">INFO</p><p>与[core]中的科技等级不同的是,超过3或者为负也不会报错。<br> 而且会受到原单位科技等级的影响,优先级低于原单位设置的科技等级。</p></div><h4 id="tech-演示例子" tabindex="-1">tech-演示例子 <a class="header-anchor" href="#tech-演示例子" aria-label="Permalink to "tech-演示例子""></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>
|
||||
<span class="line"><span style="color:#A6ACCD;">tech: -1</span></span>
|
||||
<span class="line"></span>
|
||||
<span class="line"><span style="color:#89DDFF;">[canBuild_小坦克]</span><span style="color:#A6ACCD;"> </span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;">tech: 2</span></span></code></pre></div><h3 id="forcenano" tabindex="-1">forceNano <a class="header-anchor" href="#forcenano" aria-label="Permalink to "forceNano""></a></h3><h4 id="forcenano-代码简介" tabindex="-1">forceNano-代码简介 <a class="header-anchor" href="#forcenano-代码简介" aria-label="Permalink to "forceNano-代码简介""></a></h4><p>代码:forceNano 中文释义: 建造方式 类型: 布尔值</p><h4 id="forcenano-用法" tabindex="-1">forceNano-用法 <a class="header-anchor" href="#forcenano-用法" aria-label="Permalink to "forceNano-用法""></a></h4><p>当属性设置为true时,则将目标当作是建筑物建造。 (即使是一个单位)</p><div class="tip custom-block"><p class="custom-block-title">TIP</p><p>默认为 false。<br> 对于没有建筑能力的单位将会在地图上凭空生成一个虚影而不会继续建造。</p></div><h4 id="forcenano-演示例子" tabindex="-1">forceNano-演示例子 <a class="header-anchor" href="#forcenano-演示例子" aria-label="Permalink to "forceNano-演示例子""></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>
|
||||
<span class="line"><span style="color:#A6ACCD;">forceNano: true</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>当属性设置为true时,则使单位建造可见。</p><div class="tip custom-block"><p class="custom-block-title">TIP</p><p>其中可以将属性设置为条件判断语句。<br> 如果满足条件,则从界面中显示此单位。<br> 默认为true。</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;">[canBuild_SmallTank]</span><span style="color:#A6ACCD;"> </span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;">isVisible: if self.hp() > 50</span></span></code></pre></div><h3 id="islocked" tabindex="-1">isLocked <a class="header-anchor" href="#islocked" aria-label="Permalink to "isLocked""></a></h3><h4 id="islocked-代码简介" tabindex="-1">isLocked-代码简介 <a class="header-anchor" href="#islocked-代码简介" aria-label="Permalink to "isLocked-代码简介""></a></h4><p>代码:isLocked 中文释义: 锁定 类型: 逻辑布尔值</p><h4 id="islocked-用法" tabindex="-1">isLocked-用法 <a class="header-anchor" href="#islocked-用法" aria-label="Permalink to "isLocked-用法""></a></h4><p>当属性设置为true时,则使单位锁定。</p><div class="tip custom-block"><p class="custom-block-title">TIP</p><p>其中可以将属性设置为条件判断语句。<br> 如果满足条件,则使单位锁定。<br> 默认为false。</p></div><h4 id="islocked-演示例子" tabindex="-1">isLocked-演示例子 <a class="header-anchor" href="#islocked-演示例子" aria-label="Permalink to "isLocked-演示例子""></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>
|
||||
<span class="line"><span style="color:#A6ACCD;">isLocked: if self.hp() < 50</span></span></code></pre></div><h3 id="islockedmessage" tabindex="-1">isLockedMessage <a class="header-anchor" href="#islockedmessage" aria-label="Permalink to "isLockedMessage""></a></h3><h4 id="islockedmessage-代码简介" tabindex="-1">isLockedMessage-代码简介 <a class="header-anchor" href="#islockedmessage-代码简介" aria-label="Permalink to "isLockedMessage-代码简介""></a></h4><p>代码:isLockedMessage 中文释义: 锁定消息 类型: 字符串</p><h4 id="islockedmessage-用法" tabindex="-1">isLockedMessage-用法 <a class="header-anchor" href="#islockedmessage-用法" aria-label="Permalink to "isLockedMessage-用法""></a></h4><p>填写被锁定时显示的文本。</p>`,64),h={class:"tip custom-block"},u=s("p",{class:"custom-block-title"},"TIP",-1),k=s("br",null,null,-1),b=e(`<h4 id="islockedmessage-演示例子" tabindex="-1">isLockedMessage-演示例子 <a class="header-anchor" href="#islockedmessage-演示例子" aria-label="Permalink to "isLockedMessage-演示例子""></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>
|
||||
<span class="line"><span style="color:#A6ACCD;">isLockedMessage: 因为你太菜这个单位不给你用嗷。\\n 想用的话就努力变强吧!</span></span></code></pre></div><h3 id="islockedmessage-lang" tabindex="-1">isLockedMessage_{LANG} <br> <a class="header-anchor" href="#islockedmessage-lang" aria-label="Permalink to "isLockedMessage_{LANG} <br>""></a></h3><h4 id="islockedmessage-lang-代码简介" tabindex="-1">isLockedMessage-{LANG}代码简介 <a class="header-anchor" href="#islockedmessage-lang-代码简介" aria-label="Permalink to "isLockedMessage-{LANG}代码简介""></a></h4><p>代码:isLockedMessage 中文释义: 锁定消息 类型: 字符串 是isLockedMessage的多语言版本,用于设置在不同语言下显示的锁定内容,用法一致。</p><div class="tip custom-block"><p class="custom-block-title">TIP</p><p>将{LANG}替换为语言文字的缩写即可,例如:<br> zh 代表简体中文,es,代表英文。</p></div><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>
|
||||
<span class="line"><span style="color:#A6ACCD;">isLockedMessage_es: You are BAKA! \\n if think use it ,go get stronger.</span></span></code></pre></div><h3 id="islockedalt" tabindex="-1">isLockedAlt <a class="header-anchor" href="#islockedalt" aria-label="Permalink to "isLockedAlt""></a></h3><h4 id="islockedalt-代码简介" tabindex="-1">isLockedAlt-代码简介 <a class="header-anchor" href="#islockedalt-代码简介" aria-label="Permalink to "isLockedAlt-代码简介""></a></h4><p>代码:isLockedAlt 中文释义: 另外的锁定 类型: 逻辑布尔值</p><h4 id="islockedalt-用法" tabindex="-1">isLockedAlt-用法 <a class="header-anchor" href="#islockedalt-用法" aria-label="Permalink to "isLockedAlt-用法""></a></h4><p>和isLocked完全一样,只是为了多一个锁定的条件。</p><h4 id="islockedalt-演示例子" tabindex="-1">isLockedAlt-演示例子 <a class="header-anchor" href="#islockedalt-演示例子" aria-label="Permalink to "isLockedAlt-演示例子""></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>
|
||||
<span class="line"><span style="color:#A6ACCD;">isLockedAlt: if self.energy(</span><span style="color:#F07178;">greaterThan</span><span style="color:#89DDFF;">=</span><span style="color:#A6ACCD;">90)</span></span></code></pre></div><h3 id="islockedaltmessage" tabindex="-1">isLockedAltMessage <a class="header-anchor" href="#islockedaltmessage" aria-label="Permalink to "isLockedAltMessage""></a></h3><h4 id="islockedaltmessage-代码简介" tabindex="-1">isLockedAltMessage-代码简介 <a class="header-anchor" href="#islockedaltmessage-代码简介" aria-label="Permalink to "isLockedAltMessage-代码简介""></a></h4><p>代码:isLockedAltMessage 中文释义: 另外的锁定消息 类型: 字符串</p><h4 id="islockedaltmessage-用法" tabindex="-1">isLockedAltMessage-用法 <a class="header-anchor" href="#islockedaltmessage-用法" aria-label="Permalink to "isLockedAltMessage-用法""></a></h4><p>和isLockedMessage的完全一样,只是为了表达另一个的原因。 用来描述isLockedAlt。</p><h4 id="islockedaltmessage-演示例子" tabindex="-1">isLockedAltMessage-演示例子 <a class="header-anchor" href="#islockedaltmessage-演示例子" aria-label="Permalink to "isLockedAltMessage-演示例子""></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>
|
||||
<span class="line"><span style="color:#A6ACCD;">isLockedAltMessage: 还有因为这个单位丑拒。</span></span></code></pre></div><h3 id="islockedalt2" tabindex="-1">isLockedAlt2 <a class="header-anchor" href="#islockedalt2" aria-label="Permalink to "isLockedAlt2""></a></h3><h4 id="islockedalt2-代码简介" tabindex="-1">isLockedAlt2-代码简介 <a class="header-anchor" href="#islockedalt2-代码简介" aria-label="Permalink to "isLockedAlt2-代码简介""></a></h4><p>代码:isLockedAlt2 中文释义: 另外的锁定2 类型: 逻辑布尔值</p><h4 id="islockedalt2-用法" tabindex="-1">isLockedAlt2-用法 <a class="header-anchor" href="#islockedalt2-用法" aria-label="Permalink to "isLockedAlt2-用法""></a></h4><p>和isLocked完全一样,评价就是梅开二度。</p><h4 id="islockedalt2-演示例子" tabindex="-1">isLockedAlt2-演示例子 <a class="header-anchor" href="#islockedalt2-演示例子" aria-label="Permalink to "isLockedAlt2-演示例子""></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>
|
||||
<span class="line"><span style="color:#A6ACCD;">isLockedAlt2: if self.energy() < 100</span></span></code></pre></div><h3 id="islockedalt2message" tabindex="-1">isLockedAlt2Message <a class="header-anchor" href="#islockedalt2message" aria-label="Permalink to "isLockedAlt2Message""></a></h3><h4 id="islockedalt2message-代码简介" tabindex="-1">isLockedAlt2Message-代码简介 <a class="header-anchor" href="#islockedalt2message-代码简介" aria-label="Permalink to "isLockedAlt2Message-代码简介""></a></h4><p>代码:isLockedAlt2Message 中文释义: 另外的锁定消息2 类型: 字符串</p><h4 id="islockedalt2message-用法" tabindex="-1">isLockedAlt2Message-用法 <a class="header-anchor" href="#islockedalt2message-用法" aria-label="Permalink to "isLockedAlt2Message-用法""></a></h4><p>和isLockedMessage的完全一样。 用来描述isLockedAlt2。</p><h4 id="islockedalt2message-演示例子" tabindex="-1">isLockedAlt2Message-演示例子 <a class="header-anchor" href="#islockedalt2message-演示例子" aria-label="Permalink to "isLockedAlt2Message-演示例子""></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>
|
||||
<span class="line"><span style="color:#A6ACCD;">isLockedAlt2Message: 第三个原因是我觉得你应该把雪糕分我一半吃。</span></span></code></pre></div><h3 id="addresources" tabindex="-1">addResources <a class="header-anchor" href="#addresources" aria-label="Permalink to "addResources""></a></h3><h4 id="addresources-代码简介" tabindex="-1">addResources-代码简介 <a class="header-anchor" href="#addresources-代码简介" aria-label="Permalink to "addResources-代码简介""></a></h4><p>代码:addResources 中文释义: 增加资源 类型: 资源</p><h4 id="addresources-用法" tabindex="-1">addResources-用法 <a class="header-anchor" href="#addresources-用法" aria-label="Permalink to "addResources-用法""></a></h4><p>填写所需的资源名和数量,在放置建筑物或生产单位时,将这些资源添加到自身中。</p><div class="tip custom-block"><p class="custom-block-title">TIP</p><p>使用逗号分隔,可以添加多种资源。</p></div><h4 id="addresources-演示例子" tabindex="-1">addResources-演示例子 <a class="header-anchor" href="#addresources-演示例子" aria-label="Permalink to "addResources-演示例子""></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>
|
||||
<span class="line"><span style="color:#A6ACCD;">addResources: </span><span style="color:#F07178;">ammo</span><span style="color:#89DDFF;">=</span><span style="color:#A6ACCD;">5, </span><span style="color:#F07178;">setFlag</span><span style="color:#89DDFF;">=</span><span style="color:#A6ACCD;">1</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="tip custom-block"><p class="custom-block-title">TIP</p><p>用处如建造一个建筑时候附送一个单位。此代码可用设定为两者价钱之和,矿场600,送矿车1400,而建造时花2000,送1400,卖600,可避免玩家刷钱。(抄自HX代码表)</p></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;">[canBuild_SmallTank]</span><span style="color:#A6ACCD;"> </span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;">price: 5000,</span><span style="color:#F07178;">ammo</span><span style="color:#89DDFF;">=</span><span style="color:#A6ACCD;">5</span></span></code></pre></div><h3 id="isguiblinking" tabindex="-1">isGuiBlinking <a class="header-anchor" href="#isguiblinking" aria-label="Permalink to "isGuiBlinking""></a></h3><h4 id="isguiblinking-代码简介" tabindex="-1">isGuiBlinking-代码简介 <a class="header-anchor" href="#isguiblinking-代码简介" aria-label="Permalink to "isGuiBlinking-代码简介""></a></h4><p>代码:isGuiBlinking 中文释义: 界面闪烁 类型: 逻辑布尔值</p><h4 id="isguiblinking-用法" tabindex="-1">isGuiBlinking-用法 <a class="header-anchor" href="#isguiblinking-用法" aria-label="Permalink to "isGuiBlinking-用法""></a></h4><p>为true时在UI中拥有闪烁效果。</p><div class="tip custom-block"><p class="custom-block-title">TIP</p><p>可以添加条件判断语句。<br> 满足某些条件时闪烁此UI,用来提示某些单位可以建造了。</p></div><h4 id="isguiblinking-演示例子" tabindex="-1">isGuiBlinking-演示例子 <a class="header-anchor" href="#isguiblinking-演示例子" aria-label="Permalink to "isGuiBlinking-演示例子""></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>
|
||||
<span class="line"><span style="color:#A6ACCD;">isGuiBlinking:true</span></span></code></pre></div>`,59);function m(g,A,y,C,q,D){const l=t("font");return p(),i("div",null,[d,s("div",h,[u,s("p",null,[a("可以用来告知玩家被锁定原因。"),k,a(" 能够通过转义字符 "),o(l,{color:"red"},{default:c(()=>[a("\\n")]),_:1}),a(" 实现文本换行。")])]),b])}const v=n(r,[["render",m]]);export{_ as __pageData,v as default};
|
1
assets/src_Unit_canbuild.md.4f4f1935.lean.js
Normal file
|
@ -0,0 +1 @@
|
|||
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("",64),h={class:"tip custom-block"},u=s("p",{class:"custom-block-title"},"TIP",-1),k=s("br",null,null,-1),b=e("",59);function m(g,A,y,C,q,D){const l=t("font");return p(),i("div",null,[d,s("div",h,[u,s("p",null,[a("可以用来告知玩家被锁定原因。"),k,a(" 能够通过转义字符 "),o(l,{color:"red"},{default:c(()=>[a("\\n")]),_:1}),a(" 实现文本换行。")])]),b])}const v=n(r,[["render",m]]);export{_ as __pageData,v as default};
|
119
assets/src_Unit_core.md.9eb125bd.js
Normal file
|
@ -0,0 +1,119 @@
|
|||
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-e-uDq" id="tab-XZcKgk9" checked="checked"><label for="tab-XZcKgk9">JDSALing</label><input type="radio" name="group-e-uDq" id="tab-U59wtpM"><label for="tab-U59wtpM">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>
|
||||
<span class="line"><span style="color:#FFCB6B;">那么它也将作为单位的显示名称。</span><span style="color:#A6ACCD;"> </span></span>
|
||||
<span class="line"></span>
|
||||
<span class="line"><span style="color:#FFCB6B;">具体描述文件位置(内部</span><span style="color:#A6ACCD;">):</span></span>
|
||||
<span class="line"><span style="color:#FFCB6B;">1.assets/translationsStrings_zh.properties</span></span>
|
||||
<span class="line"><span style="color:#FFCB6B;">格式:units.单位名称.name</span><span style="color:#A6ACCD;">=写单位显示的名称</span></span>
|
||||
<span class="line"><span style="color:#FFCB6B;">units.单位名称.description</span><span style="color:#A6ACCD;">= [[填单位显示的描述]]</span></span></code></pre></div><div class="language-bash"><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;">ini文件的单独定义(外部-推荐</span><span style="color:#A6ACCD;">):</span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;"> </span></span>
|
||||
<span class="line"><span style="color:#FFCB6B;">2.displayText:</span><span style="color:#A6ACCD;"> </span><span style="color:#C3E88D;">-单位的标题</span></span>
|
||||
<span class="line"><span style="color:#FFCB6B;">displayDescription:</span><span style="color:#A6ACCD;"> </span><span style="color:#C3E88D;">-单位的描述</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:#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><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-fB83f" id="tab-lQo786S" checked="checked"><label for="tab-lQo786S">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-J3IDl" id="tab-uIACUF_" checked="checked"><label for="tab-uIACUF_">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"},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>
|
||||
<span class="line"><span style="color:#676E95;font-style:italic;">## 下方可能有误差</span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;">buildSpeed:0.0006</span></span></code></pre></div><hr><h3 id="isbio" tabindex="-1">isBio <a class="header-anchor" href="#isbio" aria-label="Permalink to "isBio""></a></h3><h4 id="isbio-代码简介" tabindex="-1">isBio-代码简介 <a class="header-anchor" href="#isbio-代码简介" aria-label="Permalink to "isBio-代码简介""></a></h4><p>代码:isBio 中文释义:是生物 类型:布尔型 隶属于:通用代码组</p>`,13),k={class:"tip custom-block"},f=e("p",{class:"custom-block-title"},"TIP",-1),q=e("br",null,null,-1),v=e("br",null,null,-1),x=i(`<h4 id="isbio-演示例子" tabindex="-1">isBio-演示例子 <a class="header-anchor" href="#isbio-演示例子" aria-label="Permalink to "isBio-演示例子""></a></h4><div class="language-ini"><button title="Copy Code" class="copy"></button><span class="lang">ini</span><pre class="shiki material-theme-palenight"><code><span class="line"><span style="color:#89DDFF;">[core]</span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;">isBio:true</span></span></code></pre></div><hr><h3 id="isbug" tabindex="-1">isBug <a class="header-anchor" href="#isbug" aria-label="Permalink to "isBug""></a></h3><h4 id="isbug-代码简介" tabindex="-1">isBug-代码简介 <a class="header-anchor" href="#isbug-代码简介" aria-label="Permalink to "isBug-代码简介""></a></h4><p>代码:isBug 中文释义:是虫子 类型:布尔型 隶属于:通用代码组</p><div class="tip custom-block"><p class="custom-block-title">TIP</p><p>若设置成true,则会认定为虫子,用于沙盒中的单独分类。</p></div><h4 id="isbug-演示例子" tabindex="-1">isBug-演示例子 <a class="header-anchor" href="#isbug-演示例子" aria-label="Permalink to "isBug-演示例子""></a></h4><div class="language-ini"><button title="Copy Code" class="copy"></button><span class="lang">ini</span><pre class="shiki material-theme-palenight"><code><span class="line"><span style="color:#89DDFF;">[core]</span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;">isBug:true</span></span></code></pre></div><hr><h3 id="isbuilder" tabindex="-1">isBuilder <a class="header-anchor" href="#isbuilder" aria-label="Permalink to "isBuilder""></a></h3><h4 id="isbuilder-代码简介" tabindex="-1">isBuilder-代码简介 <a class="header-anchor" href="#isbuilder-代码简介" aria-label="Permalink to "isBuilder-代码简介""></a></h4><p>代码:isBuilder 中文释义:是建造者 类型:布尔型 隶属于:通用代码组</p><div class="tip custom-block"><p class="custom-block-title">TIP</p><p>若设置成true,则会需要此单位建造建筑物,则通常需要此代码。 并且默认设为[ai] useAsBuilder。</p></div><h4 id="isbuilder-演示例子" tabindex="-1">isBuilder-演示例子 <a class="header-anchor" href="#isbuilder-演示例子" aria-label="Permalink to "isBuilder-演示例子""></a></h4><div class="language-ini"><button title="Copy Code" class="copy"></button><span class="lang">ini</span><pre class="shiki material-theme-palenight"><code><span class="line"><span style="color:#89DDFF;">[core]</span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;">isBuilder:true</span></span></code></pre></div><hr><h3 id="streamingcost" tabindex="-1">streamingCost <a class="header-anchor" href="#streamingcost" aria-label="Permalink to "streamingCost""></a></h3><h4 id="streamingcost-代码简介" tabindex="-1">streamingCost-代码简介 <a class="header-anchor" href="#streamingcost-代码简介" aria-label="Permalink to "streamingCost-代码简介""></a></h4><p>代码:streamingCost 中文释义:流式资金 类型:整数型 隶属于:通用代码组</p><div class="tip custom-block"><p class="custom-block-title">TIP</p><p>和价格一样,但在建造时逐渐消耗资金,如果在构建过程中资源耗尽,<br> 建造或生产队列将暂停。就像是红警中那样。铁锈默认是预先扣除资金。<br> 若使用该代码,则玩家的每秒资金将会根据流式资金的算法进行扣减。</p></div><h4 id="streamingcost-演示例子" tabindex="-1">streamingCost-演示例子 <a class="header-anchor" href="#streamingcost-演示例子" aria-label="Permalink to "streamingCost-演示例子""></a></h4><div class="language-ini"><button title="Copy Code" class="copy"></button><span class="lang">ini</span><pre class="shiki material-theme-palenight"><code><span class="line"><span style="color:#89DDFF;">[core]</span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;">streamingCost:1145</span></span></code></pre></div><hr><h3 id="switchpricewithstreamingcost" tabindex="-1">switchPriceWithStreamingCost <a class="header-anchor" href="#switchpricewithstreamingcost" aria-label="Permalink to "switchPriceWithStreamingCost""></a></h3><h4 id="switchpricewithstreamingcost-代码简介" tabindex="-1">switchPriceWithStreamingCost-代码简介 <a class="header-anchor" href="#switchpricewithstreamingcost-代码简介" aria-label="Permalink to "switchPriceWithStreamingCost-代码简介""></a></h4><p>代码:switchPriceWithStreamingCost(S.P.S.C.)<br> 中文释义:流式资金模式全局切换 类型:布尔型 隶属于:通用代码组</p><div class="tip custom-block"><p class="custom-block-title">TIP</p><p>快捷设置为默认资金消耗方式或为流式建造方式。 建议使用模板快速将一个模组为所有单位切换流资源。 例如all-units.template.</p></div><h4 id="switchpricewithstreamingcost-演示例子" tabindex="-1">switchPriceWithStreamingCost-演示例子 <a class="header-anchor" href="#switchpricewithstreamingcost-演示例子" aria-label="Permalink to "switchPriceWithStreamingCost-演示例子""></a></h4><div class="language-ini,all-units.template"><button title="Copy Code" class="copy"></button><span class="lang">ini,all-units.template</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;">switchPriceWithStreamingCost:true</span></span></code></pre></div><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>非必须存在的代码,请根据情况自行使用</p></div><h3 id="selfregenrate" tabindex="-1">selfRegenRate <a class="header-anchor" href="#selfregenrate" aria-label="Permalink to "selfRegenRate""></a></h3><h4 id="selfregenrate-代码简介" tabindex="-1">selfRegenRate-代码简介 <a class="header-anchor" href="#selfregenrate-代码简介" aria-label="Permalink to "selfRegenRate-代码简介""></a></h4><p>代码:selfRegenRate 中文释义:生命恢复速度 类型:浮点型 隶属于:单位统计代码组</p><div class="tip custom-block"><p class="custom-block-title">TIP</p><p>此数值决定每帧增加血量。游戏内默认速度下,一秒为60逻辑帧,而你看到的FPS帧数为渲染帧,所以电脑上几百帧和手机上60帧和省电模式下30帧并不影响计算。所以不要写太大。可以写负值用于自毁。</p></div><h4 id="selfregenrate-演示例子" tabindex="-1">selfRegenRate-演示例子 <a class="header-anchor" href="#selfregenrate-演示例子" aria-label="Permalink to "selfRegenRate-演示例子""></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:500</span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;">selfRegenRate:0.5</span></span></code></pre></div><hr><h3 id="maxshield" tabindex="-1">maxShield <a class="header-anchor" href="#maxshield" aria-label="Permalink to "maxShield""></a></h3><h4 id="maxshield-代码简介" tabindex="-1">maxShield-代码简介 <a class="header-anchor" href="#maxshield-代码简介" aria-label="Permalink to "maxShield-代码简介""></a></h4><p>代码:maxShield 中文释义:护盾值 类型:整型 隶属于:单位统计代码组</p><div class="tip custom-block"><p class="custom-block-title">TIP</p><p>单位最大护盾值,默认生成时即为此值。如果设置了startShieldAtZero:true,则初始为0.</p></div><h4 id="maxshield-演示例子" tabindex="-1">maxShield-演示例子 <a class="header-anchor" href="#maxshield-演示例子" aria-label="Permalink to "maxShield-演示例子""></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;">maxShield:3000</span></span></code></pre></div><hr><h3 id="startshieldatzero" tabindex="-1">startShieldAtZero <a class="header-anchor" href="#startshieldatzero" aria-label="Permalink to "startShieldAtZero""></a></h3><h4 id="startshieldatzero-代码简介" tabindex="-1">startShieldAtZero-代码简介 <a class="header-anchor" href="#startshieldatzero-代码简介" aria-label="Permalink to "startShieldAtZero-代码简介""></a></h4><p>代码:startShieldAtZero 中文释义:护盾初始值为0 类型:布尔型 隶属于:单位统计代码组</p><div class="tip custom-block"><p class="custom-block-title">TIP</p><p>如果为true,则单位护盾值从0开始增加。</p></div><h4 id="startshieldatzero-演示例子" tabindex="-1">startShieldAtZero-演示例子 <a class="header-anchor" href="#startshieldatzero-演示例子" aria-label="Permalink to "startShieldAtZero-演示例子""></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;">maxShield:3000</span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;">startShieldAtZero:true</span></span></code></pre></div><hr><h3 id="shieldregen" tabindex="-1">shieldRegen <a class="header-anchor" href="#shieldregen" aria-label="Permalink to "shieldRegen""></a></h3><h4 id="shieldregen-代码简介" tabindex="-1">shieldRegen-代码简介 <a class="header-anchor" href="#shieldregen-代码简介" aria-label="Permalink to "shieldRegen-代码简介""></a></h4><p>代码:shieldRegen 中文释义:护盾恢复速度 类型:浮点型 隶属于:单位统计代码组</p><div class="tip custom-block"><p class="custom-block-title">TIP</p><p>此数值决定每帧增加护盾值,游戏内一秒为60帧,所以不要写太大。可以写负值。</p></div><h4 id="shieldregen-演示例子" tabindex="-1">shieldRegen-演示例子 <a class="header-anchor" href="#shieldregen-演示例子" aria-label="Permalink to "shieldRegen-演示例子""></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;">maxShield:3000</span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;">shieldRegen:0.5</span></span></code></pre></div><hr><h3 id="energymax" tabindex="-1">energyMax <a class="header-anchor" href="#energymax" aria-label="Permalink to "energyMax""></a></h3><h4 id="energymax-代码简介" tabindex="-1">energyMax-代码简介 <a class="header-anchor" href="#energymax-代码简介" aria-label="Permalink to "energyMax-代码简介""></a></h4><p>代码:energyMax 中文释义:能量值 类型:浮点型 隶属于:单位统计代码组</p><div class="tip custom-block"><p class="custom-block-title">TIP</p><p>默认值为0。可以用作炮塔,激光防御和行动的弹药的能量。</p></div><h4 id="energymax-演示例子" tabindex="-1">energyMax-演示例子 <a class="header-anchor" href="#energymax-演示例子" aria-label="Permalink to "energyMax-演示例子""></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;">energyMax:5</span></span></code></pre></div><hr><h3 id="energyregen" tabindex="-1">energyRegen <a class="header-anchor" href="#energyregen" aria-label="Permalink to "energyRegen""></a></h3><h4 id="energyregen-代码简介" tabindex="-1">energyRegen-代码简介 <a class="header-anchor" href="#energyregen-代码简介" aria-label="Permalink to "energyRegen-代码简介""></a></h4><p>代码:energyRegen 中文释义:能量恢复速度 类型:浮点型 隶属于:单位统计代码组</p><div class="tip custom-block"><p class="custom-block-title">TIP</p><p>能量每帧恢复速度,游戏内一秒为60帧,所以不要写太大。可以写负值。</p></div><h4 id="energyregen-演示例子" tabindex="-1">energyRegen-演示例子 <a class="header-anchor" href="#energyregen-演示例子" aria-label="Permalink to "energyRegen-演示例子""></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;">energyRegen:0.4</span></span></code></pre></div><hr><h3 id="energyregenwhenrecharging" tabindex="-1">energyRegenWhenRecharging <a class="header-anchor" href="#energyregenwhenrecharging" aria-label="Permalink to "energyRegenWhenRecharging""></a></h3><h4 id="energyregenwhenrecharging-代码简介" tabindex="-1">energyRegenWhenRecharging-代码简介 <a class="header-anchor" href="#energyregenwhenrecharging-代码简介" aria-label="Permalink to "energyRegenWhenRecharging-代码简介""></a></h4><p>代码:energyRegenWhenRecharging 中文释义:充能时能量恢复速度 类型:浮点型 隶属于:单位统计代码组</p>`,77),D={class:"tip custom-block"},A=e("p",{class:"custom-block-title"},"TIP",-1),P=i(`<h4 id="energyregenwhenrecharging-演示例子" tabindex="-1">energyRegenWhenRecharging-演示例子 <a class="header-anchor" href="#energyregenwhenrecharging-演示例子" aria-label="Permalink to "energyRegenWhenRecharging-演示例子""></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;">energyMax:1</span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;">energyRegenWhenRecharging:0.4</span></span></code></pre></div><hr><h3 id="energyneedstorechargetofull" tabindex="-1">energyNeedsToRechargeToFull <a class="header-anchor" href="#energyneedstorechargetofull" aria-label="Permalink to "energyNeedsToRechargeToFull""></a></h3><h4 id="energyneedstorechargetofull-代码简介" tabindex="-1">energyNeedsToRechargeToFull-代码简介 <a class="header-anchor" href="#energyneedstorechargetofull-代码简介" aria-label="Permalink to "energyNeedsToRechargeToFull-代码简介""></a></h4><p>代码:energyNeedsToRechargeToFull 中文释义:能量需要充满 类型:布尔型 隶属于:单位统计代码组</p><div class="tip custom-block"><p class="custom-block-title">TIP</p><p>如果能量耗尽,则需要完全充能才能进行攻击。</p></div><h4 id="energyneedstorechargetofull-演示例子" tabindex="-1">energyNeedsToRechargeToFull-演示例子 <a class="header-anchor" href="#energyneedstorechargetofull-演示例子" aria-label="Permalink to "energyNeedsToRechargeToFull-演示例子""></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;">energyMax:4</span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;">energyNeedsToRechargeToFull:true</span></span></code></pre></div><hr><h3 id="armour" tabindex="-1">armour <a class="header-anchor" href="#armour" aria-label="Permalink to "armour""></a></h3><h4 id="armour-代码简介" tabindex="-1">armour-代码简介 <a class="header-anchor" href="#armour-代码简介" aria-label="Permalink to "armour-代码简介""></a></h4><p>代码:armour 中文释义:装甲 类型:整型 隶属于:单位统计代码组</p><div class="tip custom-block"><p class="custom-block-title">TIP</p><p>抵消敌方攻击所造成的伤害。</p></div><h4 id="armour-演示例子" tabindex="-1">armour-演示例子 <a class="header-anchor" href="#armour-演示例子" aria-label="Permalink to "armour-演示例子""></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;">armour:40</span></span>
|
||||
<span class="line"><span style="color:#676E95;font-style:italic;">#如果受到40以上的常规攻击,则进行抵消,反之返回1伤害点。</span></span>
|
||||
<span class="line"><span style="color:#676E95;font-style:italic;">#例如45伤害,40护甲,那么将获得5点伤害。</span></span></code></pre></div><hr><h3 id="armourmindamagetokeep" tabindex="-1">armourMinDamageToKeep <a class="header-anchor" href="#armourmindamagetokeep" aria-label="Permalink to "armourMinDamageToKeep""></a></h3><h4 id="armourmindamagetokeep-代码简介" tabindex="-1">armourMinDamageToKeep-代码简介 <a class="header-anchor" href="#armourmindamagetokeep-代码简介" aria-label="Permalink to "armourMinDamageToKeep-代码简介""></a></h4><p>代码:armourMinDamageToKeep 中文释义:装甲最低伤害 类型:整型 隶属于:单位统计代码组</p><div class="tip custom-block"><p class="custom-block-title">TIP</p><p>至少造成多少点伤害,默认为1.防止护甲太高完全打不动。</p></div><h4 id="armourmindamagetokeep-演示例子" tabindex="-1">armourMinDamageToKeep-演示例子 <a class="header-anchor" href="#armourmindamagetokeep-演示例子" aria-label="Permalink to "armourMinDamageToKeep-演示例子""></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;">armour:40</span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;">armourMinDamageToKeep:2</span></span>
|
||||
<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-2yvIb" id="tab-iB97klY" checked="checked"><label for="tab-iB97klY">考考你</label><input type="radio" name="group-2yvIb" id="tab-6ns0Ecz"><label for="tab-6ns0Ecz">显示答案</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>
|
||||
<span class="line"><span style="color:#89DDFF;">(</span><span style="color:#FFCB6B;">无能量时死亡</span><span style="color:#89DDFF;">|</span><span style="color:#FFCB6B;">如果能量值为零,该单位死亡</span><span style="color:#89DDFF;">)</span></span></code></pre></div><div class="language-bash"><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:#676E95;font-style:italic;">#参考答案为:</span></span>
|
||||
<span class="line"><span style="color:#89DDFF;">[</span><span style="color:#A6ACCD;">core</span><span style="color:#89DDFF;">]</span></span>
|
||||
<span class="line"><span style="color:#FFCB6B;">borrowResourcesWhileAlive:5000</span></span>
|
||||
<span class="line"><span style="color:#FFCB6B;">energyMax:1</span></span>
|
||||
<span class="line"><span style="color:#FFCB6B;">energyRegen:-0.4</span></span>
|
||||
<span class="line"><span style="color:#FFCB6B;">dieOnZeroEnergy:true</span></span>
|
||||
<span class="line"><span style="color:#676E95;font-style:italic;">#原理是通过能量为0单位死亡并通过这个代码还钱,</span></span>
|
||||
<span class="line"><span style="color:#FFCB6B;">是很简陋的贷款思路,当然,在后续会有更加高级的思路。</span></span></code></pre></div></div></div><hr><h3 id="generation-resources" tabindex="-1">generation_resources <a class="header-anchor" href="#generation-resources" aria-label="Permalink to "generation_resources""></a></h3><h4 id="generation-resources-代码简介" tabindex="-1">generation_resources-代码简介 <a class="header-anchor" href="#generation-resources-代码简介" aria-label="Permalink to "generation_resources-代码简介""></a></h4><p>代码:generation_resources 中文释义:资源获取 类型:Price型 隶属于:单位统计代码组</p><div class="tip custom-block"><p class="custom-block-title">TIP</p><p>单位定时获得的资源,可自定义资源。</p></div><h4 id="generation-resources-演示例子" tabindex="-1">generation_resources-演示例子 <a class="header-anchor" href="#generation-resources-演示例子" aria-label="Permalink to "generation_resources-演示例子""></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;">generation_resources:10</span></span>
|
||||
<span class="line"><span style="color:#676E95;font-style:italic;">#or</span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;">generation_resources:</span><span style="color:#F07178;">credits</span><span style="color:#89DDFF;">=</span><span style="color:#A6ACCD;">10</span></span>
|
||||
<span class="line"><span style="color:#676E95;font-style:italic;">#常规产出10credits/1s游戏资金</span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;">-----------我是分界线----------</span></span>
|
||||
<span class="line"><span style="color:#676E95;font-style:italic;">#自定义资源写法</span></span>
|
||||
<span class="line"><span style="color:#89DDFF;">[core]</span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;">generation_resources:金属=5</span></span></code></pre></div><hr><h3 id="generation-active" tabindex="-1">generation_active <a class="header-anchor" href="#generation-active" aria-label="Permalink to "generation_active""></a></h3><h4 id="generation-active-代码简介" tabindex="-1">generation_active-代码简介 <a class="header-anchor" href="#generation-active-代码简介" aria-label="Permalink to "generation_active-代码简介""></a></h4><p>代码:generation_active 中文释义:资源获取条件 类型:逻辑布尔型 隶属于:单位统计代码组</p><div class="tip custom-block"><p class="custom-block-title">TIP</p><p>获取资源条件。可用于受损时无法产出。</p></div><h4 id="generation-active-演示例子" tabindex="-1">generation_active-演示例子 <a class="header-anchor" href="#generation-active-演示例子" aria-label="Permalink to "generation_active-演示例子""></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:#676E95;font-style:italic;">#1.14写法</span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;">generation_resources:金属=5</span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;">generation_active: if not self.hp(</span><span style="color:#F07178;">lessThan</span><span style="color:#89DDFF;">=</span><span style="color:#A6ACCD;">100)</span></span>
|
||||
<span class="line"><span style="color:#676E95;font-style:italic;">#1.15写法</span></span>
|
||||
<span class="line"><span style="color:#89DDFF;">[core]</span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;">generation_resources:金属=5</span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;">generation_active: if not self.hp<100</span></span>
|
||||
<span class="line"><span style="color:#676E95;font-style:italic;">#效果:单位低于1000血量可以产出资源</span></span></code></pre></div><hr><h3 id="generation-credits" tabindex="-1">generation_credits <a class="header-anchor" href="#generation-credits" aria-label="Permalink to "generation_credits""></a></h3><h4 id="generation-credits-代码简介" tabindex="-1">generation_credits-代码简介 <a class="header-anchor" href="#generation-credits-代码简介" aria-label="Permalink to "generation_credits-代码简介""></a></h4><p>代码:generation_credits 中文释义:资金获取 类型:整型 隶属于:单位统计代码组</p><div class="tip custom-block"><p class="custom-block-title">TIP</p><p>生成资源,仅用于默认的资金,也就是铁锈默认的金钱。</p></div><h4 id="generation-credits-演示例子" tabindex="-1">generation_credits-演示例子 <a class="header-anchor" href="#generation-credits-演示例子" aria-label="Permalink to "generation_credits-演示例子""></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:#F07178;">generation_credits</span><span style="color:#89DDFF;">=</span><span style="color:#A6ACCD;">5</span></span></code></pre></div><h3 id="generation-delay" tabindex="-1">generation_delay <a class="header-anchor" href="#generation-delay" aria-label="Permalink to "generation_delay""></a></h3><div class="danger custom-block"><p class="custom-block-title">DANGER</p><p>此代码为老旧代码,作者Luke不推荐使用。</p></div><div class="warning custom-block"><p class="custom-block-title">WARNING</p><p>警告:请勿使用40以外的数值,否则会有视觉Bug。 例如使用30,资金生成3,实际就为6,但是一旦这类单位多了,游戏的资金显示会出问题。</p></div><hr><h4 id="generation-delay-代码简介" tabindex="-1">generation_delay-代码简介 <a class="header-anchor" href="#generation-delay-代码简介" aria-label="Permalink to "generation_delay-代码简介""></a></h4><p>代码:generation_delay 中文释义:资金获取时间 类型:整型 隶属于:单位统计代码组</p><div class="tip custom-block"><p class="custom-block-title">TIP</p><p>多久帧添加添加一次资源(generation_credits指定数值)。 默认值为40,一秒为60帧。</p></div><h4 id="generation-delay-演示例子" tabindex="-1">generation_delay-演示例子 <a class="header-anchor" href="#generation-delay-演示例子" aria-label="Permalink to "generation_delay-演示例子""></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:#F07178;">generation_delay</span><span style="color:#89DDFF;">=</span><span style="color:#A6ACCD;">40</span></span></code></pre></div><h2 id="第三类-ui和图形代码" tabindex="-1">第三类-UI和图形代码 <a class="header-anchor" href="#第三类-ui和图形代码" aria-label="Permalink to "第三类-UI和图形代码""></a></h2><h3 id="showineditor" tabindex="-1">showInEditor <a class="header-anchor" href="#showineditor" aria-label="Permalink to "showInEditor""></a></h3><h4 id="showineditor-代码简介" tabindex="-1">showInEditor-代码简介 <a class="header-anchor" href="#showineditor-代码简介" aria-label="Permalink to "showInEditor-代码简介""></a></h4><p>代码:showInEditor 中文释义:沙盒中可见 类型:布尔型 隶属于:UI和图形代码组</p><div class="tip custom-block"><p class="custom-block-title">TIP</p><p>设置为false可在沙盒编辑器中隐藏单位。(默认为true)</p></div><h4 id="showineditor-演示例子" tabindex="-1">showInEditor-演示例子 <a class="header-anchor" href="#showineditor-演示例子" aria-label="Permalink to "showInEditor-演示例子""></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;">showInEditor:false</span></span></code></pre></div><h3 id="displaytext-lang" tabindex="-1">displayText_LANG <a class="header-anchor" href="#displaytext-lang" aria-label="Permalink to "displayText_LANG""></a></h3><h4 id="displaytext-lang-代码简介" tabindex="-1">displayText_{LANG}-代码简介 <a class="header-anchor" href="#displaytext-lang-代码简介" aria-label="Permalink to "displayText_{LANG}-代码简介""></a></h4><p>代码:displayText_{LANG} 中文释义:界面显示文本多语言 类型:字符型 隶属于:UI和图形代码组</p><div class="tip custom-block"><p class="custom-block-title">TIP</p><p>为单位名称添加多语言支持。此方法并不方便,不如设置游戏内部语言文件,建议催Luke改。有关常见语言代码,请参考下表</p></div><table><thead><tr><th style="text-align:center;">语言代码</th><th style="text-align:center;">所属国家/地区</th><th style="text-align:center;">语言代码</th><th style="text-align:center;">所属国家/地区</th></tr></thead><tbody><tr><td style="text-align:center;">zh</td><td style="text-align:center;">(中文通用)</td><td style="text-align:center;">en(可忽略)</td><td style="text-align:center;">(英语通用)</td></tr><tr><td style="text-align:center;">zh-cn</td><td style="text-align:center;">(简体)</td><td style="text-align:center;">ru</td><td style="text-align:center;">(俄语)</td></tr><tr><td style="text-align:center;">zh-tw</td><td style="text-align:center;">(台湾)</td><td style="text-align:center;">ja</td><td style="text-align:center;">(日语)</td></tr><tr><td style="text-align:center;">zh-hk</td><td style="text-align:center;">中文(香港)</td><td style="text-align:center;">es-ES</td><td style="text-align:center;">(西班牙)</td></tr><tr><td style="text-align:center;">de</td><td style="text-align:center;">(德语)</td><td style="text-align:center;">fr-FR</td><td style="text-align:center;">法语(法国)</td></tr></tbody></table><div class="warning custom-block"><p class="custom-block-title">WARNING</p><p>其它自查(此列表并不全),不过你应该不会闲着支持这么多语言。另外英文的语言代码<code>en</code>可以忽略,因为英文在软件里为默认语言,故而无需加<code>en</code>,当然加了也没事。</p></div><p>如果你不想进行多语言化,你应该直接<code>displayText:坦克</code>,而不是<code>displayText_zh:坦克</code>,如果你写了<code>displayText_zh:坦克</code>,<br>你必须再声明一个<code>displayText:Tank</code>,否则,游戏会找不到<code>默认语言缺省值</code>,将会导致<code>mod报错而无法运行</code>。所有可以使用多语言的都有这个检查,还请各位Modder留意。(若有特别的代码,将会在它里面特别提示)</p><h4 id="displaytext-lang-演示例子" tabindex="-1">displayText_{LANG}-演示例子 <a class="header-anchor" href="#displaytext-lang-演示例子" aria-label="Permalink to "displayText_{LANG}-演示例子""></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:#676E95;font-style:italic;">#English</span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;">displayText:Tank</span></span>
|
||||
<span class="line"><span style="color:#676E95;font-style:italic;">#Chinese</span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;">displayText_zh:坦克</span></span></code></pre></div><hr><h3 id="displaydescription-lang" tabindex="-1">displayDescription_LANG <a class="header-anchor" href="#displaydescription-lang" aria-label="Permalink to "displayDescription_LANG""></a></h3><h4 id="displaydescription-代码简介" tabindex="-1">displayDescription-代码简介 <a class="header-anchor" href="#displaydescription-代码简介" aria-label="Permalink to "displayDescription-代码简介""></a></h4><p>代码:displayDescription_{LANG} 中文释义:界面显示描述 类型:字符型 隶属于:UI和图形代码组</p><div class="tip custom-block"><p class="custom-block-title">TIP</p><p>单位显示给玩家的单位描述,可以使用多语言,具体使用方法参考在<code>displayText</code>的演示说明,这里不再过多讨论。</p></div><h4 id="displaydescription-演示例子" tabindex="-1">displayDescription-演示例子 <a class="header-anchor" href="#displaydescription-演示例子" aria-label="Permalink to "displayDescription-演示例子""></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;">displayText:坦克</span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;">displayDescription:只能对地,弱输出,只能在地上行走。</span></span></code></pre></div><hr><h3 id="displaylocalekey" tabindex="-1">displayLocaleKey <a class="header-anchor" href="#displaylocalekey" aria-label="Permalink to "displayLocaleKey""></a></h3><h4 id="displaylocalekey-代码简介" tabindex="-1">displayLocaleKey-代码简介 <a class="header-anchor" href="#displaylocalekey-代码简介" aria-label="Permalink to "displayLocaleKey-代码简介""></a></h4><p>代码:displayLocaleKey 中文释义:界面显示内部调用 类型:字符型 隶属于:UI和图形代码组</p><div class="tip custom-block"><p class="custom-block-title">TIP</p><p>调用内部语言文件的单位名称和说明的翻译文件。用处不大,通常是在<code>替换原版单位的同时直接调用它的原始描述</code>。该代码例子需要会拆包,如果你是初学者,该代码了解即可。</p></div><h4 id="displaylocalekey-演示例子" tabindex="-1">displayLocaleKey-演示例子 <a class="header-anchor" href="#displaylocalekey-演示例子" aria-label="Permalink to "displayLocaleKey-演示例子""></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;">displayLocaleKey: units.mechArtillery</span></span></code></pre></div><hr><h3 id="displayradius" tabindex="-1">displayRadius <a class="header-anchor" href="#displayradius" aria-label="Permalink to "displayRadius""></a></h3><h4 id="displayradius-代码简介" tabindex="-1">displayRadius-代码简介 <a class="header-anchor" href="#displayradius-代码简介" aria-label="Permalink to "displayRadius-代码简介""></a></h4><p>代码:displayRadius 中文释义:单位选择时显示圆圈 类型:整形 隶属于:UI和图形代码组</p><div class="tip custom-block"><p class="custom-block-title">TIP</p><p>修改选择单位时显示的绿色圆圈,不更改实际碰撞(radius)和可选择范围。</p></div><h4 id="displayradius-演示例子" tabindex="-1">displayRadius-演示例子 <a class="header-anchor" href="#displayradius-演示例子" aria-label="Permalink to "displayRadius-演示例子""></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;">displayRadius:25</span></span></code></pre></div><hr><h3 id="uitargetradius" tabindex="-1">uiTargetRadius <a class="header-anchor" href="#uitargetradius" aria-label="Permalink to "uiTargetRadius""></a></h3><h4 id="uitargetradius-代码简介" tabindex="-1">uiTargetRadius-代码简介 <a class="header-anchor" href="#uitargetradius-代码简介" aria-label="Permalink to "uiTargetRadius-代码简介""></a></h4><p>代码:uiTargetRadius 中文释义:为目标时半径 类型:整形 隶属于:UI和图形代码组</p><div class="tip custom-block"><p class="custom-block-title">TIP</p><p>默认为显示半径值。攻击/回收/等单位时使用的半径</p></div><h4 id="uitargetradius-演示例子" tabindex="-1">uiTargetRadius-演示例子 <a class="header-anchor" href="#uitargetradius-演示例子" aria-label="Permalink to "uiTargetRadius-演示例子""></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;">uiTargetRadius:25</span></span></code></pre></div><hr><h3 id="shieldrenderradius" tabindex="-1">shieldRenderRadius <a class="header-anchor" href="#shieldrenderradius" aria-label="Permalink to "shieldRenderRadius""></a></h3><h4 id="shieldrenderradius-代码简介" tabindex="-1">shieldRenderRadius-代码简介 <a class="header-anchor" href="#shieldrenderradius-代码简介" aria-label="Permalink to "shieldRenderRadius-代码简介""></a></h4><p>代码:shieldRenderRadius 中文释义:单位护盾显示半径 类型:整形 隶属于:UI和图形代码组</p><div class="tip custom-block"><p class="custom-block-title">TIP</p><p>护盾绘制半径,默认值比半径大一点。 可以设置在单位上显示更大或更小的护盾圈。</p></div><h4 id="shieldrenderradius-演示例子" tabindex="-1">shieldRenderRadius-演示例子 <a class="header-anchor" href="#shieldrenderradius-演示例子" aria-label="Permalink to "shieldRenderRadius-演示例子""></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;">shieldRenderRadius:20</span></span></code></pre></div><hr><h3 id="shielddisplayonlydeflection" tabindex="-1">shieldDisplayOnlyDeflection <a class="header-anchor" href="#shielddisplayonlydeflection" aria-label="Permalink to "shieldDisplayOnlyDeflection""></a></h3><h4 id="shielddisplayonlydeflection-代码简介" tabindex="-1">shieldDisplayOnlyDeflection-代码简介 <a class="header-anchor" href="#shielddisplayonlydeflection-代码简介" aria-label="Permalink to "shieldDisplayOnlyDeflection-代码简介""></a></h4><p>代码:shieldDisplayOnlyDeflection 中文释义:护盾只在受攻击时显示 类型:布尔型 隶属于:UI和图形代码组</p><div class="tip custom-block"><p class="custom-block-title">TIP</p><p>隐藏护盾,只在受到攻击时显示。</p></div><h4 id="shielddisplayonlydeflection-演示例子" tabindex="-1">shieldDisplayOnlyDeflection-演示例子 <a class="header-anchor" href="#shielddisplayonlydeflection-演示例子" aria-label="Permalink to "shieldDisplayOnlyDeflection-演示例子""></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;">shieldDisplayOnlyDeflection:true</span></span></code></pre></div><hr><h3 id="shielddeflectiondisplayrate" tabindex="-1">shieldDeflectionDisplayRate <a class="header-anchor" href="#shielddeflectiondisplayrate" aria-label="Permalink to "shieldDeflectionDisplayRate""></a></h3><h4 id="shielddeflectiondisplayrate-代码简介" tabindex="-1">shieldDeflectionDisplayRate-代码简介 <a class="header-anchor" href="#shielddeflectiondisplayrate-代码简介" aria-label="Permalink to "shieldDeflectionDisplayRate-代码简介""></a></h4><p>代码:shieldDeflectionDisplayRate 中文释义:护盾消失速度 类型:浮点型 隶属于:UI和图形代码组</p><div class="tip custom-block"><p class="custom-block-title">TIP</p><p>默认值为4。数值越大消失越快。</p></div><h4 id="shielddeflectiondisplayrate-演示例子" tabindex="-1">shieldDeflectionDisplayRate-演示例子 <a class="header-anchor" href="#shielddeflectiondisplayrate-演示例子" aria-label="Permalink to "shieldDeflectionDisplayRate-演示例子""></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;">shieldDeflectionDisplayRate:3</span></span></code></pre></div><hr><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>代码:showOnMinimap 中文释义:显示在小地图上 类型:布尔型 隶属于: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><hr><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><hr><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><h3 id="isbuilding" tabindex="-1">isBuilding <a class="header-anchor" href="#isbuilding" aria-label="Permalink to "isBuilding""></a></h3><h4 id="isbuilding-代码简介" tabindex="-1">isBuilding-代码简介 <a class="header-anchor" href="#isbuilding-代码简介" aria-label="Permalink to "isBuilding-代码简介""></a></h4><p>代码:isBuilding 中文释义:是建筑 类型:布尔型 隶属于:构建代码组</p><div class="tip custom-block"><p class="custom-block-title">TIP</p><p>定义单位是否为建筑物。为true时无论移动方式是什么都会强制为建筑。</p></div><h4 id="isbuilding-演示例子" tabindex="-1">isBuilding-演示例子 <a class="header-anchor" href="#isbuilding-演示例子" aria-label="Permalink to "isBuilding-演示例子""></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;">isBuilding:true</span></span></code></pre></div><hr><h3 id="footprint" tabindex="-1">footprint <a class="header-anchor" href="#footprint" aria-label="Permalink to "footprint""></a></h3><h4 id="footprint-代码简介" tabindex="-1">footprint-代码简介 <a class="header-anchor" href="#footprint-代码简介" aria-label="Permalink to "footprint-代码简介""></a></h4><p>代码:footprint 中文释义:建筑碰撞范围 类型:多整型 隶属于:构建代码组</p><div class="tip custom-block"><p class="custom-block-title">TIP</p><p>填四个数值(左,上,右,下),单位是格子,建筑默认占一格,向左和向上需要填负数,填整数在选择时有偏移。 四个数值可以完全颠倒,这样不会阻碍单位移动。决定建筑单位碰撞体积,此区域内单位不能通过,如果在单位运动途中单位则会绕过。单位实际可选择面积使用的是radius。</p></div><h4 id="footprint-演示例子" tabindex="-1">footprint-演示例子 <a class="header-anchor" href="#footprint-演示例子" aria-label="Permalink to "footprint-演示例子""></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:#676E95;font-style:italic;">##(1x1)</span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;">footprint: 0,0,0,0</span></span>
|
||||
<span class="line"><span style="color:#676E95;font-style:italic;">##(2X2)</span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;">footprint: 0,0,1,1</span></span>
|
||||
<span class="line"><span style="color:#676E95;font-style:italic;">##(3X3)</span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;">footprint: -1,-1,1,1</span></span></code></pre></div><hr><h3 id="constructionfootprint" tabindex="-1">constructionFootprint <a class="header-anchor" href="#constructionfootprint" aria-label="Permalink to "constructionFootprint""></a></h3><h4 id="constructionfootprint-代码简介" tabindex="-1">constructionFootprint-代码简介 <a class="header-anchor" href="#constructionfootprint-代码简介" aria-label="Permalink to "constructionFootprint-代码简介""></a></h4><p>代码:constructionFootprint 中文释义:建筑覆盖范围 类型:多整型 隶属于:构建代码组</p><div class="tip custom-block"><p class="custom-block-title">TIP</p><p>基础规则同上,这个区域内不能建造建筑,但是单位可以通过。<br> 一般需要设定比上一个面积大。<br> 好处是即使建造的密密麻麻,单位也有路可走。</p></div><h4 id="constructionfootprint-演示例子" tabindex="-1">constructionFootprint-演示例子 <a class="header-anchor" href="#constructionfootprint-演示例子" aria-label="Permalink to "constructionFootprint-演示例子""></a></h4><div class="language-ini"><button title="Copy Code" class="copy"></button><span class="lang">ini</span><pre class="shiki material-theme-palenight"><code><span class="line"><span style="color:#89DDFF;">[core]</span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;">constructionFootprint: -1,-1,1,3</span></span></code></pre></div><hr><h3 id="displayfootprint" tabindex="-1">displayFootprint <a class="header-anchor" href="#displayfootprint" aria-label="Permalink to "displayFootprint""></a></h3><h4 id="displayfootprint-代码简介" tabindex="-1">displayFootprint-代码简介 <a class="header-anchor" href="#displayfootprint-代码简介" aria-label="Permalink to "displayFootprint-代码简介""></a></h4><p>代码:displayFootprint 中文释义:建筑选择UI 类型:多整型 隶属于:构建代码组</p><div class="tip custom-block"><p class="custom-block-title">TIP</p><p>基础规则同上,用于选择单位时UI显示。不设定则默认为建筑覆盖区域。</p></div><h4 id="displayfootprint-演示例子" tabindex="-1">displayFootprint-演示例子 <a class="header-anchor" href="#displayfootprint-演示例子" aria-label="Permalink to "displayFootprint-演示例子""></a></h4><div class="language-ini"><button title="Copy Code" class="copy"></button><span class="lang">ini</span><pre class="shiki material-theme-palenight"><code><span class="line"><span style="color:#89DDFF;">[core]</span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;">displayFootprint: 0,0,1,1</span></span></code></pre></div><hr><h3 id="buildingselectionoffset" tabindex="-1">buildingSelectionOffset <a class="header-anchor" href="#buildingselectionoffset" aria-label="Permalink to "buildingSelectionOffset""></a></h3><h4 id="buildingselectionoffset-代码简介" tabindex="-1">buildingSelectionOffset-代码简介 <a class="header-anchor" href="#buildingselectionoffset-代码简介" aria-label="Permalink to "buildingSelectionOffset-代码简介""></a></h4><p>代码:buildingSelectionOffset 中文释义:建筑UI调整 类型:整型 隶属于:构建代码组</p><div class="tip custom-block"><p class="custom-block-title">TIP</p><p>基础规则同上,用于选择单位时UI显示。不设定则默认为建筑覆盖区域。</p></div><h4 id="buildingselectionoffset-演示例子" tabindex="-1">buildingSelectionOffset-演示例子 <a class="header-anchor" href="#buildingselectionoffset-演示例子" aria-label="Permalink to "buildingSelectionOffset-演示例子""></a></h4><div class="language-ini"><button title="Copy Code" class="copy"></button><span class="lang">ini</span><pre class="shiki material-theme-palenight"><code><span class="line"><span style="color:#89DDFF;">[core]</span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;">buildingSelectionOffset: 4</span></span></code></pre></div><hr>`,183);function F(_,T,R,w,B,I){const s=r("font");return c(),o("div",null,[d,e("p",null,[a("主要在"),n(s,{color:"orange"},{default:l(()=>[a("启用多个自定义Mod")]),_:1}),a("进行优先级定义"),h,a(" 以逗号分隔的名称列表。像"),n(s,{color:"orange"},{default:l(()=>[a("名称一样,但优先级较低")]),_:1}),a(",对于"),n(s,{color:"orange"},{default:l(()=>[a("启用多个自定义mod")]),_:1}),a("有用。")]),u,e("div",b,[g,e("p",null,[a("早期是用于在"),n(s,{color:"orange"},{default:l(()=>[a("builtFrom")]),_:1}),a("的代码,并结合科技等级使用。如果工厂的等级低于单位的目标科技等级,则会在工厂里面隐藏该单位。"),m,a("自铁锈1.09后出现"),n(s,{color:"orange"},{default:l(()=>[a("overrideAndReplace")]),_:1}),a("后,该方法则不建议使用。有关于新策略,请参考"),n(s,{color:"orange"},{default:l(()=>[a("overrideAndReplace")]),_:1}),a("代码文档指南。"),y,a(" 设置单位的科技等级,共有3个级别,1级GUI显示为绿色,2、3级显示为黄色。超过3报错。")])]),C,e("div",k,[f,e("p",null,[a("若设置成true,则会在单位死亡时产生血迹,"),q,a(" 图像在"),n(s,{color:"orange"},{default:l(()=>[a("drawable/blood_mark.png"),v,a("当hideScorchMark:true")]),_:1}),a("时可以隐藏非生物则为黑色爆炸效果。")])]),x,e("div",D,[A,e("p",null,[a("能量恢复是持续的,如果你设置了"),n(s,{color:"orange"},{default:l(()=>[a("energyNeedsToRechargeToFull")]),_:1}),a(", 那么攻击时按energyRegen恢复,耗尽时的灰条按此处设定值恢复。")])]),P])}const M=t(p,[["render",F]]);export{E as __pageData,M as default};
|
1
assets/src_Unit_core.md.9eb125bd.lean.js
Normal file
|
@ -0,0 +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"},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};
|
170
assets/src_Unit_graphics.md.6e56c4ad.js
Normal file
|
@ -0,0 +1,170 @@
|
|||
import{_ as a,c as e,o as s,V as n}from"./chunks/framework.fcc0bf38.js";const f=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"},t=n(`<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><h3 id="imagescale" tabindex="-1">imageScale <a class="header-anchor" href="#imagescale" aria-label="Permalink to "imageScale""></a></h3><h4 id="imagescale-代码简介" tabindex="-1">imageScale-代码简介 <a class="header-anchor" href="#imagescale-代码简介" aria-label="Permalink to "imageScale-代码简介""></a></h4><p>代码:imageScale 中文释义:图像缩放比例 类型:浮点数</p><h4 id="imagescale-用法" tabindex="-1">imageScale-用法 <a class="header-anchor" href="#imagescale-用法" aria-label="Permalink to "imageScale-用法""></a></h4><p>填写需要缩放的百分比,缩放单位主体图像的大小。</p><div class="tip custom-block"><p class="custom-block-title">TIP</p><p>效果基本与scaleImagesTo相同,但百分比更为直观。<br> 默认值为1,也就是100%。</p></div><h4 id="imagescale-示例" tabindex="-1">imageScale-示例 <a class="header-anchor" href="#imagescale-示例" aria-label="Permalink to "imageScale-示例""></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;">imageScale:12.5</span></span></code></pre></div><h3 id="drawlayer" tabindex="-1">drawLayer <a class="header-anchor" href="#drawlayer" aria-label="Permalink to "drawLayer""></a></h3><h4 id="drawlayer-代码简介" tabindex="-1">drawLayer-代码简介 <a class="header-anchor" href="#drawlayer-代码简介" aria-label="Permalink to "drawLayer-代码简介""></a></h4><p>代码:drawLayer 中文释义:绘制图层 类型:字符串</p><h4 id="drawlayer-用法" tabindex="-1">drawLayer-用法 <a class="header-anchor" href="#drawlayer-用法" aria-label="Permalink to "drawLayer-用法""></a></h4><p>填写希望图像所在的图层,以影响单位图像的绘制。</p><div class="tip custom-block"><p class="custom-block-title">TIP</p><p>官方给出了8种可填写的图层样式,具体可见示例。<br> 陆上单位默认图层便是ground或ground2,运输船这类便是ground2。</p></div><h4 id="drawlayer-示例" tabindex="-1">drawLayer-示例 <a class="header-anchor" href="#drawlayer-示例" aria-label="Permalink to "drawLayer-示例""></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;">drawLayer:ground</span></span>
|
||||
<span class="line"></span>
|
||||
<span class="line"><span style="color:#89DDFF;">[graphics]</span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;">drawLayer:ground2</span></span>
|
||||
<span class="line"></span>
|
||||
<span class="line"><span style="color:#89DDFF;">[graphics]</span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;">drawLayer:wreaks</span></span>
|
||||
<span class="line"></span>
|
||||
<span class="line"><span style="color:#89DDFF;">[graphics]</span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;">drawLayer:underwater</span></span>
|
||||
<span class="line"></span>
|
||||
<span class="line"><span style="color:#89DDFF;">[graphics]</span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;">drawLayer:bottom</span></span>
|
||||
<span class="line"></span>
|
||||
<span class="line"><span style="color:#89DDFF;">[graphics]</span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;">drawLayer:experimentals</span></span>
|
||||
<span class="line"></span>
|
||||
<span class="line"><span style="color:#89DDFF;">[graphics]</span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;">drawLayer:air</span></span>
|
||||
<span class="line"></span>
|
||||
<span class="line"><span style="color:#89DDFF;">[graphics]</span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;">drawLayer:top</span></span></code></pre></div><h3 id="whenbeingbuiltmaketransparenttill" tabindex="-1">whenBeingBuiltMakeTransparentTill <a class="header-anchor" href="#whenbeingbuiltmaketransparenttill" aria-label="Permalink to "whenBeingBuiltMakeTransparentTill""></a></h3><h4 id="whenbeingbuiltmaketransparenttill-代码简介" tabindex="-1">whenBeingBuiltMakeTransparentTill-代码简介 <a class="header-anchor" href="#whenbeingbuiltmaketransparenttill-代码简介" aria-label="Permalink to "whenBeingBuiltMakeTransparentTill-代码简介""></a></h4><p>代码:whenBeingBuiltMakeTransparentTill 中文释义:建造时透明度 类型:浮点数</p><h4 id="whenbeingbuiltmaketransparenttill-用法" tabindex="-1">whenBeingBuiltMakeTransparentTill-用法 <a class="header-anchor" href="#whenbeingbuiltmaketransparenttill-用法" aria-label="Permalink to "whenBeingBuiltMakeTransparentTill-用法""></a></h4><p>填写0-1之间的小数,以影响建造时的透明度情况。</p><div class="tip custom-block"><p class="custom-block-title">TIP</p><p>若设为0则表示透明度为0,建造一开始就不透明。<br> 设为1则将完全建造时才会不透明。<br> 所谓透明到不透明,也就是从虚影到实体的转变。</p></div><div class="info custom-block"><p class="custom-block-title">INFO</p><p>0-1可以理解为0%和100%,取超过100%的数字不会报错但也并没有什么意义。</p></div><h4 id="whenbeingbuiltmaketransparenttill-示例" tabindex="-1">whenBeingBuiltMakeTransparentTill-示例 <a class="header-anchor" href="#whenbeingbuiltmaketransparenttill-示例" aria-label="Permalink to "whenBeingBuiltMakeTransparentTill-示例""></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;">whenBeingBuiltMakeTransparentTill:0</span></span>
|
||||
<span class="line"></span>
|
||||
<span class="line"><span style="color:#89DDFF;">[graphics]</span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;">whenBeingBuiltMakeTransparentTill:0.5</span></span>
|
||||
<span class="line"></span>
|
||||
<span class="line"><span style="color:#89DDFF;">[graphics]</span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;">whenBeingBuiltMakeTransparentTill:1</span></span></code></pre></div><h3 id="icon-zoomed-out" tabindex="-1">icon_zoomed_out <a class="header-anchor" href="#icon-zoomed-out" aria-label="Permalink to "icon_zoomed_out""></a></h3><h4 id="icon-zoomed-out-代码简介" tabindex="-1">icon_zoomed_out-代码简介 <a class="header-anchor" href="#icon-zoomed-out-代码简介" aria-label="Permalink to "icon_zoomed_out-代码简介""></a></h4><p>代码:icon_zoomed_out 中文释义:缩放图标 类型:字符串</p><h4 id="icon-zoomed-out-用法" tabindex="-1">icon_zoomed_out-用法 <a class="header-anchor" href="#icon-zoomed-out-用法" aria-label="Permalink to "icon_zoomed_out-用法""></a></h4><p>填写缩放图标的文件路径,改变单位缩放时显示的图标。</p><div class="tip custom-block"><p class="custom-block-title">TIP</p><p>路径引用规则和文件格式与image相同。<br> 默认图标将根据运动类型或单位类型使用内置的图标。</p></div><div class="info custom-block"><p class="custom-block-title">INFO</p><p>绘制图标时请注意图标的大小。<br> 具体可以参考默认图标。<br> 资源文件在游戏根目录\\res\\drawable\\中,安卓安装包同理。</p></div><h4 id="icon-zoomed-out-示例" tabindex="-1">icon_zoomed_out-示例 <a class="header-anchor" href="#icon-zoomed-out-示例" aria-label="Permalink to "icon_zoomed_out-示例""></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;">icon_zoomed_out:mytubiao.png</span></span>
|
||||
<span class="line"></span>
|
||||
<span class="line"><span style="color:#89DDFF;">[graphics]</span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;">icon_zoomed_out:tank_icon.png</span></span></code></pre></div><h3 id="icon-zoomed-out-nevershow" tabindex="-1">icon_zoomed_out_neverShow <a class="header-anchor" href="#icon-zoomed-out-nevershow" aria-label="Permalink to "icon_zoomed_out_neverShow""></a></h3><h4 id="icon-zoomed-out-nevershow-代码简介" tabindex="-1">icon_zoomed_out_neverShow-代码简介 <a class="header-anchor" href="#icon-zoomed-out-nevershow-代码简介" aria-label="Permalink to "icon_zoomed_out_neverShow-代码简介""></a></h4><p>代码:icon_zoomed_out_neverShow 中文释义:缩放图标不显示 类型:布尔值</p><h4 id="icon-zoomed-out-nevershow-用法" tabindex="-1">icon_zoomed_out_neverShow-用法 <a class="header-anchor" href="#icon-zoomed-out-nevershow-用法" aria-label="Permalink to "icon_zoomed_out_neverShow-用法""></a></h4><p>填写布尔值决定缩放图标是否显示。</p><div class="info custom-block"><p class="custom-block-title">INFO</p><p>默认为false。</p></div><h4 id="icon-zoomed-out-nevershow-示例" tabindex="-1">icon_zoomed_out_neverShow-示例 <a class="header-anchor" href="#icon-zoomed-out-nevershow-示例" aria-label="Permalink to "icon_zoomed_out_neverShow-示例""></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;">icon_zoomed_out_neverShow:false</span></span>
|
||||
<span class="line"></span>
|
||||
<span class="line"><span style="color:#89DDFF;">[graphics]</span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;">icon_zoomed_out_neverShow:true</span></span></code></pre></div><h3 id="icon-zoomed-out-nevershow-1" tabindex="-1">icon_zoomed_out_neverShow <a class="header-anchor" href="#icon-zoomed-out-nevershow-1" aria-label="Permalink to "icon_zoomed_out_neverShow""></a></h3><h4 id="icon-zoomed-out-nevershow-代码简介-1" tabindex="-1">icon_zoomed_out_neverShow-代码简介 <a class="header-anchor" href="#icon-zoomed-out-nevershow-代码简介-1" aria-label="Permalink to "icon_zoomed_out_neverShow-代码简介""></a></h4><p>代码:icon_zoomed_out_neverShow 中文释义:缩放图标不显示 类型:布尔值</p><h4 id="icon-zoomed-out-nevershow-用法-1" tabindex="-1">icon_zoomed_out_neverShow-用法 <a class="header-anchor" href="#icon-zoomed-out-nevershow-用法-1" aria-label="Permalink to "icon_zoomed_out_neverShow-用法""></a></h4><p>填写布尔值决定缩放图标是否显示。</p><div class="info custom-block"><p class="custom-block-title">INFO</p><p>默认为false。</p></div><h4 id="icon-zoomed-out-nevershow-示例-1" tabindex="-1">icon_zoomed_out_neverShow-示例 <a class="header-anchor" href="#icon-zoomed-out-nevershow-示例-1" aria-label="Permalink to "icon_zoomed_out_neverShow-示例""></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;">icon_zoomed_out_neverShow:false</span></span>
|
||||
<span class="line"></span>
|
||||
<span class="line"><span style="color:#89DDFF;">[graphics]</span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;">icon_zoomed_out_neverShow:true</span></span></code></pre></div><h3 id="showselectionindicator" tabindex="-1">showSelectionIndicator <a class="header-anchor" href="#showselectionindicator" aria-label="Permalink to "showSelectionIndicator""></a></h3><h4 id="showselectionindicator-代码简介" tabindex="-1">showSelectionIndicator-代码简介 <a class="header-anchor" href="#showselectionindicator-代码简介" aria-label="Permalink to "showSelectionIndicator-代码简介""></a></h4><p>代码:showSelectionIndicator 中文释义:显示选择指示 类型:布尔值</p><h4 id="showselectionindicator-用法" tabindex="-1">showSelectionIndicator-用法 <a class="header-anchor" href="#showselectionindicator-用法" aria-label="Permalink to "showSelectionIndicator-用法""></a></h4><p>填写布尔值决定选择框是否显示。</p><div class="info custom-block"><p class="custom-block-title">INFO</p><p>默认为true。</p></div><h4 id="showselectionindicator-示例" tabindex="-1">showSelectionIndicator-示例 <a class="header-anchor" href="#showselectionindicator-示例" aria-label="Permalink to "showSelectionIndicator-示例""></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;">showSelectionIndicator:false</span></span>
|
||||
<span class="line"></span>
|
||||
<span class="line"><span style="color:#89DDFF;">[graphics]</span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;">showSelectionIndicator:true</span></span></code></pre></div><h3 id="image-offseth" tabindex="-1">image_offsetH <a class="header-anchor" href="#image-offseth" aria-label="Permalink to "image_offsetH""></a></h3><h4 id="image-offseth-代码简介" tabindex="-1">image_offsetH-代码简介 <a class="header-anchor" href="#image-offseth-代码简介" aria-label="Permalink to "image_offsetH-代码简介""></a></h4><p>代码:image_offsetH 中文释义:高度绘制偏移 类型:浮点数</p><h4 id="image-offseth-用法" tabindex="-1">image_offsetH-用法 <a class="header-anchor" href="#image-offseth-用法" aria-label="Permalink to "image_offsetH-用法""></a></h4><p>填写浮点数决定高度的偏移大小。</p><div class="info custom-block"><p class="custom-block-title">INFO</p><p>默认为true。</p></div><h4 id="image-offseth-示例" tabindex="-1">image_offsetH-示例 <a class="header-anchor" href="#image-offseth-示例" aria-label="Permalink to "image_offsetH-示例""></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_offsetH:1</span></span>
|
||||
<span class="line"></span>
|
||||
<span class="line"><span style="color:#89DDFF;">[graphics]</span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;">image_offsetH:1.2</span></span></code></pre></div><h3 id="image-turret" tabindex="-1">image_turret <a class="header-anchor" href="#image-turret" aria-label="Permalink to "image_turret""></a></h3><h4 id="image-turret-代码简介" tabindex="-1">image_turret-代码简介 <a class="header-anchor" href="#image-turret-代码简介" aria-label="Permalink to "image_turret-代码简介""></a></h4><p>代码:image_turret 中文释义:炮塔图像 类型:字符串</p><h4 id="image-turret-用法" tabindex="-1">image_turret-用法 <a class="header-anchor" href="#image-turret-用法" aria-label="Permalink to "image_turret-用法""></a></h4><p>填写图像路径,用于给炮塔设置图像文件,也可以在每个炮塔上单独设置。</p><div class="info custom-block"><p class="custom-block-title">INFO</p><p>设置的炮塔图像会默认应用于所有未设置图像的炮塔上。</p></div><h4 id="image-turret-示例" tabindex="-1">image_turret-示例 <a class="header-anchor" href="#image-turret-示例" aria-label="Permalink to "image_turret-示例""></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_turret: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_turret:\\124\\255\\image_shield.png </span><span style="color:#676E95;font-style:italic;"># 相对路径</span></span></code></pre></div><h3 id="turretimagescale" tabindex="-1">turretImageScale <a class="header-anchor" href="#turretimagescale" aria-label="Permalink to "turretImageScale""></a></h3><h4 id="turretimagescale-代码简介" tabindex="-1">turretImageScale-代码简介 <a class="header-anchor" href="#turretimagescale-代码简介" aria-label="Permalink to "turretImageScale-代码简介""></a></h4><p>代码:turretImageScale 中文释义:炮塔图像比例 类型:浮点数</p><h4 id="turretimagescale-用法" tabindex="-1">turretImageScale-用法 <a class="header-anchor" href="#turretimagescale-用法" aria-label="Permalink to "turretImageScale-用法""></a></h4><p>填写百分比以缩放图像,仅影响炮塔。</p><div class="info custom-block"><p class="custom-block-title">INFO</p><p>和imageScale用法一致。</p></div><h4 id="turretimagescale-示例" tabindex="-1">turretImageScale-示例 <a class="header-anchor" href="#turretimagescale-示例" aria-label="Permalink to "turretImageScale-示例""></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;">turretImageScale:0.1</span></span>
|
||||
<span class="line"></span>
|
||||
<span class="line"><span style="color:#89DDFF;">[graphics]</span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;">turretImageScale:2</span></span></code></pre></div><h3 id="scaleturretimagesto" tabindex="-1">scaleTurretImagesTo <a class="header-anchor" href="#scaleturretimagesto" aria-label="Permalink to "scaleTurretImagesTo""></a></h3><h4 id="scaleturretimagesto-代码简介" tabindex="-1">scaleTurretImagesTo-代码简介 <a class="header-anchor" href="#scaleturretimagesto-代码简介" aria-label="Permalink to "scaleTurretImagesTo-代码简介""></a></h4><p>代码:scaleTurretImagesTo 中文释义:将炮塔图像缩放到 类型:浮点数</p><h4 id="scaleturretimagesto-用法" tabindex="-1">scaleTurretImagesTo-用法 <a class="header-anchor" href="#scaleturretimagesto-用法" aria-label="Permalink to "scaleTurretImagesTo-用法""></a></h4><p>填写像素将炮塔图像大小缩放到指定像素。</p><div class="info custom-block"><p class="custom-block-title">INFO</p><p>仅用填写宽度。</p></div><h4 id="scaleturretimagesto-示例" tabindex="-1">scaleTurretImagesTo-示例 <a class="header-anchor" href="#scaleturretimagesto-示例" aria-label="Permalink to "scaleTurretImagesTo-示例""></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;">scaleTurretImagesTo:11.2</span></span>
|
||||
<span class="line"></span>
|
||||
<span class="line"><span style="color:#89DDFF;">[graphics]</span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;">scaleTurretImagesTo:33</span></span></code></pre></div><h3 id="teamcolorsonturret" tabindex="-1">teamColorsOnTurret <a class="header-anchor" href="#teamcolorsonturret" aria-label="Permalink to "teamColorsOnTurret""></a></h3><h4 id="teamcolorsonturret-代码简介" tabindex="-1">teamColorsOnTurret-代码简介 <a class="header-anchor" href="#teamcolorsonturret-代码简介" aria-label="Permalink to "teamColorsOnTurret-代码简介""></a></h4><p>代码:teamColorsOnTurret 中文释义:炮塔图像使用阵营色 类型:布尔值</p><h4 id="teamcolorsonturret-用法" tabindex="-1">teamColorsOnTurret-用法 <a class="header-anchor" href="#teamcolorsonturret-用法" aria-label="Permalink to "teamColorsOnTurret-用法""></a></h4><p>填写布尔值决定炮塔图像是否使用阵营色。</p><div class="info custom-block"><p class="custom-block-title">INFO</p><p>默认为false。</p></div><h4 id="teamcolorsonturret-示例" tabindex="-1">teamColorsOnTurret-示例 <a class="header-anchor" href="#teamcolorsonturret-示例" aria-label="Permalink to "teamColorsOnTurret-示例""></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;">teamColorsOnTurret:true </span></span>
|
||||
<span class="line"></span>
|
||||
<span class="line"><span style="color:#89DDFF;">[graphics]</span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;">teamColorsOnTurret:false</span></span></code></pre></div><h3 id="lock-body-rotation-with-main-turret" tabindex="-1">lock_body_rotation_with_main_turret <a class="header-anchor" href="#lock-body-rotation-with-main-turret" aria-label="Permalink to "lock_body_rotation_with_main_turret""></a></h3><h4 id="lock-body-rotation-with-main-turret-代码简介" tabindex="-1">lock_body_rotation_with_main_turret-代码简介 <a class="header-anchor" href="#lock-body-rotation-with-main-turret-代码简介" aria-label="Permalink to "lock_body_rotation_with_main_turret-代码简介""></a></h4><p>代码:lock_body_rotation_with_main_turret 中文释义:锁定主体旋转随主炮塔 类型:布尔值</p><h4 id="lock-body-rotation-with-main-turret-用法" tabindex="-1">lock_body_rotation_with_main_turret-用法 <a class="header-anchor" href="#lock-body-rotation-with-main-turret-用法" aria-label="Permalink to "lock_body_rotation_with_main_turret-用法""></a></h4><p>填写布尔值决定锁定主体图像是否旋转追随主炮塔图像。</p><h4 id="lock-body-rotation-with-main-turret-示例" tabindex="-1">lock_body_rotation_with_main_turret-示例 <a class="header-anchor" href="#lock-body-rotation-with-main-turret-示例" aria-label="Permalink to "lock_body_rotation_with_main_turret-示例""></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;">lock_body_rotation_with_main_turret:true </span></span>
|
||||
<span class="line"></span>
|
||||
<span class="line"><span style="color:#89DDFF;">[graphics]</span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;">lock_body_rotation_with_main_turret:false</span></span></code></pre></div><h3 id="lock-leg-rotation-with-main-turret" tabindex="-1">lock_leg_rotation_with_main_turret <a class="header-anchor" href="#lock-leg-rotation-with-main-turret" aria-label="Permalink to "lock_leg_rotation_with_main_turret""></a></h3><h4 id="lock-leg-rotation-with-main-turret-代码简介" tabindex="-1">lock_leg_rotation_with_main_turret-代码简介 <a class="header-anchor" href="#lock-leg-rotation-with-main-turret-代码简介" aria-label="Permalink to "lock_leg_rotation_with_main_turret-代码简介""></a></h4><p>代码:lock_leg_rotation_with_main_turret 中文释义:锁定腿脚旋转随主炮塔 类型:布尔值</p><h4 id="lock-leg-rotation-with-main-turret-用法" tabindex="-1">lock_leg_rotation_with_main_turret-用法 <a class="header-anchor" href="#lock-leg-rotation-with-main-turret-用法" aria-label="Permalink to "lock_leg_rotation_with_main_turret-用法""></a></h4><p>填写布尔值决定锁定腿脚图像是否旋转追随主炮塔图像。</p><h4 id="lock-leg-rotation-with-main-turret-示例" tabindex="-1">lock_leg_rotation_with_main_turret-示例 <a class="header-anchor" href="#lock-leg-rotation-with-main-turret-示例" aria-label="Permalink to "lock_leg_rotation_with_main_turret-示例""></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;">lock_leg_rotation_with_main_turret:true </span></span>
|
||||
<span class="line"></span>
|
||||
<span class="line"><span style="color:#89DDFF;">[graphics]</span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;">lock_leg_rotation_with_main_turret:false</span></span></code></pre></div><h3 id="image-shadow" tabindex="-1">image_shadow <a class="header-anchor" href="#image-shadow" aria-label="Permalink to "image_shadow""></a></h3><h4 id="image-shadow-代码简介" tabindex="-1">image_shadow-代码简介 <a class="header-anchor" href="#image-shadow-代码简介" aria-label="Permalink to "image_shadow-代码简介""></a></h4><p>代码:image_shadow 中文释义:阴影图像 类型:字符串</p><h4 id="image-shadow-用法" tabindex="-1">image_shadow-用法 <a class="header-anchor" href="#image-shadow-用法" aria-label="Permalink to "image_shadow-用法""></a></h4><p>填写填NONE或AUTO,或图像文件的路径,决定该单位使用哪种阴影图像。</p><h4 id="image-shadow-示例" tabindex="-1">image_shadow-示例 <a class="header-anchor" href="#image-shadow-示例" aria-label="Permalink to "image_shadow-示例""></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_shadow:NONE </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_shadow:AUTO </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_shadow:./shadow/shadowA.png </span><span style="color:#676E95;font-style:italic;">#使用自定义的阴影图像</span></span></code></pre></div><h3 id="shadowoffsetx" tabindex="-1">shadowOffsetX <a class="header-anchor" href="#shadowoffsetx" aria-label="Permalink to "shadowOffsetX""></a></h3><h4 id="shadowoffsetx-代码简介" tabindex="-1">shadowOffsetX-代码简介 <a class="header-anchor" href="#shadowoffsetx-代码简介" aria-label="Permalink to "shadowOffsetX-代码简介""></a></h4><p>代码:shadowOffsetX 中文释义:阴影图像偏移X轴 类型:浮点数</p><h4 id="shadowoffsetx-用法" tabindex="-1">shadowOffsetX-用法 <a class="header-anchor" href="#shadowoffsetx-用法" aria-label="Permalink to "shadowOffsetX-用法""></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="shadowoffsetx-示例" tabindex="-1">shadowOffsetX-示例 <a class="header-anchor" href="#shadowoffsetx-示例" aria-label="Permalink to "shadowOffsetX-示例""></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;">shadowOffsetX:14</span></span>
|
||||
<span class="line"></span>
|
||||
<span class="line"><span style="color:#89DDFF;">[graphics]</span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;">shadowOffsetX:-14.5</span></span></code></pre></div><h3 id="shadowoffsety" tabindex="-1">shadowOffsetY <a class="header-anchor" href="#shadowoffsety" aria-label="Permalink to "shadowOffsetY""></a></h3><h4 id="shadowoffsety-代码简介" tabindex="-1">shadowOffsetY-代码简介 <a class="header-anchor" href="#shadowoffsety-代码简介" aria-label="Permalink to "shadowOffsetY-代码简介""></a></h4><p>代码:shadowOffsetY 中文释义:阴影图像偏移Y轴 类型:浮点数</p><h4 id="shadowoffsety-用法" tabindex="-1">shadowOffsetY-用法 <a class="header-anchor" href="#shadowoffsety-用法" aria-label="Permalink to "shadowOffsetY-用法""></a></h4><p>作用于阴影图像,填写的数值会作为偏移的像素大小,可以为负。</p><div class="tip custom-block"><p class="custom-block-title">TIP</p><p>偏移的方向依据Y的数值而定。<br> Y轴以阴影图像中心点为坐标,Y增大则图像向右偏移。</p></div><h4 id="shadowoffsety-示例" tabindex="-1">shadowOffsetY-示例 <a class="header-anchor" href="#shadowoffsety-示例" aria-label="Permalink to "shadowOffsetY-示例""></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;">shadowOffsetY:14</span></span>
|
||||
<span class="line"></span>
|
||||
<span class="line"><span style="color:#89DDFF;">[graphics]</span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;">shadowOffsetY:-14.5</span></span></code></pre></div><h3 id="image-shadow-frames" tabindex="-1">image_shadow_frames <a class="header-anchor" href="#image-shadow-frames" aria-label="Permalink to "image_shadow_frames""></a></h3><h4 id="image-shadow-frames-代码简介" tabindex="-1">image_shadow_frames-代码简介 <a class="header-anchor" href="#image-shadow-frames-代码简介" aria-label="Permalink to "image_shadow_frames-代码简介""></a></h4><p>代码:image_shadow_frames 中文释义:阴影图像指定 类型:布尔值</p><h4 id="image-shadow-frames-用法" tabindex="-1">image_shadow_frames-用法 <a class="header-anchor" href="#image-shadow-frames-用法" aria-label="Permalink to "image_shadow_frames-用法""></a></h4><p>填写布尔值,决定阴影是否随单位移动而改变方向。</p><div class="info custom-block"><p class="custom-block-title">INFO</p><p>填写为true则不改变。</p></div><h4 id="image-shadow-frames-示例" tabindex="-1">image_shadow_frames-示例 <a class="header-anchor" href="#image-shadow-frames-示例" aria-label="Permalink to "image_shadow_frames-示例""></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_shadow_frames:true</span></span>
|
||||
<span class="line"></span>
|
||||
<span class="line"><span style="color:#89DDFF;">[graphics]</span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;">image_shadow_frames:false</span></span></code></pre></div><h3 id="lock-shadow-rotation-with-main-turret" tabindex="-1">lock_shadow_rotation_with_main_turret <a class="header-anchor" href="#lock-shadow-rotation-with-main-turret" aria-label="Permalink to "lock_shadow_rotation_with_main_turret""></a></h3><h4 id="lock-shadow-rotation-with-main-turret-代码简介" tabindex="-1">lock_shadow_rotation_with_main_turret-代码简介 <a class="header-anchor" href="#lock-shadow-rotation-with-main-turret-代码简介" aria-label="Permalink to "lock_shadow_rotation_with_main_turret-代码简介""></a></h4><p>代码:lock_shadow_rotation_with_main_turret 中文释义:阴影锁定为主炮塔方向 类型:布尔值</p><h4 id="lock-shadow-rotation-with-main-turret-用法" tabindex="-1">lock_shadow_rotation_with_main_turret-用法 <a class="header-anchor" href="#lock-shadow-rotation-with-main-turret-用法" aria-label="Permalink to "lock_shadow_rotation_with_main_turret-用法""></a></h4><p>填写布尔值,决定是否将身体图像阴影锁定到主炮塔的方向。</p><div class="info custom-block"><p class="custom-block-title">INFO</p><p>填写为true则锁定。</p></div><h4 id="lock-shadow-rotation-with-main-turret-示例" tabindex="-1">lock_shadow_rotation_with_main_turret-示例 <a class="header-anchor" href="#lock-shadow-rotation-with-main-turret-示例" aria-label="Permalink to "lock_shadow_rotation_with_main_turret-示例""></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;">lock_shadow_rotation_with_main_turret:true</span></span>
|
||||
<span class="line"></span>
|
||||
<span class="line"><span style="color:#89DDFF;">[graphics]</span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;">lock_shadow_rotation_with_main_turret:false</span></span></code></pre></div><h3 id="total-frames" tabindex="-1">total_frames <a class="header-anchor" href="#total-frames" aria-label="Permalink to "total_frames""></a></h3><h4 id="total-frames-代码简介" tabindex="-1">total_frames-代码简介 <a class="header-anchor" href="#total-frames-代码简介" aria-label="Permalink to "total_frames-代码简介""></a></h4><p>代码:total_frames 中文释义:图像帧数 类型:正整数</p><h4 id="total-frames-用法" tabindex="-1">total_frames-用法 <a class="header-anchor" href="#total-frames-用法" aria-label="Permalink to "total_frames-用法""></a></h4><p>填写数字,将图像分割为指定份数,用于动画。</p><div class="info custom-block"><p class="custom-block-title">INFO</p><p>默认值为1,第一帧编号为0。</p></div><h4 id="total-frames-示例" tabindex="-1">total_frames-示例 <a class="header-anchor" href="#total-frames-示例" aria-label="Permalink to "total_frames-示例""></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;">total_frames:5</span></span>
|
||||
<span class="line"></span>
|
||||
<span class="line"><span style="color:#89DDFF;">[graphics]</span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;">total_frames:3</span></span></code></pre></div><h3 id="frame-width" tabindex="-1">frame_width <a class="header-anchor" href="#frame-width" aria-label="Permalink to "frame_width""></a></h3><h4 id="frame-width-代码简介" tabindex="-1">frame_width-代码简介 <a class="header-anchor" href="#frame-width-代码简介" aria-label="Permalink to "frame_width-代码简介""></a></h4><p>代码:frame_width 中文释义:图像宽度 类型:正整数</p><h4 id="frame-width-用法" tabindex="-1">frame_width-用法 <a class="header-anchor" href="#frame-width-用法" aria-label="Permalink to "frame_width-用法""></a></h4><p>填写像素大小,作为图像的帧宽度。将自动根据图像的帧宽度将图像分割为不同的帧,并覆盖总帧数。</p><h4 id="frame-width-示例" tabindex="-1">frame_width-示例 <a class="header-anchor" href="#frame-width-示例" aria-label="Permalink to "frame_width-示例""></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;">frame_width:23</span></span>
|
||||
<span class="line"></span>
|
||||
<span class="line"><span style="color:#89DDFF;">[graphics]</span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;">frame_width:23</span></span></code></pre></div><h3 id="frame-height" tabindex="-1">frame_height <a class="header-anchor" href="#frame-height" aria-label="Permalink to "frame_height""></a></h3><h4 id="frame-height-代码简介" tabindex="-1">frame_height-代码简介 <a class="header-anchor" href="#frame-height-代码简介" aria-label="Permalink to "frame_height-代码简介""></a></h4><p>代码:frame_height 中文释义:图像高度 类型:正整数</p><h4 id="frame-height-用法" tabindex="-1">frame_height-用法 <a class="header-anchor" href="#frame-height-用法" aria-label="Permalink to "frame_height-用法""></a></h4><p>填写像素大小,作为图像帧的高度。</p><div class="info custom-block"><p class="custom-block-title">INFO</p><p>默认为图像的高度。</p></div><h4 id="frame-height-示例" tabindex="-1">frame_height-示例 <a class="header-anchor" href="#frame-height-示例" aria-label="Permalink to "frame_height-示例""></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;">frame_height:23</span></span>
|
||||
<span class="line"></span>
|
||||
<span class="line"><span style="color:#89DDFF;">[graphics]</span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;">frame_height:23</span></span></code></pre></div><h3 id="splasteffect" tabindex="-1">splastEffect <a class="header-anchor" href="#splasteffect" aria-label="Permalink to "splastEffect""></a></h3><h4 id="splasteffect-代码简介" tabindex="-1">splastEffect-代码简介 <a class="header-anchor" href="#splasteffect-代码简介" aria-label="Permalink to "splastEffect-代码简介""></a></h4><p>代码:splastEffect 中文释义:水波效果 类型:布尔值</p><h4 id="splasteffect-用法" tabindex="-1">splastEffect-用法 <a class="header-anchor" href="#splasteffect-用法" aria-label="Permalink to "splastEffect-用法""></a></h4><p>填写布尔值,决定在水上时是否创建水波效果。</p><div class="info custom-block"><p class="custom-block-title">INFO</p><p>效果为内置的,默认为false。</p></div><h4 id="splasteffect-示例" tabindex="-1">splastEffect-示例 <a class="header-anchor" href="#splasteffect-示例" aria-label="Permalink to "splastEffect-示例""></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;">splastEffect:true</span></span>
|
||||
<span class="line"></span>
|
||||
<span class="line"><span style="color:#89DDFF;">[graphics]</span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;">splastEffect:false</span></span></code></pre></div><h3 id="dusteffect" tabindex="-1">dustEffect <a class="header-anchor" href="#dusteffect" aria-label="Permalink to "dustEffect""></a></h3><h4 id="dusteffect-代码简介" tabindex="-1">dustEffect-代码简介 <a class="header-anchor" href="#dusteffect-代码简介" aria-label="Permalink to "dustEffect-代码简介""></a></h4><p>代码:dustEffect 中文释义:灰尘效果 类型:布尔值</p><h4 id="dusteffect-用法" tabindex="-1">dustEffect-用法 <a class="header-anchor" href="#dusteffect-用法" aria-label="Permalink to "dustEffect-用法""></a></h4><p>填写布尔值,决定在水上时是否创建灰尘效果。</p><div class="info custom-block"><p class="custom-block-title">INFO</p><p>效果为内置的,默认为false。</p></div><h4 id="dusteffect-示例" tabindex="-1">dustEffect-示例 <a class="header-anchor" href="#dusteffect-示例" aria-label="Permalink to "dustEffect-示例""></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;">dustEffect:true</span></span>
|
||||
<span class="line"></span>
|
||||
<span class="line"><span style="color:#89DDFF;">[graphics]</span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;">dustEffect:false</span></span></code></pre></div><h3 id="splasteffectreverse" tabindex="-1">splastEffectReverse <a class="header-anchor" href="#splasteffectreverse" aria-label="Permalink to "splastEffectReverse""></a></h3><h4 id="splasteffectreverse-代码简介" tabindex="-1">splastEffectReverse-代码简介 <a class="header-anchor" href="#splasteffectreverse-代码简介" aria-label="Permalink to "splastEffectReverse-代码简介""></a></h4><p>代码:splastEffectReverse 中文释义:逆向水波效果 类型:布尔值</p><h4 id="splasteffectreverse-用法" tabindex="-1">splastEffectReverse-用法 <a class="header-anchor" href="#splasteffectreverse-用法" aria-label="Permalink to "splastEffectReverse-用法""></a></h4><p>填写布尔值,决定在水上时倒车时是否产生水波效果。</p><div class="info custom-block"><p class="custom-block-title">INFO</p><p>效果为内置的,默认为false。</p></div><h4 id="splasteffectreverse-示例" tabindex="-1">splastEffectReverse-示例 <a class="header-anchor" href="#splasteffectreverse-示例" aria-label="Permalink to "splastEffectReverse-示例""></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;">splastEffectReverse:true</span></span>
|
||||
<span class="line"></span>
|
||||
<span class="line"><span style="color:#89DDFF;">[graphics]</span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;">splastEffectReverse:false</span></span></code></pre></div><h3 id="dusteffectreverse" tabindex="-1">dustEffectReverse <a class="header-anchor" href="#dusteffectreverse" aria-label="Permalink to "dustEffectReverse""></a></h3><h4 id="dusteffectreverse-代码简介" tabindex="-1">dustEffectReverse-代码简介 <a class="header-anchor" href="#dusteffectreverse-代码简介" aria-label="Permalink to "dustEffectReverse-代码简介""></a></h4><p>代码:dustEffectReverse 中文释义:逆向灰尘效果 类型:布尔值</p><h4 id="dusteffectreverse-用法" tabindex="-1">dustEffectReverse-用法 <a class="header-anchor" href="#dusteffectreverse-用法" aria-label="Permalink to "dustEffectReverse-用法""></a></h4><p>填写布尔值,决定在水上时倒车时是否产生灰尘效果。</p><div class="info custom-block"><p class="custom-block-title">INFO</p><p>效果为内置的,默认为false。</p></div><h4 id="dusteffectreverse-示例" tabindex="-1">dustEffectReverse-示例 <a class="header-anchor" href="#dusteffectreverse-示例" aria-label="Permalink to "dustEffectReverse-示例""></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;">dustEffectReverse:true</span></span>
|
||||
<span class="line"></span>
|
||||
<span class="line"><span style="color:#89DDFF;">[graphics]</span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;">dustEffectReverse:false</span></span></code></pre></div>`,298),o=[t];function i(r,c,p,h,d,m){return s(),e("div",null,o)}const g=a(l,[["render",i]]);export{f as __pageData,g as default};
|
1
assets/src_Unit_graphics.md.6e56c4ad.lean.js
Normal file
|
@ -0,0 +1 @@
|
|||
import{_ as a,c as e,o as s,V as n}from"./chunks/framework.fcc0bf38.js";const f=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"},t=n("",298),o=[t];function i(r,c,p,h,d,m){return s(),e("div",null,o)}const g=a(l,[["render",i]]);export{f as __pageData,g as default};
|
42
assets/src_Unit_loginboolean.md.33f0931b.js
Normal file
2
assets/src_Unit_loginboolean.md.33f0931b.lean.js
Normal file
33
assets/src_Unit_movement.md.3ff8232f.js
Normal file
|
@ -0,0 +1,33 @@
|
|||
import{_ as e,c as a,o as t,V as n}from"./chunks/framework.fcc0bf38.js";const u=JSON.parse('{"title":"[movement]组","description":"","frontmatter":{"outline":"deep"},"headers":[],"relativePath":"src/Unit/movement.md","filePath":"src/Unit/movement.md"}'),o={name:"src/Unit/movement.md"},l=n(`<h1 id="movement-组" tabindex="-1"><strong>[movement]组</strong> <a class="header-anchor" href="#movement-组" aria-label="Permalink to "**[movement]组**""></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="movementtype" tabindex="-1">movementType <a class="header-anchor" href="#movementtype" aria-label="Permalink to "movementType""></a></h3><h4 id="movementtype-代码简介" tabindex="-1">movementType-代码简介 <a class="header-anchor" href="#movementtype-代码简介" aria-label="Permalink to "movementType-代码简介""></a></h4><p>代码:movementType 中文释义:运动类型 类型:字符串 隶属于:通用代码组</p><h4 id="string-要点指示" tabindex="-1">string-要点指示 <a class="header-anchor" href="#string-要点指示" aria-label="Permalink to "string-要点指示""></a></h4><p>定义单位的运动类型,判定单位是否可在某种地形上运动,可用值为NONE、LAND、BUILDING、AIR、WATER、HOVER、OVER_CLIFF、OVER_CLIFF_WATER。</p><div class="tip custom-block"><p class="custom-block-title">TIP</p><p>不同的运动类型特点如下</p><table><thead><tr><th>类型</th><th>可跨陆地</th><th>可跨悬崖</th><th>可跨水</th><th>可跨岩浆</th></tr></thead><tbody><tr><td>NONE</td><td>✓</td><td>✓</td><td>✓</td><td>✓</td></tr><tr><td>LAND</td><td>✓</td><td>×</td><td>×</td><td>×</td></tr><tr><td>BUILDING</td><td>✓</td><td>×</td><td>×</td><td>×</td></tr><tr><td>AIR</td><td>✓</td><td>✓</td><td>✓</td><td>✓</td></tr><tr><td>WATER</td><td>×</td><td>×</td><td>✓</td><td>×</td></tr><tr><td>HOVER</td><td>✓</td><td>×</td><td>✓</td><td>×</td></tr><tr><td>OVER_CLIFF</td><td>✓</td><td>✓</td><td>×</td><td>×</td></tr><tr><td>OVER_CLIFF_WATER</td><td>✓</td><td>✓</td><td>✓</td><td>×</td></tr></tbody></table></div><div class="tip custom-block"><p class="custom-block-title">TIP</p><p>类型NONE虽然说移动无视地形,但是只能在LAND类型地块进行放置</p></div><div class="warning custom-block"><p class="custom-block-title">WARNING</p><p>NONE移动类型在多选单位进行移动时会有卡寻路的问题 BUILDING移动类型似乎已经废弃,和LAND没有任何区别</p></div><h4 id="movementtype-演示例子" tabindex="-1">movementType-演示例子 <a class="header-anchor" href="#movementtype-演示例子" aria-label="Permalink to "movementType-演示例子""></a></h4><div class="language-ini"><button title="Copy Code" class="copy"></button><span class="lang">ini</span><pre class="shiki material-theme-palenight"><code><span class="line"><span style="color:#89DDFF;">[movement]</span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;">movementType:LAND</span></span></code></pre></div><hr><h2 id="第二类-速度相关组" tabindex="-1">第二类-速度相关组 <a class="header-anchor" href="#第二类-速度相关组" aria-label="Permalink to "第二类-速度相关组""></a></h2><h3 id="movespeed" tabindex="-1">moveSpeed <a class="header-anchor" href="#movespeed" aria-label="Permalink to "moveSpeed""></a></h3><h4 id="movespeed-代码简介" tabindex="-1">moveSpeed-代码简介 <a class="header-anchor" href="#movespeed-代码简介" aria-label="Permalink to "moveSpeed-代码简介""></a></h4><p>代码:moveSpeed 中文释义:移动速度 类型:浮点数 隶属于:通用代码组</p><h4 id="movespeed-要点指示" tabindex="-1">moveSpeed-要点指示 <a class="header-anchor" href="#movespeed-要点指示" aria-label="Permalink to "moveSpeed-要点指示""></a></h4><p>定义单位的移动速度,显示在单位信息中</p><div class="tip custom-block"><p class="custom-block-title">TIP</p><p>移动速度的单位是<strong>像素/帧</strong>,同时铁锈战争地图图块大小为20x20,且一秒60帧,所以说移动速度为1的话,每秒可以移动三格</p></div><h4 id="movespeed-演示例子" tabindex="-1">moveSpeed-演示例子 <a class="header-anchor" href="#movespeed-演示例子" aria-label="Permalink to "moveSpeed-演示例子""></a></h4><div class="language-ini"><button title="Copy Code" class="copy"></button><span class="lang">ini</span><pre class="shiki material-theme-palenight"><code><span class="line"><span style="color:#89DDFF;">[movement]</span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;">moveSpeed:0.5</span></span></code></pre></div><hr><h3 id="moveaccelerationspeed" tabindex="-1">moveAccelerationSpeed <a class="header-anchor" href="#moveaccelerationspeed" aria-label="Permalink to "moveAccelerationSpeed""></a></h3><h4 id="moveaccelerationspeed-代码简介" tabindex="-1">moveAccelerationSpeed-代码简介 <a class="header-anchor" href="#moveaccelerationspeed-代码简介" aria-label="Permalink to "moveAccelerationSpeed-代码简介""></a></h4><p>代码:moveAccelerationSpeed 中文释义:加速度 类型:浮点数 隶属于:速度相关组</p><h4 id="moveaccelerationspeed-要点指示" tabindex="-1">moveAccelerationSpeed-要点指示 <a class="header-anchor" href="#moveaccelerationspeed-要点指示" aria-label="Permalink to "moveAccelerationSpeed-要点指示""></a></h4><p>定义单位的加速度,单位在移动时会从零开始加速直到移动速度</p><div class="tip custom-block"><p class="custom-block-title">TIP</p><p>加速度也是按帧计算的,如果你需要一秒加速0.6,你需要填写的值为0.01</p></div><h4 id="moveaccelerationspeed-演示例子" tabindex="-1">moveAccelerationSpeed-演示例子 <a class="header-anchor" href="#moveaccelerationspeed-演示例子" aria-label="Permalink to "moveAccelerationSpeed-演示例子""></a></h4><div class="language-ini"><button title="Copy Code" class="copy"></button><span class="lang">ini</span><pre class="shiki material-theme-palenight"><code><span class="line"><span style="color:#89DDFF;">[movement]</span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;">moveSpeed:1</span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;">moveAccelerationSpeed:0.01</span></span></code></pre></div><hr><h3 id="movedecelerationspeed" tabindex="-1">moveDecelerationSpeed <a class="header-anchor" href="#movedecelerationspeed" aria-label="Permalink to "moveDecelerationSpeed""></a></h3><h4 id="movedecelerationspeed-代码简介" tabindex="-1">moveDecelerationSpeed-代码简介 <a class="header-anchor" href="#movedecelerationspeed-代码简介" aria-label="Permalink to "moveDecelerationSpeed-代码简介""></a></h4><p>代码:moveDecelerationSpeed 中文释义:减速度 类型:浮点数 隶属于:速度相关组</p><h4 id="movedecelerationspeed-要点指示" tabindex="-1">moveDecelerationSpeed-要点指示 <a class="header-anchor" href="#movedecelerationspeed-要点指示" aria-label="Permalink to "moveDecelerationSpeed-要点指示""></a></h4><p>定义单位的减速度,单位在停止移动时会从运动速度开始减速直到零</p><div class="tip custom-block"><p class="custom-block-title">TIP</p><p>减速度也是按帧计算的,如果你需要一秒减速0.6,你需要填写的值为0.01</p></div><h4 id="movedecelerationspeed-演示例子" tabindex="-1">moveDecelerationSpeed-演示例子 <a class="header-anchor" href="#movedecelerationspeed-演示例子" aria-label="Permalink to "moveDecelerationSpeed-演示例子""></a></h4><div class="language-ini"><button title="Copy Code" class="copy"></button><span class="lang">ini</span><pre class="shiki material-theme-palenight"><code><span class="line"><span style="color:#89DDFF;">[movement]</span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;">moveSpeed:1</span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;">moveDecelerationSpeed:0.01</span></span></code></pre></div><hr><h3 id="reversespeedpercentage" tabindex="-1">reverseSpeedPercentage <a class="header-anchor" href="#reversespeedpercentage" aria-label="Permalink to "reverseSpeedPercentage""></a></h3><h4 id="reversespeedpercentageed-代码简介" tabindex="-1">reverseSpeedPercentageed-代码简介 <a class="header-anchor" href="#reversespeedpercentageed-代码简介" aria-label="Permalink to "reverseSpeedPercentageed-代码简介""></a></h4><p>代码:reverseSpeedPercentage 中文释义:倒车速度比率 类型:浮点数 隶属于:速度相关组</p><h4 id="reversespeedpercentage-要点指示" tabindex="-1">reverseSpeedPercentage-要点指示 <a class="header-anchor" href="#reversespeedpercentage-要点指示" aria-label="Permalink to "reverseSpeedPercentage-要点指示""></a></h4><p>定义单位倒车时的速度,单位在逆向运动时会按照运动速度与倒车速度比率的乘积运行</p><div class="tip custom-block"><p class="custom-block-title">TIP</p><p>这个值默认为0.6 如果这个值等于0,那么无论什么距离向后运动都会先转弯 如果在0到1之间,那么短距离向后运动会倒车而不是转弯 如果等于1,那么无论什么距离,向后运动会倒车而不是转弯</p></div><h4 id="reversespeedpercentagepeed-演示例子" tabindex="-1">reverseSpeedPercentagepeed-演示例子 <a class="header-anchor" href="#reversespeedpercentagepeed-演示例子" aria-label="Permalink to "reverseSpeedPercentagepeed-演示例子""></a></h4><div class="language-ini"><button title="Copy Code" class="copy"></button><span class="lang">ini</span><pre class="shiki material-theme-palenight"><code><span class="line"><span style="color:#89DDFF;">[movement]</span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;">moveSpeed:1</span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;">reverseSpeedPercentage:0.4</span></span></code></pre></div><hr><h3 id="maxturnspeed" tabindex="-1">maxTurnSpeed <a class="header-anchor" href="#maxturnspeed" aria-label="Permalink to "maxTurnSpeed""></a></h3><h4 id="maxturnspeed-代码简介" tabindex="-1">maxTurnSpeed-代码简介 <a class="header-anchor" href="#maxturnspeed-代码简介" aria-label="Permalink to "maxTurnSpeed-代码简介""></a></h4><p>代码:maxTurnSpeed 中文释义:转弯速度 类型:浮点数 隶属于:速度相关组</p><h4 id="maxturnspeed-要点指示" tabindex="-1">maxTurnSpeed-要点指示 <a class="header-anchor" href="#maxturnspeed-要点指示" aria-label="Permalink to "maxTurnSpeed-要点指示""></a></h4><p>定义单位转弯的速度</p><div class="tip custom-block"><p class="custom-block-title">TIP</p><p>转弯速度的单位是<strong>度/帧</strong>,如果转弯速度为1,那么一秒将旋转60度</p></div><h4 id="maxturnspeed-演示例子" tabindex="-1">maxTurnSpeed-演示例子 <a class="header-anchor" href="#maxturnspeed-演示例子" aria-label="Permalink to "maxTurnSpeed-演示例子""></a></h4><div class="language-ini"><button title="Copy Code" class="copy"></button><span class="lang">ini</span><pre class="shiki material-theme-palenight"><code><span class="line"><span style="color:#89DDFF;">[movement]</span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;">maxTurnSpeed:1.5</span></span></code></pre></div><hr><h3 id="turnacceleration" tabindex="-1">turnAcceleration <a class="header-anchor" href="#turnacceleration" aria-label="Permalink to "turnAcceleration""></a></h3><h4 id="turnacceleration-代码简介" tabindex="-1">turnAcceleration-代码简介 <a class="header-anchor" href="#turnacceleration-代码简介" aria-label="Permalink to "turnAcceleration-代码简介""></a></h4><p>代码:turnAcceleration 中文释义:转弯速度 类型:浮点数 隶属于:速度相关组</p><h4 id="turnacceleration-要点指示" tabindex="-1">turnAcceleration-要点指示 <a class="header-anchor" href="#turnacceleration-要点指示" aria-label="Permalink to "turnAcceleration-要点指示""></a></h4><p>定义单位转弯的加速度,开始转弯时将从零开始加速直到转弯速度</p><div class="tip custom-block"><p class="custom-block-title">TIP</p><p>转弯加速度是按帧计算的,如果想要每秒增加0.6需要填0.01</p></div><h4 id="turnacceleration-演示例子" tabindex="-1">turnAcceleration-演示例子 <a class="header-anchor" href="#turnacceleration-演示例子" aria-label="Permalink to "turnAcceleration-演示例子""></a></h4><div class="language-ini"><button title="Copy Code" class="copy"></button><span class="lang">ini</span><pre class="shiki material-theme-palenight"><code><span class="line"><span style="color:#89DDFF;">[movement]</span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;">maxTurnSpeed:1.5</span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;">turnAcceleration:0.01</span></span></code></pre></div><hr><h2 id="第三类-高度相关组" tabindex="-1">第三类-高度相关组 <a class="header-anchor" href="#第三类-高度相关组" aria-label="Permalink to "第三类-高度相关组""></a></h2><h3 id="targetheight" tabindex="-1">targetHeight <a class="header-anchor" href="#targetheight" aria-label="Permalink to "targetHeight""></a></h3><h4 id="targetheight-代码简介" tabindex="-1">targetHeight-代码简介 <a class="header-anchor" href="#targetheight-代码简介" aria-label="Permalink to "targetHeight-代码简介""></a></h4><p>代码:targetHeight 中文释义:到达高度 类型:浮点数 隶属于:高度相关组</p><h4 id="targetheight-要点指示" tabindex="-1">targetHeight-要点指示 <a class="header-anchor" href="#targetheight-要点指示" aria-label="Permalink to "targetHeight-要点指示""></a></h4><p>定义单位的高度,当单位创建完成时会从0到达这个高度</p><div class="tip custom-block"><p class="custom-block-title">TIP</p><p>如果运动类型为AIR,targetHeight默认值将为20</p></div><div class="vp-code-group"><div class="tabs"><input type="radio" name="group-aHhzY" id="tab-eWGv7o2" checked="checked"><label for="tab-eWGv7o2">摸鱼人time</label></div><div class="blocks"><div class="language-bash active"><button title="Copy Code" class="copy"></button><span class="lang">bash</span><pre class="shiki material-theme-palenight"><code><span class="line"><span style="color:#FFCB6B;">大部分单位能被什么类型的攻击方式攻击不取决于移动类型,而是取决于高度</span></span>
|
||||
<span class="line"><span style="color:#FFCB6B;">如果高度是负数,那么可以被水下攻击命中</span></span>
|
||||
<span class="line"><span style="color:#FFCB6B;">如果高度位于0到10之间,可以被对表面攻击命中</span></span>
|
||||
<span class="line"><span style="color:#FFCB6B;">如果高度大于10,可以被对空攻击命中</span></span>
|
||||
<span class="line"></span>
|
||||
<span class="line"><span style="color:#FFCB6B;">如果高度不为0的地面悬浮单位,对地的范围攻击(比如火炮</span><span style="color:#A6ACCD;">)将无法对其造成伤害,但是可以被瞄准</span></span>
|
||||
<span class="line"></span>
|
||||
<span class="line"><span style="color:#FFCB6B;">建筑高度大于等于0是,只能被对表面攻击命中</span></span></code></pre></div></div></div><h4 id="targetheight-演示例子" tabindex="-1">targetHeight-演示例子 <a class="header-anchor" href="#targetheight-演示例子" aria-label="Permalink to "targetHeight-演示例子""></a></h4><div class="language-ini"><button title="Copy Code" class="copy"></button><span class="lang">ini</span><pre class="shiki material-theme-palenight"><code><span class="line"><span style="color:#89DDFF;">[movement]</span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;">targetHeight:10</span></span></code></pre></div><hr><h3 id="targetheightdrift" tabindex="-1">targetHeightDrift <a class="header-anchor" href="#targetheightdrift" aria-label="Permalink to "targetHeightDrift""></a></h3><h4 id="targetheightdrift-代码简介" tabindex="-1">targetHeightDrift-代码简介 <a class="header-anchor" href="#targetheightdrift-代码简介" aria-label="Permalink to "targetHeightDrift-代码简介""></a></h4><p>代码:targetHeightDrift 中文释义:高度浮动 类型:浮点数 隶属于:高度相关组</p><h4 id="targetheight-要点指示-1" tabindex="-1">targetHeight-要点指示 <a class="header-anchor" href="#targetheight-要点指示-1" aria-label="Permalink to "targetHeight-要点指示""></a></h4><p>定义单位的高度浮动,单位会在到达高度上下浮动</p><div class="tip custom-block"><p class="custom-block-title">TIP</p><p>如果运动类型为AIR,targetHeightDrift默认值将为2.5</p></div><h4 id="targetheightdrift-演示例子" tabindex="-1">targetHeightDrift-演示例子 <a class="header-anchor" href="#targetheightdrift-演示例子" aria-label="Permalink to "targetHeightDrift-演示例子""></a></h4><div class="language-ini"><button title="Copy Code" class="copy"></button><span class="lang">ini</span><pre class="shiki material-theme-palenight"><code><span class="line"><span style="color:#89DDFF;">[movement]</span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;">targetHeight:10</span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;">targetHeightDrift:1</span></span></code></pre></div><hr><h3 id="landonground" tabindex="-1">landOnGround <a class="header-anchor" href="#landonground" aria-label="Permalink to "landOnGround""></a></h3><h4 id="landonground-代码简介" tabindex="-1">landOnGround-代码简介 <a class="header-anchor" href="#landonground-代码简介" aria-label="Permalink to "landOnGround-代码简介""></a></h4><p>代码:landOnGround 中文释义:降落到地面 类型:布尔值 隶属于:高度相关组</p><h4 id="landonground-要点指示" tabindex="-1">landOnGround-要点指示 <a class="header-anchor" href="#landonground-要点指示" aria-label="Permalink to "landOnGround-要点指示""></a></h4><p>定义单位在不移动时是否降落到地面</p><div class="tip custom-block"><p class="custom-block-title">TIP</p><p>只有单位投影所在地块可以降落时才会降落</p></div><h4 id="landonground-演示例子" tabindex="-1">landOnGround-演示例子 <a class="header-anchor" href="#landonground-演示例子" aria-label="Permalink to "landOnGround-演示例子""></a></h4><div class="language-ini"><button title="Copy Code" class="copy"></button><span class="lang">ini</span><pre class="shiki material-theme-palenight"><code><span class="line"><span style="color:#89DDFF;">[movement]</span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;">landOnGround:true</span></span></code></pre></div><hr><h3 id="fallingacceleration" tabindex="-1">fallingAcceleration <a class="header-anchor" href="#fallingacceleration" aria-label="Permalink to "fallingAcceleration""></a></h3><h4 id="fallingacceleration-代码简介" tabindex="-1">fallingAcceleration-代码简介 <a class="header-anchor" href="#fallingacceleration-代码简介" aria-label="Permalink to "fallingAcceleration-代码简介""></a></h4><p>代码:fallingAcceleration 中文释义:降落加速度 类型:浮点值 隶属于:高度相关组</p><h4 id="fallingacceleration-要点指示" tabindex="-1">fallingAcceleration-要点指示 <a class="header-anchor" href="#fallingacceleration-要点指示" aria-label="Permalink to "fallingAcceleration-要点指示""></a></h4><p>定义单位在降落到地面时的加速度</p><div class="tip custom-block"><p class="custom-block-title">TIP</p><p>加速度是按帧来计算的,如果想一秒加速0.6则填写0.01</p></div><h4 id="fallingacceleration-演示例子" tabindex="-1">fallingAcceleration-演示例子 <a class="header-anchor" href="#fallingacceleration-演示例子" aria-label="Permalink to "fallingAcceleration-演示例子""></a></h4><div class="language-ini"><button title="Copy Code" class="copy"></button><span class="lang">ini</span><pre class="shiki material-theme-palenight"><code><span class="line"><span style="color:#89DDFF;">[movement]</span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;">fallingAcceleration:0.01</span></span></code></pre></div><hr><h3 id="slowdeathfall" tabindex="-1">slowDeathFall <a class="header-anchor" href="#slowdeathfall" aria-label="Permalink to "slowDeathFall""></a></h3><h4 id="slowdeathfall-代码简介" tabindex="-1">slowDeathFall-代码简介 <a class="header-anchor" href="#slowdeathfall-代码简介" aria-label="Permalink to "slowDeathFall-代码简介""></a></h4><p>代码:slowDeathFall 中文释义:死亡坠落 类型:布尔值 隶属于:高度相关组</p><h4 id="slowdeathfall-要点指示" tabindex="-1">slowDeathFall-要点指示 <a class="header-anchor" href="#slowdeathfall-要点指示" aria-label="Permalink to "slowDeathFall-要点指示""></a></h4><p>定义单位在死亡时是否坠落到地面</p><h4 id="targetheightdrift-演示例子-1" tabindex="-1">targetHeightDrift-演示例子 <a class="header-anchor" href="#targetheightdrift-演示例子-1" aria-label="Permalink to "targetHeightDrift-演示例子""></a></h4><div class="language-ini"><button title="Copy Code" class="copy"></button><span class="lang">ini</span><pre class="shiki material-theme-palenight"><code><span class="line"><span style="color:#89DDFF;">[movement]</span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;">slowDeathFall:true</span></span></code></pre></div><hr><h3 id="fallingaccelerationdead" tabindex="-1">fallingAccelerationDead <a class="header-anchor" href="#fallingaccelerationdead" aria-label="Permalink to "fallingAccelerationDead""></a></h3><h4 id="fallingaccelerationdead-代码简介" tabindex="-1">fallingAccelerationDead-代码简介 <a class="header-anchor" href="#fallingaccelerationdead-代码简介" aria-label="Permalink to "fallingAccelerationDead-代码简介""></a></h4><p>代码:fallingAccelerationDead 中文释义:死亡坠落加速度 类型:浮点值 隶属于:高度相关组</p><h4 id="fallingaccelerationdead-要点指示" tabindex="-1">fallingAccelerationDead-要点指示 <a class="header-anchor" href="#fallingaccelerationdead-要点指示" aria-label="Permalink to "fallingAccelerationDead-要点指示""></a></h4><p>定义单位在死亡坠毁到地面时的加速度</p><div class="tip custom-block"><p class="custom-block-title">TIP</p><p>加速度是按帧来计算的,如果想一秒加速0.6则填写0.01</p></div><h4 id="fallingaccelerationdead-演示例子" tabindex="-1">fallingAccelerationDead-演示例子 <a class="header-anchor" href="#fallingaccelerationdead-演示例子" aria-label="Permalink to "fallingAccelerationDead-演示例子""></a></h4><div class="language-ini"><button title="Copy Code" class="copy"></button><span class="lang">ini</span><pre class="shiki material-theme-palenight"><code><span class="line"><span style="color:#89DDFF;">[movement]</span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;">fallingAccelerationDead:0.01</span></span></code></pre></div><hr><h3 id="heightchangerate" tabindex="-1">heightChangeRate <a class="header-anchor" href="#heightchangerate" aria-label="Permalink to "heightChangeRate""></a></h3><h4 id="heightchangerate-代码简介" tabindex="-1">heightChangeRate-代码简介 <a class="header-anchor" href="#heightchangerate-代码简介" aria-label="Permalink to "heightChangeRate-代码简介""></a></h4><p>代码:heightChangeRate 中文释义:高度改变速率 类型:浮点值 隶属于:高度相关组</p><h4 id="heightchangerate-要点指示" tabindex="-1">heightChangeRate-要点指示 <a class="header-anchor" href="#heightchangerate-要点指示" aria-label="Permalink to "heightChangeRate-要点指示""></a></h4><p>定义单位在被创建,转换,浮动是高度改变的速度</p><h4 id="heightchangerate-演示例子" tabindex="-1">heightChangeRate-演示例子 <a class="header-anchor" href="#heightchangerate-演示例子" aria-label="Permalink to "heightChangeRate-演示例子""></a></h4><div class="language-ini"><button title="Copy Code" class="copy"></button><span class="lang">ini</span><pre class="shiki material-theme-palenight"><code><span class="line"><span style="color:#89DDFF;">[movement]</span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;">heightChangeRate:0.4</span></span></code></pre></div><hr><h2 id="第四类-杂项" tabindex="-1">第四类-杂项 <a class="header-anchor" href="#第四类-杂项" aria-label="Permalink to "第四类-杂项""></a></h2><h3 id="moveignoringbody" tabindex="-1">moveIgnoringBody <a class="header-anchor" href="#moveignoringbody" aria-label="Permalink to "moveIgnoringBody""></a></h3><h4 id="moveignoringbody-代码简介" tabindex="-1">moveIgnoringBody-代码简介 <a class="header-anchor" href="#moveignoringbody-代码简介" aria-label="Permalink to "moveIgnoringBody-代码简介""></a></h4><p>代码:moveIgnoringBody 中文释义:移动忽略转向 类型:布尔值 隶属于:杂项</p><h4 id="moveignoringbody-要点指示" tabindex="-1">moveIgnoringBody-要点指示 <a class="header-anchor" href="#moveignoringbody-要点指示" aria-label="Permalink to "moveIgnoringBody-要点指示""></a></h4><p>定义单位移动时是否需要考虑角度</p><h4 id="moveignoringbody-演示例子" tabindex="-1">moveIgnoringBody-演示例子 <a class="header-anchor" href="#moveignoringbody-演示例子" aria-label="Permalink to "moveIgnoringBody-演示例子""></a></h4><div class="language-ini"><button title="Copy Code" class="copy"></button><span class="lang">ini</span><pre class="shiki material-theme-palenight"><code><span class="line"><span style="color:#89DDFF;">[movement]</span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;">moveIgnoringBody:true</span></span></code></pre></div><hr><h3 id="moveslidingmode" tabindex="-1">moveSlidingMode <a class="header-anchor" href="#moveslidingmode" aria-label="Permalink to "moveSlidingMode""></a></h3><h4 id="moveslidingmode-代码简介" tabindex="-1">moveSlidingMode-代码简介 <a class="header-anchor" href="#moveslidingmode-代码简介" aria-label="Permalink to "moveSlidingMode-代码简介""></a></h4><p>代码:moveSlidingMode 中文释义:移动滑动 类型:布尔值 隶属于:杂项</p><h4 id="moveslidingmode-要点指示" tabindex="-1">moveSlidingMode-要点指示 <a class="header-anchor" href="#moveslidingmode-要点指示" aria-label="Permalink to "moveSlidingMode-要点指示""></a></h4><p>定义单位移动后是否进行滑动</p><h4 id="moveslidingmode-演示例子" tabindex="-1">moveSlidingMode-演示例子 <a class="header-anchor" href="#moveslidingmode-演示例子" aria-label="Permalink to "moveSlidingMode-演示例子""></a></h4><div class="language-ini"><button title="Copy Code" class="copy"></button><span class="lang">ini</span><pre class="shiki material-theme-palenight"><code><span class="line"><span style="color:#89DDFF;">[movement]</span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;">moveSlidingMode:true</span></span></code></pre></div><hr><h3 id="moveslidingdir" tabindex="-1">moveSlidingDir <a class="header-anchor" href="#moveslidingdir" aria-label="Permalink to "moveSlidingDir""></a></h3><h4 id="moveslidingdir-代码简介" tabindex="-1">moveSlidingDir-代码简介 <a class="header-anchor" href="#moveslidingdir-代码简介" aria-label="Permalink to "moveSlidingDir-代码简介""></a></h4><p>代码:moveSlidingDir 中文释义:移动滑动角度 类型:浮点数 隶属于:杂项</p><h4 id="moveslidingdir-要点指示" tabindex="-1">moveSlidingDir-要点指示 <a class="header-anchor" href="#moveslidingdir-要点指示" aria-label="Permalink to "moveSlidingDir-要点指示""></a></h4><p>定义单位移动滑动的角度</p><h4 id="moveslidingdir-演示例子" tabindex="-1">moveSlidingDir-演示例子 <a class="header-anchor" href="#moveslidingdir-演示例子" aria-label="Permalink to "moveSlidingDir-演示例子""></a></h4><div class="language-ini"><button title="Copy Code" class="copy"></button><span class="lang">ini</span><pre class="shiki material-theme-palenight"><code><span class="line"><span style="color:#89DDFF;">[movement]</span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;">moveSlidingDir:-1</span></span></code></pre></div><hr><h3 id="joinsgroupformations" tabindex="-1">joinsGroupFormations <a class="header-anchor" href="#joinsgroupformations" aria-label="Permalink to "joinsGroupFormations""></a></h3><h4 id="joinsgroupformations-代码简介" tabindex="-1">joinsGroupFormations-代码简介 <a class="header-anchor" href="#joinsgroupformations-代码简介" aria-label="Permalink to "joinsGroupFormations-代码简介""></a></h4><p>代码:joinsGroupFormations 中文释义:加入到队形 类型:布尔值 隶属于:杂项</p><h4 id="joinsgroupformations-要点指示" tabindex="-1">joinsGroupFormations-要点指示 <a class="header-anchor" href="#joinsgroupformations-要点指示" aria-label="Permalink to "joinsGroupFormations-要点指示""></a></h4><p>定义单位移动时是否要按队形行动</p><div class="tip custom-block"><p class="custom-block-title">TIP</p><p>默认值为true,这使大部分单位在移动时会排列为一个方阵,着不仅有效的使单位在一定程度上散开,避免aoe伤害,也能加快寻路运算速度,但是会使大量单位行进时部分单位一直撞墙 如果改为false,每个单位将单独进行寻路,这使得单位会挤在一起并且可能造成卡顿</p></div><h4 id="joinsgroupformations-演示例子" tabindex="-1">joinsGroupFormations-演示例子 <a class="header-anchor" href="#joinsgroupformations-演示例子" aria-label="Permalink to "joinsGroupFormations-演示例子""></a></h4><div class="language-ini"><button title="Copy Code" class="copy"></button><span class="lang">ini</span><pre class="shiki material-theme-palenight"><code><span class="line"><span style="color:#89DDFF;">[movement]</span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;">joinsGroupFormations:true</span></span></code></pre></div><hr><h3 id="ignoremoveorders" tabindex="-1">ignoreMoveOrders <a class="header-anchor" href="#ignoremoveorders" aria-label="Permalink to "ignoreMoveOrders""></a></h3><h4 id="ignoremoveorders-代码简介" tabindex="-1">ignoreMoveOrders-代码简介 <a class="header-anchor" href="#ignoremoveorders-代码简介" aria-label="Permalink to "ignoreMoveOrders-代码简介""></a></h4><p>代码:ignoreMoveOrders 中文释义:忽略移动指令:布尔值 隶属于:杂项</p><h4 id="ignoremoveorders-要点指示" tabindex="-1">ignoreMoveOrders-要点指示 <a class="header-anchor" href="#ignoremoveorders-要点指示" aria-label="Permalink to "ignoreMoveOrders-要点指示""></a></h4><p>定义单位是否接受来自玩家的移动指令</p><div class="tip custom-block"><p class="custom-block-title">TIP</p><p>这个代码只能和<strong>moveSpeed:0</strong>一起使用,但是可以通过setUnitStats改变移动速度</p></div><h4 id="ignoremoveorders-演示例子" tabindex="-1">ignoreMoveOrders-演示例子 <a class="header-anchor" href="#ignoremoveorders-演示例子" aria-label="Permalink to "ignoreMoveOrders-演示例子""></a></h4><div class="language-ini"><button title="Copy Code" class="copy"></button><span class="lang">ini</span><pre class="shiki material-theme-palenight"><code><span class="line"><span style="color:#89DDFF;">[movement]</span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;">ignoreMoveOrders:true</span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;">moveSpeed:0</span></span></code></pre></div><hr>`,175),i=[l];function s(r,d,c,p,h,m){return t(),a("div",null,i)}const v=e(o,[["render",s]]);export{u as __pageData,v as default};
|
1
assets/src_Unit_movement.md.3ff8232f.lean.js
Normal file
|
@ -0,0 +1 @@
|
|||
import{_ as e,c as a,o as t,V as n}from"./chunks/framework.fcc0bf38.js";const u=JSON.parse('{"title":"[movement]组","description":"","frontmatter":{"outline":"deep"},"headers":[],"relativePath":"src/Unit/movement.md","filePath":"src/Unit/movement.md"}'),o={name:"src/Unit/movement.md"},l=n("",175),i=[l];function s(r,d,c,p,h,m){return t(),a("div",null,i)}const v=e(o,[["render",s]]);export{u as __pageData,v as default};
|
1
assets/src_Unit_spawnunit_spawnprojectile.md.5ab9c365.js
Normal file
|
@ -0,0 +1 @@
|
|||
import{_ as a,c as e,o as s,V as t}from"./chunks/framework.fcc0bf38.js";const m=JSON.parse('{"title":"spawnUnits&spawnProjectiles","description":"","frontmatter":{"outline":"deep"},"headers":[],"relativePath":"src/Unit/spawnunit_spawnprojectile.md","filePath":"src/Unit/spawnunit_spawnprojectile.md"}'),o={name:"src/Unit/spawnunit_spawnprojectile.md"},n=t("",169),r=[n];function i(l,p,c,d,h,f){return s(),e("div",null,r)}const b=a(o,[["render",i]]);export{m as __pageData,b as default};
|
77
assets/src_Unit_turret.md.149ab95e.js
Normal file
|
@ -0,0 +1,77 @@
|
|||
import{_ as a,c as e,o as t,V as n}from"./chunks/framework.fcc0bf38.js";const m=JSON.parse('{"title":"[turret]组","description":"","frontmatter":{"outline":"deep"},"headers":[],"relativePath":"src/Unit/turret.md","filePath":"src/Unit/turret.md"}'),i={name:"src/Unit/turret.md"},r=n(`<h1 id="turret-组" tabindex="-1"><strong>[turret]组</strong> <a class="header-anchor" href="#turret-组" aria-label="Permalink to "**[turret]组**""></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><div class="warning custom-block"><p class="custom-block-title">WARNING</p><p>炮塔上限为31个,显示顺序为ini顺序递增</p></div><h3 id="canshoot" tabindex="-1">canShoot <a class="header-anchor" href="#canshoot" aria-label="Permalink to "canShoot""></a></h3><h4 id="canshoot-代码简介" tabindex="-1">canShoot-代码简介 <a class="header-anchor" href="#canshoot-代码简介" aria-label="Permalink to "canShoot-代码简介""></a></h4><p>代码:canShoot 中文释义:可攻击 类型:布尔值bool 隶属于:重复代码组</p><h4 id="canshoot-要点指示" tabindex="-1">canShoot-要点指示 <a class="header-anchor" href="#canshoot-要点指示" aria-label="Permalink to "canShoot-要点指示""></a></h4><p>设置该炮塔是否能攻击</p><h4 id="canshoot-演示例子" tabindex="-1">canShoot-演示例子 <a class="header-anchor" href="#canshoot-演示例子" aria-label="Permalink to "canShoot-演示例子""></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;">[turret_1]</span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;">canShoot:true</span></span></code></pre></div><hr><h3 id="canattacklandunits" tabindex="-1">canAttackLandUnits <a class="header-anchor" href="#canattacklandunits" aria-label="Permalink to "canAttackLandUnits""></a></h3><h4 id="canattacklandunits-代码简介" tabindex="-1">canAttackLandUnits-代码简介 <a class="header-anchor" href="#canattacklandunits-代码简介" aria-label="Permalink to "canAttackLandUnits-代码简介""></a></h4><p>代码:canAttackLandUnits 中文释义:可攻击表面单位 类型:逻辑布尔值LogicBoolean 隶属于:重复代码组</p><h4 id="canattacklandunits-要点指示" tabindex="-1">canAttackLandUnits-要点指示 <a class="header-anchor" href="#canattacklandunits-要点指示" aria-label="Permalink to "canAttackLandUnits-要点指示""></a></h4><p>设置该炮塔是否能对地面目标攻击</p><h4 id="canattacklandunits-演示例子" tabindex="-1">canAttackLandUnits-演示例子 <a class="header-anchor" href="#canattacklandunits-演示例子" aria-label="Permalink to "canAttackLandUnits-演示例子""></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;">[turret_1]</span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;">canAttackLandUnits:if self.ammo>=2</span></span></code></pre></div><hr><h3 id="canattackflyingunits" tabindex="-1">canAttackFlyingUnits <a class="header-anchor" href="#canattackflyingunits" aria-label="Permalink to "canAttackFlyingUnits""></a></h3><h4 id="canattackflyingunits-代码简介" tabindex="-1">canAttackFlyingUnits-代码简介 <a class="header-anchor" href="#canattackflyingunits-代码简介" aria-label="Permalink to "canAttackFlyingUnits-代码简介""></a></h4><p>代码:canAttackFlyingUnits 中文释义:可攻击空中单位 类型:逻辑布尔值LogicBoolean 隶属于:重复代码组</p><h4 id="canattackflyingunits-要点指示" tabindex="-1">canAttackFlyingUnits-要点指示 <a class="header-anchor" href="#canattackflyingunits-要点指示" aria-label="Permalink to "canAttackFlyingUnits-要点指示""></a></h4><p>设置该炮塔是否能对空中目标攻击</p><h4 id="canattackflyingunits-演示例子" tabindex="-1">canAttackFlyingUnits-演示例子 <a class="header-anchor" href="#canattackflyingunits-演示例子" aria-label="Permalink to "canAttackFlyingUnits-演示例子""></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;">[turret_1]</span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;">canAttackFlyingUnits:if self.ammo>=2</span></span></code></pre></div><hr><h3 id="canattackunderwaterunits" tabindex="-1">canAttackUnderwaterUnits <a class="header-anchor" href="#canattackunderwaterunits" aria-label="Permalink to "canAttackUnderwaterUnits""></a></h3><h4 id="canattackunderwaterunits-代码简介" tabindex="-1">canAttackUnderwaterUnits-代码简介 <a class="header-anchor" href="#canattackunderwaterunits-代码简介" aria-label="Permalink to "canAttackUnderwaterUnits-代码简介""></a></h4><p>代码:canAttackUnderwaterUnits 中文释义:可攻击水下单位 类型:逻辑布尔值LogicBoolean 隶属于:重复代码组</p><h4 id="canattackunderwaterunits-要点指示" tabindex="-1">canAttackUnderwaterUnits-要点指示 <a class="header-anchor" href="#canattackunderwaterunits-要点指示" aria-label="Permalink to "canAttackUnderwaterUnits-要点指示""></a></h4><p>设置该炮塔是否能对潜水目标攻击</p><h4 id="canattackunderwaterunits-演示例子" tabindex="-1">canAttackUnderwaterUnits-演示例子 <a class="header-anchor" href="#canattackunderwaterunits-演示例子" aria-label="Permalink to "canAttackUnderwaterUnits-演示例子""></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;">[turret_1]</span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;">canAttackUnderwaterUnits:if self.ammo>=2</span></span></code></pre></div><hr><h3 id="canattacknottouchingwaterunits" tabindex="-1">canAttackNotTouchingWaterUnits <a class="header-anchor" href="#canattacknottouchingwaterunits" aria-label="Permalink to "canAttackNotTouchingWaterUnits""></a></h3><h4 id="canattacknottouchingwaterunits-代码简介" tabindex="-1">canAttackNotTouchingWaterUnits-代码简介 <a class="header-anchor" href="#canattacknottouchingwaterunits-代码简介" aria-label="Permalink to "canAttackNotTouchingWaterUnits-代码简介""></a></h4><p>代码:canAttackNotTouchingWaterUnits 中文释义:可攻击非接触水单位 类型:逻辑布尔值LogicBoolean 隶属于:重复代码组</p><h4 id="canattacknottouchingwaterunits-要点指示" tabindex="-1">canAttackNotTouchingWaterUnits-要点指示 <a class="header-anchor" href="#canattacknottouchingwaterunits-要点指示" aria-label="Permalink to "canAttackNotTouchingWaterUnits-要点指示""></a></h4><p>设置该炮塔是否能对不在水中的目标攻击</p><h4 id="canattacknottouchingwaterunits-演示例子" tabindex="-1">canAttackNotTouchingWaterUnits-演示例子 <a class="header-anchor" href="#canattacknottouchingwaterunits-演示例子" aria-label="Permalink to "canAttackNotTouchingWaterUnits-演示例子""></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;">[turret_1]</span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;">canAttackNotTouchingWaterUnits:if self.ammo>=2</span></span></code></pre></div><hr><h3 id="limitingrange" tabindex="-1">limitingRange <a class="header-anchor" href="#limitingrange" aria-label="Permalink to "limitingRange""></a></h3><h4 id="limitingrange-代码简介" tabindex="-1">limitingRange-代码简介 <a class="header-anchor" href="#limitingrange-代码简介" aria-label="Permalink to "limitingRange-代码简介""></a></h4><p>代码:limitingRange 中文释义:限制范围 类型:整数int 隶属于:重复代码组</p><h4 id="limitingrange-要点指示" tabindex="-1">limitingRange-要点指示 <a class="header-anchor" href="#limitingrange-要点指示" aria-label="Permalink to "limitingRange-要点指示""></a></h4><p>设置该炮塔的攻击距离,不能超过maxAttackRange</p><h4 id="limitingrange-演示例子" tabindex="-1">limitingRange-演示例子 <a class="header-anchor" href="#limitingrange-演示例子" aria-label="Permalink to "limitingRange-演示例子""></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;">[turret_1]</span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;">limitingRange:1000</span></span></code></pre></div><hr><h3 id="aimoffsetspread" tabindex="-1">aimOffsetSpread <a class="header-anchor" href="#aimoffsetspread" aria-label="Permalink to "aimOffsetSpread""></a></h3><h4 id="aimoffsetspread-代码简介" tabindex="-1">aimOffsetSpread-代码简介 <a class="header-anchor" href="#aimoffsetspread-代码简介" aria-label="Permalink to "aimOffsetSpread-代码简介""></a></h4><p>代码:aimOffsetSpread 中文释义:攻击偏移 类型:浮点值float 隶属于:重复代码组</p><h4 id="aimoffsetspread-要点指示" tabindex="-1">aimOffsetSpread-要点指示 <a class="header-anchor" href="#aimoffsetspread-要点指示" aria-label="Permalink to "aimOffsetSpread-要点指示""></a></h4><p>攻击时按照敌人半径乘对应值进行位置偏移,填0时攻击中心</p><h4 id="aimoffsetspread-演示例子" tabindex="-1">aimOffsetSpread-演示例子 <a class="header-anchor" href="#aimoffsetspread-演示例子" aria-label="Permalink to "aimOffsetSpread-演示例子""></a></h4><div class="language-ini"><button title="Copy Code" class="copy"></button><span class="lang">ini</span><pre class="shiki material-theme-palenight"><code><span class="line"><span style="color:#89DDFF;">[turret_1]</span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;">aimOffsetSpread:0.6</span></span></code></pre></div><hr><h3 id="delay" tabindex="-1">delay <a class="header-anchor" href="#delay" aria-label="Permalink to "delay""></a></h3><h4 id="delay-代码简介" tabindex="-1">delay-代码简介 <a class="header-anchor" href="#delay-代码简介" aria-label="Permalink to "delay-代码简介""></a></h4><p>代码:limitingRange 中文释义:开火间隔 类型:浮点数float 隶属于:重复代码组</p><h4 id="delay-要点指示" tabindex="-1">delay-要点指示 <a class="header-anchor" href="#delay-要点指示" aria-label="Permalink to "delay-要点指示""></a></h4><p>设置该炮塔的开火间隔,按帧计时,60帧为1秒</p><h4 id="delay-演示例子" tabindex="-1">delay-演示例子 <a class="header-anchor" href="#delay-演示例子" aria-label="Permalink to "delay-演示例子""></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;">[turret_1]</span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;">delay:60</span></span></code></pre></div><hr><h3 id="size" tabindex="-1">size <a class="header-anchor" href="#size" aria-label="Permalink to "size""></a></h3><h4 id="size-代码简介" tabindex="-1">size-代码简介 <a class="header-anchor" href="#size-代码简介" aria-label="Permalink to "size-代码简介""></a></h4><p>代码:size 中文释义:攻击偏移 类型:浮点值float 隶属于:重复代码组</p><h4 id="size-要点指示" tabindex="-1">size-要点指示 <a class="header-anchor" href="#size-要点指示" aria-label="Permalink to "size-要点指示""></a></h4><p>将炮塔开火位置进行y偏移,不能与barrelY一起使用</p><h4 id="size-演示例子" tabindex="-1">size-演示例子 <a class="header-anchor" href="#size-演示例子" aria-label="Permalink to "size-演示例子""></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;">[turret_1]</span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;">size:20</span></span></code></pre></div><hr><h3 id="turnspeed" tabindex="-1">turnSpeed <a class="header-anchor" href="#turnspeed" aria-label="Permalink to "turnSpeed""></a></h3><h4 id="turnspeed-代码简介" tabindex="-1">turnSpeed-代码简介 <a class="header-anchor" href="#turnspeed-代码简介" aria-label="Permalink to "turnSpeed-代码简介""></a></h4><p>代码:turnSpeed 中文释义:炮塔转速 类型:浮点数float 隶属于:重复代码组</p><h4 id="turnspeed-要点指示" tabindex="-1">turnSpeed-要点指示 <a class="header-anchor" href="#turnspeed-要点指示" aria-label="Permalink to "turnSpeed-要点指示""></a></h4><p>设置该炮塔的旋转速度,按帧旋转,每帧转动此数值,如填1是1秒旋转60度</p><h4 id="turnspeed-演示例子" tabindex="-1">turnSpeed-演示例子 <a class="header-anchor" href="#turnspeed-演示例子" aria-label="Permalink to "turnSpeed-演示例子""></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;">[turret_1]</span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;">turnSpeed:1</span></span></code></pre></div><hr><h3 id="showrangeuiguide" tabindex="-1">showRangeUIGuide <a class="header-anchor" href="#showrangeuiguide" aria-label="Permalink to "showRangeUIGuide""></a></h3><h4 id="showrangeuiguide-代码简介" tabindex="-1">showRangeUIGuide-代码简介 <a class="header-anchor" href="#showrangeuiguide-代码简介" aria-label="Permalink to "showRangeUIGuide-代码简介""></a></h4><p>代码:turnSpeed 中文释义:显示范围 类型:布尔值bool 隶属于:重复代码组</p><h4 id="showrangeuiguide-要点指示" tabindex="-1">showRangeUIGuide-要点指示 <a class="header-anchor" href="#showrangeuiguide-要点指示" aria-label="Permalink to "showRangeUIGuide-要点指示""></a></h4><p>设置是否显示该炮塔的范围</p><h4 id="showrangeuiguide-演示例子" tabindex="-1">showRangeUIGuide-演示例子 <a class="header-anchor" href="#showrangeuiguide-演示例子" aria-label="Permalink to "showRangeUIGuide-演示例子""></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;">[turret_1]</span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;">showRangeUIGuide:true</span></span></code></pre></div><hr><h2 id="第二类-基础代码组" tabindex="-1">第二类-基础代码组 <a class="header-anchor" href="#第二类-基础代码组" aria-label="Permalink to "第二类-基础代码组""></a></h2><h3 id="x-y" tabindex="-1">x y <a class="header-anchor" href="#x-y" aria-label="Permalink to "x y""></a></h3><h4 id="x-y-代码简介" tabindex="-1">x y-代码简介 <a class="header-anchor" href="#x-y-代码简介" aria-label="Permalink to "x y-代码简介""></a></h4><p>代码:x y 中文释义:坐标X 坐标Y 类型:浮点数float 隶属于:基础代码组</p><h4 id="x-y-要点指示" tabindex="-1">x y-要点指示 <a class="header-anchor" href="#x-y-要点指示" aria-label="Permalink to "x y-要点指示""></a></h4><p>设置该炮塔相对单位中心的位置</p><h4 id="x-y-演示例子" tabindex="-1">x y-演示例子 <a class="header-anchor" href="#x-y-演示例子" aria-label="Permalink to "x y-演示例子""></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;">[turret_1]</span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;">x:10</span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;">y:10</span></span></code></pre></div><hr><h3 id="height" tabindex="-1">height <a class="header-anchor" href="#height" aria-label="Permalink to "height""></a></h3><h4 id="height-代码简介" tabindex="-1">height-代码简介 <a class="header-anchor" href="#height-代码简介" aria-label="Permalink to "height-代码简介""></a></h4><p>代码:height 中文释义:高度 类型:浮点数float 隶属于:基础代码组</p><h4 id="height-要点指示" tabindex="-1">height-要点指示 <a class="header-anchor" href="#height-要点指示" aria-label="Permalink to "height-要点指示""></a></h4><p>设置该炮塔的高度,同时链接此炮塔的炮塔也会受影响</p><h4 id="height-演示例子" tabindex="-1">height-演示例子 <a class="header-anchor" href="#height-演示例子" aria-label="Permalink to "height-演示例子""></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;">[turret_1]</span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;">height:10</span></span></code></pre></div><hr><h3 id="copyfrom" tabindex="-1">copyFrom <a class="header-anchor" href="#copyfrom" aria-label="Permalink to "copyFrom""></a></h3><h4 id="copyfrom-代码简介" tabindex="-1">copyFrom-代码简介 <a class="header-anchor" href="#copyfrom-代码简介" aria-label="Permalink to "copyFrom-代码简介""></a></h4><p>代码:copyFrom 中文释义:复制数据自 类型:炮塔turret 隶属于:基础代码组</p><h4 id="copyfrom-要点指示" tabindex="-1">copyFrom-要点指示 <a class="header-anchor" href="#copyfrom-要点指示" aria-label="Permalink to "copyFrom-要点指示""></a></h4><p>复制此炮塔的数据并使用此数据,可被覆盖</p><h4 id="copyfrom-演示例子" tabindex="-1">copyFrom-演示例子 <a class="header-anchor" href="#copyfrom-演示例子" aria-label="Permalink to "copyFrom-演示例子""></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;">[turret_1]</span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;">copyFrom:2</span></span></code></pre></div><hr><h3 id="projectile" tabindex="-1">projectile <a class="header-anchor" href="#projectile" aria-label="Permalink to "projectile""></a></h3><h4 id="projectile-代码简介" tabindex="-1">projectile-代码简介 <a class="header-anchor" href="#projectile-代码简介" aria-label="Permalink to "projectile-代码简介""></a></h4><p>代码:projectile 中文释义:抛射体 类型:抛射体projectile 隶属于:基础代码组</p><h4 id="projectile-要点指示" tabindex="-1">projectile-要点指示 <a class="header-anchor" href="#projectile-要点指示" aria-label="Permalink to "projectile-要点指示""></a></h4><p>炮塔使用此抛射体,如不填写则默认使用最前排的抛射体</p><h4 id="projectile-演示例子" tabindex="-1">projectile-演示例子 <a class="header-anchor" href="#projectile-演示例子" aria-label="Permalink to "projectile-演示例子""></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;">[turret_1]</span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;">projectile:1</span></span></code></pre></div><hr><h3 id="altprojectile" tabindex="-1">altProjectile <a class="header-anchor" href="#altprojectile" aria-label="Permalink to "altProjectile""></a></h3><h4 id="altprojectile-代码简介" tabindex="-1">altProjectile-代码简介 <a class="header-anchor" href="#altprojectile-代码简介" aria-label="Permalink to "altProjectile-代码简介""></a></h4><p>代码:altProjectile 中文释义:关联抛射体 类型:抛射体projectile 隶属于:基础代码组</p><h4 id="altprojectile-要点指示" tabindex="-1">altProjectile-要点指示 <a class="header-anchor" href="#altprojectile-要点指示" aria-label="Permalink to "altProjectile-要点指示""></a></h4><p>炮塔额外关联此抛射体,如altProjectileCondition输出true,则使用此抛射体,否则使用默认projectile</p><h4 id="altprojectile-演示例子" tabindex="-1">altProjectile-演示例子 <a class="header-anchor" href="#altprojectile-演示例子" aria-label="Permalink to "altProjectile-演示例子""></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;">[turret_1]</span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;">altProjectile:2</span></span></code></pre></div><hr><h3 id="altprojectilecondition" tabindex="-1">altProjectileCondition <a class="header-anchor" href="#altprojectilecondition" aria-label="Permalink to "altProjectileCondition""></a></h3><h4 id="altprojectilecondition-代码简介" tabindex="-1">altProjectileCondition-代码简介 <a class="header-anchor" href="#altprojectilecondition-代码简介" aria-label="Permalink to "altProjectileCondition-代码简介""></a></h4><p>代码:altProjectileCondition 中文释义:关联抛射体条件 类型:逻辑布尔值LogicBoolean 隶属于:基础代码组</p><h4 id="altprojectilecondition-要点指示" tabindex="-1">altProjectileCondition-要点指示 <a class="header-anchor" href="#altprojectilecondition-要点指示" aria-label="Permalink to "altProjectileCondition-要点指示""></a></h4><p>此逻辑输出true时该炮塔使用altProjectile抛射体,否则使用projectile抛射体</p><h4 id="altprojectilecondition-演示例子" tabindex="-1">altProjectileCondition-演示例子 <a class="header-anchor" href="#altprojectilecondition-演示例子" aria-label="Permalink to "altProjectileCondition-演示例子""></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;">[turret_1]</span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;">altProjectileCondition:if self.ammo>=2</span></span></code></pre></div><hr><h3 id="barrelx-barrely" tabindex="-1">barrelX barrelY <a class="header-anchor" href="#barrelx-barrely" aria-label="Permalink to "barrelX barrelY""></a></h3><h4 id="barrelx-barrely-代码简介" tabindex="-1">barrelX barrelY-代码简介 <a class="header-anchor" href="#barrelx-barrely-代码简介" aria-label="Permalink to "barrelX barrelY-代码简介""></a></h4><p>代码:barrelX barrelY 中文释义:炮塔开火位置 类型:浮点值float 隶属于:基础代码组</p><h4 id="barrelx-barrely-要点指示" tabindex="-1">barrelX barrelY-要点指示 <a class="header-anchor" href="#barrelx-barrely-要点指示" aria-label="Permalink to "barrelX barrelY-要点指示""></a></h4><p>炮塔开火位置X偏移 炮塔开火位置Y偏移 barrelY不能和size一起使用</p><h4 id="barrelx-barrelytion-演示例子" tabindex="-1">barrelX barrelYtion-演示例子 <a class="header-anchor" href="#barrelx-barrelytion-演示例子" aria-label="Permalink to "barrelX barrelYtion-演示例子""></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;">[turret_1]</span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;">barrelX:10</span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;">barrelY:10</span></span></code></pre></div><hr><h3 id="barrelheight" tabindex="-1">barrelHeight <a class="header-anchor" href="#barrelheight" aria-label="Permalink to "barrelHeight""></a></h3><h4 id="barrelheight-代码简介" tabindex="-1">barrelHeight-代码简介 <a class="header-anchor" href="#barrelheight-代码简介" aria-label="Permalink to "barrelHeight-代码简介""></a></h4><p>代码:barrelHeight 中文释义:开火位置高度偏移 类型:浮点值float 隶属于:基础代码组</p><h4 id="barrelheight-要点指示" tabindex="-1">barrelHeight-要点指示 <a class="header-anchor" href="#barrelheight-要点指示" aria-label="Permalink to "barrelHeight-要点指示""></a></h4><p>炮塔开火位置高度偏移</p><h4 id="barrelheight-演示例子" tabindex="-1">barrelHeight-演示例子 <a class="header-anchor" href="#barrelheight-演示例子" aria-label="Permalink to "barrelHeight-演示例子""></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;">[turret_1]</span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;">barrelHeight:20</span></span></code></pre></div><hr><h3 id="turnspeedacceleration-turnspeeddeceleration" tabindex="-1">turnSpeedAcceleration turnSpeedDeceleration <a class="header-anchor" href="#turnspeedacceleration-turnspeeddeceleration" aria-label="Permalink to "turnSpeedAcceleration turnSpeedDeceleration""></a></h3><h4 id="turnspeedacceleration-turnspeeddeceleration-代码简介" tabindex="-1">turnSpeedAcceleration turnSpeedDeceleration-代码简介 <a class="header-anchor" href="#turnspeedacceleration-turnspeeddeceleration-代码简介" aria-label="Permalink to "turnSpeedAcceleration turnSpeedDeceleration-代码简介""></a></h4><p>代码:turnSpeedAcceleration 中文释义:炮塔加速度/减速度 类型:浮点值float 隶属于:基础代码组</p><h4 id="turnspeedacceleration-turnspeeddeceleration-要点指示" tabindex="-1">turnSpeedAcceleration turnSpeedDeceleration-要点指示 <a class="header-anchor" href="#turnspeedacceleration-turnspeeddeceleration-要点指示" aria-label="Permalink to "turnSpeedAcceleration turnSpeedDeceleration-要点指示""></a></h4><p>炮塔旋转加速度/减速度,按帧加速/减速</p><h4 id="turnspeedacceleration-turnspeeddeceleration-演示例子" tabindex="-1">turnSpeedAcceleration turnSpeedDeceleration-演示例子 <a class="header-anchor" href="#turnspeedacceleration-turnspeeddeceleration-演示例子" aria-label="Permalink to "turnSpeedAcceleration turnSpeedDeceleration-演示例子""></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;">[turret_1]</span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;">turnSpeedAcceleration:1</span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;">turnSpeedDeceleration:1</span></span></code></pre></div><hr><h3 id="idledir" tabindex="-1">idleDir <a class="header-anchor" href="#idledir" aria-label="Permalink to "idleDir""></a></h3><h4 id="idledir-代码简介" tabindex="-1">idleDir-代码简介 <a class="header-anchor" href="#idledir-代码简介" aria-label="Permalink to "idleDir-代码简介""></a></h4><p>代码:idleDir 中文释义:闲置角度偏移 类型:浮点值float 隶属于:基础代码组</p><h4 id="idledir-要点指示" tabindex="-1">idleDir-要点指示 <a class="header-anchor" href="#idledir-要点指示" aria-label="Permalink to "idleDir-要点指示""></a></h4><p>炮塔闲置时的角度偏移</p><h4 id="idledir-演示例子" tabindex="-1">idleDir-演示例子 <a class="header-anchor" href="#idledir-演示例子" aria-label="Permalink to "idleDir-演示例子""></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;">[turret_1]</span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;">idleDir:20</span></span></code></pre></div><hr><h3 id="idledirreversing" tabindex="-1">idleDirReversing <a class="header-anchor" href="#idledirreversing" aria-label="Permalink to "idleDirReversing""></a></h3><h4 id="idledirreversing-代码简介" tabindex="-1">idleDirReversing-代码简介 <a class="header-anchor" href="#idledirreversing-代码简介" aria-label="Permalink to "idleDirReversing-代码简介""></a></h4><p>代码:idleDirReversing 中文释义:允许角度偏移反转 类型:布尔值bool 隶属于:基础代码组</p><h4 id="idledirreversing-要点指示" tabindex="-1">idleDirReversing-要点指示 <a class="header-anchor" href="#idledirreversing-要点指示" aria-label="Permalink to "idleDirReversing-要点指示""></a></h4><p>允许单位反转后炮塔偏移角度也反转,如果该炮塔写了隶属和链接则无效</p><h4 id="idledirreversing-演示例子" tabindex="-1">idleDirReversing-演示例子 <a class="header-anchor" href="#idledirreversing-演示例子" aria-label="Permalink to "idleDirReversing-演示例子""></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;">[turret_1]</span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;">idleDirReversing:true</span></span></code></pre></div><hr><h3 id="shouldresetturret" tabindex="-1">shouldResetTurret <a class="header-anchor" href="#shouldresetturret" aria-label="Permalink to "shouldResetTurret""></a></h3><h4 id="shouldresetturret-代码简介" tabindex="-1">shouldResetTurret-代码简介 <a class="header-anchor" href="#shouldresetturret-代码简介" aria-label="Permalink to "shouldResetTurret-代码简介""></a></h4><p>代码:shouldResetTurret 中文释义:空闲时自动复位 类型:布尔值bool 隶属于:基础代码组</p><h4 id="shouldresetturret-要点指示" tabindex="-1">shouldResetTurret-要点指示 <a class="header-anchor" href="#shouldresetturret-要点指示" aria-label="Permalink to "shouldResetTurret-要点指示""></a></h4><p>设置该炮塔在空闲时自动复位</p><h4 id="shouldresetturret-演示例子" tabindex="-1">shouldResetTurret-演示例子 <a class="header-anchor" href="#shouldresetturret-演示例子" aria-label="Permalink to "shouldResetTurret-演示例子""></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;">[turret_1]</span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;">shouldResetTurret:true</span></span></code></pre></div><hr><h3 id="idlesweepangle" tabindex="-1">idleSweepAngle <a class="header-anchor" href="#idlesweepangle" aria-label="Permalink to "idleSweepAngle""></a></h3><h4 id="idlesweepangle-代码简介" tabindex="-1">idleSweepAngle-代码简介 <a class="header-anchor" href="#idlesweepangle-代码简介" aria-label="Permalink to "idleSweepAngle-代码简介""></a></h4><p>代码:idleSweepAngle 中文释义:空闲扫描角度 类型:浮点值float 隶属于:基础代码组</p><h4 id="idlesweepangle-要点指示" tabindex="-1">idleSweepAngle-要点指示 <a class="header-anchor" href="#idlesweepangle-要点指示" aria-label="Permalink to "idleSweepAngle-要点指示""></a></h4><p>空闲时炮塔扫描的角度,如原版炮塔</p><h4 id="idlesweepangle-演示例子" tabindex="-1">idleSweepAngle-演示例子 <a class="header-anchor" href="#idlesweepangle-演示例子" aria-label="Permalink to "idleSweepAngle-演示例子""></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;">[turret_1]</span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;">idleSweepAngle:60</span></span></code></pre></div><hr><h3 id="idlesweepdelay" tabindex="-1">idleSweepDelay <a class="header-anchor" href="#idlesweepdelay" aria-label="Permalink to "idleSweepDelay""></a></h3><h4 id="idlesweepdelay-代码简介" tabindex="-1">idleSweepDelay-代码简介 <a class="header-anchor" href="#idlesweepdelay-代码简介" aria-label="Permalink to "idleSweepDelay-代码简介""></a></h4><p>代码:idleSweepAngle 中文释义:空闲扫描间隔 类型:浮点值float 隶属于:基础代码组</p><h4 id="idlesweepdelay-要点指示" tabindex="-1">idleSweepDelay-要点指示 <a class="header-anchor" href="#idlesweepdelay-要点指示" aria-label="Permalink to "idleSweepDelay-要点指示""></a></h4><p>空闲时炮塔扫描的间隔,按帧计时</p><h4 id="idlesweepdelay-演示例子" tabindex="-1">idleSweepDelay-演示例子 <a class="header-anchor" href="#idlesweepdelay-演示例子" aria-label="Permalink to "idleSweepDelay-演示例子""></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;">[turret_1]</span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;">idleSweepDelay:60</span></span></code></pre></div><hr><h3 id="idlesweepspeed" tabindex="-1">idleSweepSpeed <a class="header-anchor" href="#idlesweepspeed" aria-label="Permalink to "idleSweepSpeed""></a></h3><h4 id="idlesweepspeed-代码简介" tabindex="-1">idleSweepSpeed-代码简介 <a class="header-anchor" href="#idlesweepspeed-代码简介" aria-label="Permalink to "idleSweepSpeed-代码简介""></a></h4><p>代码:idleSweepSpeed 中文释义:空闲扫描速度 类型:浮点值float 隶属于:基础代码组</p><h4 id="idlesweepspeed-要点指示" tabindex="-1">idleSweepSpeed-要点指示 <a class="header-anchor" href="#idlesweepspeed-要点指示" aria-label="Permalink to "idleSweepSpeed-要点指示""></a></h4><p>空闲时炮塔扫描的速度,每帧移动的度数</p><h4 id="idlesweepspeed-演示例子" tabindex="-1">idleSweepSpeed-演示例子 <a class="header-anchor" href="#idlesweepspeed-演示例子" aria-label="Permalink to "idleSweepSpeed-演示例子""></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;">[turret_1]</span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;">idleSweepSpeed:1</span></span></code></pre></div><hr><h3 id="idlesweepcondition" tabindex="-1">idleSweepCondition <a class="header-anchor" href="#idlesweepcondition" aria-label="Permalink to "idleSweepCondition""></a></h3><h4 id="idlesweepcondition-代码简介" tabindex="-1">idleSweepCondition-代码简介 <a class="header-anchor" href="#idlesweepcondition-代码简介" aria-label="Permalink to "idleSweepCondition-代码简介""></a></h4><p>代码:idleSweepCondition 中文释义:空闲扫描条件 类型:逻辑布尔值LogicBoolean 隶属于:基础代码组</p><h4 id="altprojectilecondition-要点指示-1" tabindex="-1">altProjectileCondition-要点指示 <a class="header-anchor" href="#altprojectilecondition-要点指示-1" aria-label="Permalink to "altProjectileCondition-要点指示""></a></h4><p>空闲扫描需要的条件</p><h4 id="idlesweepcondition-演示例子" tabindex="-1">idleSweepCondition-演示例子 <a class="header-anchor" href="#idlesweepcondition-演示例子" aria-label="Permalink to "idleSweepCondition-演示例子""></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;">[turret_1]</span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;">idleSweepCondition:if self.ammo>=2</span></span></code></pre></div><hr><h3 id="idlesweepaddrandomangle" tabindex="-1">idleSweepAddRandomAngle <a class="header-anchor" href="#idlesweepaddrandomangle" aria-label="Permalink to "idleSweepAddRandomAngle""></a></h3><h4 id="idlesweepaddrandomangle-代码简介" tabindex="-1">idleSweepAddRandomAngle-代码简介 <a class="header-anchor" href="#idlesweepaddrandomangle-代码简介" aria-label="Permalink to "idleSweepAddRandomAngle-代码简介""></a></h4><p>代码:idleSweepAddRandomAngle 中文释义:空闲扫描随机角度 类型:浮点值float 隶属于:基础代码组</p><h4 id="idlesweepaddrandomangle-要点指示" tabindex="-1">idleSweepAddRandomAngle-要点指示 <a class="header-anchor" href="#idlesweepaddrandomangle-要点指示" aria-label="Permalink to "idleSweepAddRandomAngle-要点指示""></a></h4><p>空闲时炮塔扫描的随机角度</p><h4 id="idlesweepaddrandomangle-演示例子" tabindex="-1">idleSweepAddRandomAngle-演示例子 <a class="header-anchor" href="#idlesweepaddrandomangle-演示例子" aria-label="Permalink to "idleSweepAddRandomAngle-演示例子""></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;">[turret_1]</span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;">idleSweepAddRandomAngle:60</span></span></code></pre></div><hr><h3 id="idlesweepaddrandomdelay" tabindex="-1">idleSweepAddRandomDelay <a class="header-anchor" href="#idlesweepaddrandomdelay" aria-label="Permalink to "idleSweepAddRandomDelay""></a></h3><h4 id="idlesweepaddrandomdelay-代码简介" tabindex="-1">idleSweepAddRandomDelay-代码简介 <a class="header-anchor" href="#idlesweepaddrandomdelay-代码简介" aria-label="Permalink to "idleSweepAddRandomDelay-代码简介""></a></h4><p>代码:idleSweepAddRandomDelay 中文释义:空闲扫描随机间隔 类型:浮点值float 隶属于:基础代码组</p><h4 id="idlesweepaddrandomdelay-要点指示" tabindex="-1">idleSweepAddRandomDelay-要点指示 <a class="header-anchor" href="#idlesweepaddrandomdelay-要点指示" aria-label="Permalink to "idleSweepAddRandomDelay-要点指示""></a></h4><p>空闲时炮塔扫描的随机间隔,按帧计时</p><h4 id="idlesweepaddrandomdelay-演示例子" tabindex="-1">idleSweepAddRandomDelay-演示例子 <a class="header-anchor" href="#idlesweepaddrandomdelay-演示例子" aria-label="Permalink to "idleSweepAddRandomDelay-演示例子""></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;">[turret_1]</span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;">idleSweepAddRandomDelay:60</span></span></code></pre></div><hr><h3 id="attachedto" tabindex="-1">attachedTo <a class="header-anchor" href="#attachedto" aria-label="Permalink to "attachedTo""></a></h3><h4 id="attachedto-代码简介" tabindex="-1">attachedTo-代码简介 <a class="header-anchor" href="#attachedto-代码简介" aria-label="Permalink to "attachedTo-代码简介""></a></h4><p>代码:attachedTo 中文释义:链接 类型:炮塔turret 隶属于:基础代码组</p><h4 id="attachedto-要点指示" tabindex="-1">attachedTo-要点指示 <a class="header-anchor" href="#attachedto-要点指示" aria-label="Permalink to "attachedTo-要点指示""></a></h4><p>链接到此炮塔,原点重定位至此炮塔</p><h4 id="attachedto-演示例子" tabindex="-1">attachedTo-演示例子 <a class="header-anchor" href="#attachedto-演示例子" aria-label="Permalink to "attachedTo-演示例子""></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;">[turret_1]</span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;">attachedTo:1</span></span></code></pre></div><hr><h3 id="slave" tabindex="-1">slave <a class="header-anchor" href="#slave" aria-label="Permalink to "slave""></a></h3><h4 id="slave-代码简介" tabindex="-1">slave-代码简介 <a class="header-anchor" href="#slave-代码简介" aria-label="Permalink to "slave-代码简介""></a></h4><p>代码:slave 中文释义:隶属 类型:布尔值bool 隶属于:基础代码组</p><h4 id="slave-要点指示" tabindex="-1">slave-要点指示 <a class="header-anchor" href="#slave-要点指示" aria-label="Permalink to "slave-要点指示""></a></h4><p>与attachedTo一起使用,用于让炮塔与链接的炮塔一起旋转</p><h4 id="slave-演示例子" tabindex="-1">slave-演示例子 <a class="header-anchor" href="#slave-演示例子" aria-label="Permalink to "slave-演示例子""></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;">[turret_1]</span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;">slave:true</span></span></code></pre></div><hr><h3 id="ismainnanoturret" tabindex="-1">isMainNanoTurret <a class="header-anchor" href="#ismainnanoturret" aria-label="Permalink to "isMainNanoTurret""></a></h3><h4 id="ismainnanoturret-代码简介" tabindex="-1">isMainNanoTurret-代码简介 <a class="header-anchor" href="#ismainnanoturret-代码简介" aria-label="Permalink to "isMainNanoTurret-代码简介""></a></h4><p>代码:isMainNanoTurret 中文释义:是主构建炮塔 类型:布尔值bool 隶属于:基础代码组</p><h4 id="ismainnanoturret-要点指示" tabindex="-1">isMainNanoTurret-要点指示 <a class="header-anchor" href="#ismainnanoturret-要点指示" aria-label="Permalink to "isMainNanoTurret-要点指示""></a></h4><p>将炮塔设定为用于修复/建造的炮塔 只能有一个主构建炮塔</p><h4 id="ismainnanoturret-演示例子" tabindex="-1">isMainNanoTurret-演示例子 <a class="header-anchor" href="#ismainnanoturret-演示例子" aria-label="Permalink to "isMainNanoTurret-演示例子""></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;">[turret_1]</span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;">isMainNanoTurret:true</span></span></code></pre></div><hr><h3 id="energyusage" tabindex="-1">energyUsage <a class="header-anchor" href="#energyusage" aria-label="Permalink to "energyUsage""></a></h3><h4 id="energyusage-代码简介" tabindex="-1">energyUsage-代码简介 <a class="header-anchor" href="#energyusage-代码简介" aria-label="Permalink to "energyUsage-代码简介""></a></h4><p>代码:energyUsage 中文释义:能量需求 类型:浮点值float 隶属于:基础代码组</p><h4 id="energyusage-要点指示" tabindex="-1">energyUsage-要点指示 <a class="header-anchor" href="#energyusage-要点指示" aria-label="Permalink to "energyUsage-要点指示""></a></h4><p>炮塔攻击需要的能量,攻击后扣除,能量不够时无法攻击</p><h4 id="energyusage-演示例子" tabindex="-1">energyUsage-演示例子 <a class="header-anchor" href="#energyusage-演示例子" aria-label="Permalink to "energyUsage-演示例子""></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;">[turret_1]</span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;">energyUsage:60</span></span></code></pre></div><hr><h3 id="resourceusage" tabindex="-1">resourceUsage <a class="header-anchor" href="#resourceusage" aria-label="Permalink to "resourceUsage""></a></h3><h4 id="resourceusage-代码简介" tabindex="-1">resourceUsage-代码简介 <a class="header-anchor" href="#resourceusage-代码简介" aria-label="Permalink to "resourceUsage-代码简介""></a></h4><p>代码:resourceUsage 中文释义: 类型:资源resource 隶属于:基础代码组</p><h4 id="resourceusage-要点指示" tabindex="-1">resourceUsage-要点指示 <a class="header-anchor" href="#resourceusage-要点指示" aria-label="Permalink to "resourceUsage-要点指示""></a></h4><p>攻击后扣除的资源,即使资源不足也能攻击</p><h4 id="resourceusage-演示例子" tabindex="-1">resourceUsage-演示例子 <a class="header-anchor" href="#resourceusage-演示例子" aria-label="Permalink to "resourceUsage-演示例子""></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;">[turret_1]</span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;">resourceUsage:资源=60,</span><span style="color:#F07178;">ammo</span><span style="color:#89DDFF;">=</span><span style="color:#A6ACCD;">60</span></span></code></pre></div><hr><h3 id="linkdelaywithturret" tabindex="-1">linkDelayWithTurret <a class="header-anchor" href="#linkdelaywithturret" aria-label="Permalink to "linkDelayWithTurret""></a></h3><h4 id="linkdelaywithturret-代码简介" tabindex="-1">linkDelayWithTurret-代码简介 <a class="header-anchor" href="#linkdelaywithturret-代码简介" aria-label="Permalink to "linkDelayWithTurret-代码简介""></a></h4><p>代码:linkDelayWithTurret 中文释义:链接间隔 类型:炮塔turret 隶属于:基础代码组</p><h4 id="linkdelaywithturret-要点指示" tabindex="-1">linkDelayWithTurret-要点指示 <a class="header-anchor" href="#linkdelaywithturret-要点指示" aria-label="Permalink to "linkDelayWithTurret-要点指示""></a></h4><p>链接的炮塔攻击后重置炮塔攻击间隔,与预热一起使用可以做出交替开火的效果</p><h4 id="linkdelaywithturret-演示例子" tabindex="-1">linkDelayWithTurret-演示例子 <a class="header-anchor" href="#linkdelaywithturret-演示例子" aria-label="Permalink to "linkDelayWithTurret-演示例子""></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;">[turret_1]</span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;">linkDelayWithTurret:1</span></span></code></pre></div><hr><h3 id="warmup" tabindex="-1">warmup <a class="header-anchor" href="#warmup" aria-label="Permalink to "warmup""></a></h3><h4 id="warmup-代码简介" tabindex="-1">warmup-代码简介 <a class="header-anchor" href="#warmup-代码简介" aria-label="Permalink to "warmup-代码简介""></a></h4><p>代码:warmup 中文释义:预热 类型:浮点值float 隶属于:基础代码组</p><h4 id="warmup-要点指示" tabindex="-1">warmup-要点指示 <a class="header-anchor" href="#warmup-要点指示" aria-label="Permalink to "warmup-要点指示""></a></h4><p>炮塔蓄力的时间,停止攻击时归零,按帧计时</p><h4 id="warmup-演示例子" tabindex="-1">warmup-演示例子 <a class="header-anchor" href="#warmup-演示例子" aria-label="Permalink to "warmup-演示例子""></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;">[turret_1]</span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;">warmup:60</span></span></code></pre></div><hr><h3 id="warmupcalldownrate" tabindex="-1">warmupCallDownRate <a class="header-anchor" href="#warmupcalldownrate" aria-label="Permalink to "warmupCallDownRate""></a></h3><h4 id="warmupcalldownrate-代码简介" tabindex="-1">warmupCallDownRate-代码简介 <a class="header-anchor" href="#warmupcalldownrate-代码简介" aria-label="Permalink to "warmupCallDownRate-代码简介""></a></h4><p>代码:warmupCallDownRate 中文释义:预热下降速度 类型:浮点值float 隶属于:基础代码组</p><h4 id="warmupcalldownrate-要点指示" tabindex="-1">warmupCallDownRate-要点指示 <a class="header-anchor" href="#warmupcalldownrate-要点指示" aria-label="Permalink to "warmupCallDownRate-要点指示""></a></h4><p>停止攻击时预热的降低速度,按帧下降 需要warmupNoReset:true</p><h4 id="warmupcalldownrate-演示例子" tabindex="-1">warmupCallDownRate-演示例子 <a class="header-anchor" href="#warmupcalldownrate-演示例子" aria-label="Permalink to "warmupCallDownRate-演示例子""></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;">[turret_1]</span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;">warmupCallDownRate:1</span></span></code></pre></div><hr><h3 id="warmupnoreset" tabindex="-1">warmupNoReset <a class="header-anchor" href="#warmupnoreset" aria-label="Permalink to "warmupNoReset""></a></h3><h4 id="warmupnoreset-代码简介" tabindex="-1">warmupNoReset-代码简介 <a class="header-anchor" href="#warmupnoreset-代码简介" aria-label="Permalink to "warmupNoReset-代码简介""></a></h4><p>代码:warmupNoReset 中文释义:预热不重置 类型:布尔值bool 隶属于:基础代码组</p><h4 id="warmupnoreset-要点指示" tabindex="-1">warmupNoReset-要点指示 <a class="header-anchor" href="#warmupnoreset-要点指示" aria-label="Permalink to "warmupNoReset-要点指示""></a></h4><p>默认为false,停止攻击时炮塔预热不会归零 填true时warmupCallDownRate会生效并降低预热</p><h4 id="warmupnoreset-演示例子" tabindex="-1">warmupNoReset-演示例子 <a class="header-anchor" href="#warmupnoreset-演示例子" aria-label="Permalink to "warmupNoReset-演示例子""></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;">[turret_1]</span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;">warmupNoReset:true</span></span></code></pre></div><hr><h3 id="warmupshootdelaytransfer" tabindex="-1">warmupShootDelayTransfer <a class="header-anchor" href="#warmupshootdelaytransfer" aria-label="Permalink to "warmupShootDelayTransfer""></a></h3><h4 id="warmupshootdelaytransfer-代码简介" tabindex="-1">warmupShootDelayTransfer-代码简介 <a class="header-anchor" href="#warmupshootdelaytransfer-代码简介" aria-label="Permalink to "warmupShootDelayTransfer-代码简介""></a></h4><p>代码:warmupShootDelayTransfer 中文释义:开火间隔过渡 类型:浮点值float 隶属于:基础代码组</p><h4 id="warmupshootdelaytransfer-要点指示" tabindex="-1">warmupShootDelayTransfer-要点指示 <a class="header-anchor" href="#warmupshootdelaytransfer-要点指示" aria-label="Permalink to "warmupShootDelayTransfer-要点指示""></a></h4><p>按炮塔蓄力的时间,与攻击间隔进行相减 填写正数时会让攻击间隔缩短 相减为负数时会自动取绝对值 填写负数时会让攻击间隔延长</p><h4 id="warmupshootdelaytransfer-演示例子" tabindex="-1">warmupShootDelayTransfer-演示例子 <a class="header-anchor" href="#warmupshootdelaytransfer-演示例子" aria-label="Permalink to "warmupShootDelayTransfer-演示例子""></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;">[turret_1]</span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;">warmupShootDelayTransfer:60</span></span></code></pre></div><details class="details custom-block"><summary>Details</summary><p>delay:30-攻击间隔为0.5秒 warmupShootDelayTransfer:120-攻击间隔降低2秒 最后得出数据为-1.5秒-攻击间隔为1.5秒</p></details><hr><h3 id="onshoot-freezebodymovementfor" tabindex="-1">onShoot_freezeBodyMovementFor <a class="header-anchor" href="#onshoot-freezebodymovementfor" aria-label="Permalink to "onShoot_freezeBodyMovementFor""></a></h3><h4 id="onshoot-freezebodymovementfor-代码简介" tabindex="-1">onShoot_freezeBodyMovementFor-代码简介 <a class="header-anchor" href="#onshoot-freezebodymovementfor-代码简介" aria-label="Permalink to "onShoot_freezeBodyMovementFor-代码简介""></a></h4><p>代码:onShoot_freezeBodyMovementFor 中文释义:射击时冻结主体 类型:浮点值float 隶属于:基础代码组</p><h4 id="onshoot-freezebodymovementfor-要点指示" tabindex="-1">onShoot_freezeBodyMovementFor-要点指示 <a class="header-anchor" href="#onshoot-freezebodymovementfor-要点指示" aria-label="Permalink to "onShoot_freezeBodyMovementFor-要点指示""></a></h4><p>攻击后冻结主体的时间,按帧计时</p><h4 id="onshoot-freezebodymovementfor-演示例子" tabindex="-1">onShoot_freezeBodyMovementFor-演示例子 <a class="header-anchor" href="#onshoot-freezebodymovementfor-演示例子" aria-label="Permalink to "onShoot_freezeBodyMovementFor-演示例子""></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;">[turret_1]</span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;">onShoot_freezeBodyMovementFor:60</span></span></code></pre></div><hr><h3 id="barreloffsetx-onoddshots" tabindex="-1">barrelOffsetX_onOddShots <a class="header-anchor" href="#barreloffsetx-onoddshots" aria-label="Permalink to "barrelOffsetX_onOddShots""></a></h3><h4 id="barreloffsetx-onoddshots-代码简介" tabindex="-1">barrelOffsetX_onOddShots-代码简介 <a class="header-anchor" href="#barreloffsetx-onoddshots-代码简介" aria-label="Permalink to "barrelOffsetX_onOddShots-代码简介""></a></h4><p>代码:barrelOffsetX_onOddShots 中文释义:射击时炮塔偏移 类型:浮点值float 隶属于:基础代码组</p><h4 id="barreloffsetx-onoddshots-要点指示" tabindex="-1">barrelOffsetX_onOddShots-要点指示 <a class="header-anchor" href="#barreloffsetx-onoddshots-要点指示" aria-label="Permalink to "barrelOffsetX_onOddShots-要点指示""></a></h4><p>攻击时炮塔角度偏移量,用于单个炮塔使用多炮管图像时让炮管偏移 如原版T2机枪塔T3机枪塔,炮管越多效果越差</p><h4 id="barreloffsetx-onoddshots-演示例子" tabindex="-1">barrelOffsetX_onOddShots-演示例子 <a class="header-anchor" href="#barreloffsetx-onoddshots-演示例子" aria-label="Permalink to "barrelOffsetX_onOddShots-演示例子""></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;">[turret_1]</span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;">barrelOffsetX_onOddShots:10</span></span></code></pre></div><hr><h3 id="canattackcondition" tabindex="-1">canAttackCondition <a class="header-anchor" href="#canattackcondition" aria-label="Permalink to "canAttackCondition""></a></h3><h4 id="canattackcondition-代码简介" tabindex="-1">canAttackCondition-代码简介 <a class="header-anchor" href="#canattackcondition-代码简介" aria-label="Permalink to "canAttackCondition-代码简介""></a></h4><p>代码:canAttackCondition 中文释义:攻击条件 类型:逻辑布尔值LogicBoolean 隶属于:基础代码组</p><h4 id="canattackcondition-要点指示" tabindex="-1">canAttackCondition-要点指示 <a class="header-anchor" href="#canattackcondition-要点指示" aria-label="Permalink to "canAttackCondition-要点指示""></a></h4><p>设置该炮塔攻击需要的额外条件 输出false时无法攻击</p><h4 id="canattackcondition-演示例子" tabindex="-1">canAttackCondition-演示例子 <a class="header-anchor" href="#canattackcondition-演示例子" aria-label="Permalink to "canAttackCondition-演示例子""></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;">[turret_1]</span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;">canAttackCondition:if self.ammo>=2</span></span></code></pre></div><hr><h3 id="clearturrettargetafterfiring" tabindex="-1">clearTurretTargetAfterFiring <a class="header-anchor" href="#clearturrettargetafterfiring" aria-label="Permalink to "clearTurretTargetAfterFiring""></a></h3><h4 id="clearturrettargetafterfiring-代码简介" tabindex="-1">clearTurretTargetAfterFiring-代码简介 <a class="header-anchor" href="#clearturrettargetafterfiring-代码简介" aria-label="Permalink to "clearTurretTargetAfterFiring-代码简介""></a></h4><p>代码:clearTurretTargetAfterFiring 中文释义:攻击后重置炮塔目标 类型:布尔值bool 隶属于:重复代码组</p><h4 id="clearturrettargetafterfiring-要点指示" tabindex="-1">clearTurretTargetAfterFiring-要点指示 <a class="header-anchor" href="#clearturrettargetafterfiring-要点指示" aria-label="Permalink to "clearTurretTargetAfterFiring-要点指示""></a></h4><p>炮塔攻击后重置目标</p><h4 id="clearturrettargetafterfiring-演示例子" tabindex="-1">clearTurretTargetAfterFiring-演示例子 <a class="header-anchor" href="#clearturrettargetafterfiring-演示例子" aria-label="Permalink to "clearTurretTargetAfterFiring-演示例子""></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;">[turret_1]</span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;">clearTurretTargetAfterFiring:true</span></span></code></pre></div><hr><h3 id="limitingangle" tabindex="-1">limitingAngle <a class="header-anchor" href="#limitingangle" aria-label="Permalink to "limitingAngle""></a></h3><h4 id="limitingangle-代码简介" tabindex="-1">limitingAngle-代码简介 <a class="header-anchor" href="#limitingangle-代码简介" aria-label="Permalink to "limitingAngle-代码简介""></a></h4><p>代码:limitingAngle 中文释义:限制角度 类型:浮点值float 隶属于:基础代码组</p><h4 id="limitingangle-要点指示" tabindex="-1">limitingAngle-要点指示 <a class="header-anchor" href="#limitingangle-要点指示" aria-label="Permalink to "limitingAngle-要点指示""></a></h4><p>与idleDir配合使用,炮塔只能以+/-此角度进行攻击。 如idleDir:0的炮塔,此数值填写90则可以旋转到[-90,90]这个区间的任意角度</p><h4 id="limitingangle-演示例子" tabindex="-1">limitingAngle-演示例子 <a class="header-anchor" href="#limitingangle-演示例子" aria-label="Permalink to "limitingAngle-演示例子""></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;">[turret_1]</span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;">limitingAngle:30</span></span></code></pre></div><hr><h3 id="limitingminrange" tabindex="-1">limitingMinRange <a class="header-anchor" href="#limitingminrange" aria-label="Permalink to "limitingMinRange""></a></h3><h4 id="limitingminrange-代码简介" tabindex="-1">limitingMinRange-代码简介 <a class="header-anchor" href="#limitingminrange-代码简介" aria-label="Permalink to "limitingMinRange-代码简介""></a></h4><p>代码:limitingMinRange 中文释义:最小范围 类型:浮点值float 隶属于:基础代码组</p><h4 id="limitingminrange-要点指示" tabindex="-1">limitingMinRange-要点指示 <a class="header-anchor" href="#limitingminrange-要点指示" aria-label="Permalink to "limitingMinRange-要点指示""></a></h4><p>设置炮塔不能攻击此范围内的敌人</p><h4 id="limitingminrange-演示例子" tabindex="-1">limitingMinRange-演示例子 <a class="header-anchor" href="#limitingminrange-演示例子" aria-label="Permalink to "limitingMinRange-演示例子""></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;">[turret_1]</span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;">limitingMinRange:30</span></span></code></pre></div><hr><h3 id="canattackmaxangle" tabindex="-1">canAttackMaxAngle <a class="header-anchor" href="#canattackmaxangle" aria-label="Permalink to "canAttackMaxAngle""></a></h3><h4 id="canattackmaxangle-代码简介" tabindex="-1">canAttackMaxAngle-代码简介 <a class="header-anchor" href="#canattackmaxangle-代码简介" aria-label="Permalink to "canAttackMaxAngle-代码简介""></a></h4><p>代码:canAttackMaxAngle 中文释义:最大可攻击角度 类型:浮点值float 隶属于:基础代码组</p><h4 id="canattackmaxangle-要点指示" tabindex="-1">canAttackMaxAngle-要点指示 <a class="header-anchor" href="#canattackmaxangle-要点指示" aria-label="Permalink to "canAttackMaxAngle-要点指示""></a></h4><p>设置炮塔可攻击的角度,默认为15 填写181可以实现全角度攻击</p><h4 id="canattackmaxangle-演示例子" tabindex="-1">canAttackMaxAngle-演示例子 <a class="header-anchor" href="#canattackmaxangle-演示例子" aria-label="Permalink to "canAttackMaxAngle-演示例子""></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;">[turret_1]</span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;">canAttackMaxAngle:30</span></span></code></pre></div><hr><h3 id="interceptprojectiles-withtags" tabindex="-1">interceptProjectiles_withTags <a class="header-anchor" href="#interceptprojectiles-withtags" aria-label="Permalink to "interceptProjectiles_withTags""></a></h3><h4 id="interceptprojectiles-withtags-代码简介" tabindex="-1">interceptProjectiles_withTags-代码简介 <a class="header-anchor" href="#interceptprojectiles-withtags-代码简介" aria-label="Permalink to "interceptProjectiles_withTags-代码简介""></a></h4><p>代码:interceptProjectiles_withTags 中文释义:拦截抛射体需要标签 类型:标签tags 隶属于:基础代码组</p><h4 id="interceptprojectiles-withtags-要点指示" tabindex="-1">interceptProjectiles_withTags-要点指示 <a class="header-anchor" href="#interceptprojectiles-withtags-要点指示" aria-label="Permalink to "interceptProjectiles_withTags-要点指示""></a></h4><p>设置拦截的抛射体携带的标签 拥有此标签的抛射体才能触发并进行拦截</p><h4 id="interceptprojectiles-withtags-演示例子" tabindex="-1">interceptProjectiles_withTags-演示例子 <a class="header-anchor" href="#interceptprojectiles-withtags-演示例子" aria-label="Permalink to "interceptProjectiles_withTags-演示例子""></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;">[turret_1]</span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;">interceptProjectiles_withTags:标签</span></span></code></pre></div><hr><h3 id="interceptprojectiles-andtargetinggroundunderdistance" tabindex="-1">interceptProjectiles_andTargetingGroundUnderDistance <a class="header-anchor" href="#interceptprojectiles-andtargetinggroundunderdistance" aria-label="Permalink to "interceptProjectiles_andTargetingGroundUnderDistance""></a></h3><h4 id="interceptprojectiles-andtargetinggroundunderdistance-代码简介" tabindex="-1">interceptProjectiles_andTargetingGroundUnderDistance-代码简介 <a class="header-anchor" href="#interceptprojectiles-andtargetinggroundunderdistance-代码简介" aria-label="Permalink to "interceptProjectiles_andTargetingGroundUnderDistance-代码简介""></a></h4><p>代码:interceptProjectiles_andTargetingGroundUnderDistance 中文释义:拦截抛射体检索范围 类型:浮点值float 隶属于:基础代码组</p><h4 id="interceptprojectiles-andtargetinggroundunderdistance-要点指示" tabindex="-1">interceptProjectiles_andTargetingGroundUnderDistance-要点指示 <a class="header-anchor" href="#interceptprojectiles-andtargetinggroundunderdistance-要点指示" aria-label="Permalink to "interceptProjectiles_andTargetingGroundUnderDistance-要点指示""></a></h4><p>设置拦截抛射体的范围 携带对应标签的抛射体落点在此范围内才会拦截</p><h4 id="interceptprojectiles-andtargetinggroundunderdistance-演示例子" tabindex="-1">interceptProjectiles_andTargetingGroundUnderDistance-演示例子 <a class="header-anchor" href="#interceptprojectiles-andtargetinggroundunderdistance-演示例子" aria-label="Permalink to "interceptProjectiles_andTargetingGroundUnderDistance-演示例子""></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;">[turret_1]</span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;">interceptProjectiles_andTargetingGroundUnderDistance:1000</span></span></code></pre></div><hr><h3 id="interceptprojectiles-andunderdistance" tabindex="-1">interceptProjectiles_andUnderDistance <a class="header-anchor" href="#interceptprojectiles-andunderdistance" aria-label="Permalink to "interceptProjectiles_andUnderDistance""></a></h3><h4 id="interceptprojectiles-andunderdistance-代码简介" tabindex="-1">interceptProjectiles_andUnderDistance-代码简介 <a class="header-anchor" href="#interceptprojectiles-andunderdistance-代码简介" aria-label="Permalink to "interceptProjectiles_andUnderDistance-代码简介""></a></h4><p>代码:interceptProjectiles_andUnderDistance 中文释义:拦截抛射体攻击范围 类型:浮点值float 隶属于:基础代码组</p><h4 id="interceptprojectiles-andunderdistance-要点指示" tabindex="-1">interceptProjectiles_andUnderDistance-要点指示 <a class="header-anchor" href="#interceptprojectiles-andunderdistance-要点指示" aria-label="Permalink to "interceptProjectiles_andUnderDistance-要点指示""></a></h4><p>设置拦截抛射体攻击范围 携带对应标签的抛射体进入此范围就会进行拦截</p><h4 id="interceptprojectiles-andunderdistance-演示例子" tabindex="-1">interceptProjectiles_andUnderDistance-演示例子 <a class="header-anchor" href="#interceptprojectiles-andunderdistance-演示例子" aria-label="Permalink to "interceptProjectiles_andUnderDistance-演示例子""></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;">[turret_1]</span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;">interceptProjectiles_andUnderDistance:2000</span></span></code></pre></div><hr><h3 id="interceptprojectiles-andoverheight" tabindex="-1">interceptProjectiles_andOverHeight <a class="header-anchor" href="#interceptprojectiles-andoverheight" aria-label="Permalink to "interceptProjectiles_andOverHeight""></a></h3><h4 id="interceptprojectiles-andoverheight-代码简介" tabindex="-1">interceptProjectiles_andOverHeight-代码简介 <a class="header-anchor" href="#interceptprojectiles-andoverheight-代码简介" aria-label="Permalink to "interceptProjectiles_andOverHeight-代码简介""></a></h4><p>代码:interceptProjectiles_withTags 中文释义:拦截抛射体高度 类型:浮点值float 隶属于:基础代码组</p><h4 id="interceptprojectiles-andoverheight-要点指示" tabindex="-1">interceptProjectiles_andOverHeight-要点指示 <a class="header-anchor" href="#interceptprojectiles-andoverheight-要点指示" aria-label="Permalink to "interceptProjectiles_andOverHeight-要点指示""></a></h4><p>设置拦截抛射体时,发射的抛射体初始爬升的高度</p><h4 id="interceptprojectiles-andoverheight-演示例子" tabindex="-1">interceptProjectiles_andOverHeight-演示例子 <a class="header-anchor" href="#interceptprojectiles-andoverheight-演示例子" aria-label="Permalink to "interceptProjectiles_andOverHeight-演示例子""></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;">[turret_1]</span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;">interceptProjectiles_andOverHeight:50</span></span></code></pre></div><hr><h3 id="interceptprojectile-removetargetlifeonly" tabindex="-1">interceptProjectile_removeTargetLifeOnly <a class="header-anchor" href="#interceptprojectile-removetargetlifeonly" aria-label="Permalink to "interceptProjectile_removeTargetLifeOnly""></a></h3><h4 id="interceptprojectile-removetargetlifeonly-代码简介" tabindex="-1">interceptProjectile_removeTargetLifeOnly-代码简介 <a class="header-anchor" href="#interceptprojectile-removetargetlifeonly-代码简介" aria-label="Permalink to "interceptProjectile_removeTargetLifeOnly-代码简介""></a></h4><p>代码:interceptProjectile_removeTargetLifeOnly 中文释义:拦截抛射体移除目标存活时间 类型:布尔值bool 隶属于:基础代码组</p><h4 id="interceptprojectile-removetargetlifeonly-要点指示" tabindex="-1">interceptProjectile_removeTargetLifeOnly-要点指示 <a class="header-anchor" href="#interceptprojectile-removetargetlifeonly-要点指示" aria-label="Permalink to "interceptProjectile_removeTargetLifeOnly-要点指示""></a></h4><p>设置被击中的抛射体可爆炸或分裂。用于设定命中抛射体时是否执行分裂逻辑。</p><h4 id="interceptprojectile-removetargetlifeonly-演示例子" tabindex="-1">interceptProjectile_removeTargetLifeOnly-演示例子 <a class="header-anchor" href="#interceptprojectile-removetargetlifeonly-演示例子" aria-label="Permalink to "interceptProjectile_removeTargetLifeOnly-演示例子""></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;">[turret_1]</span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;">interceptProjectile_removeTargetLifeOnly:true</span></span></code></pre></div><hr><h3 id="laserdefenceenergyuse" tabindex="-1">laserDefenceEnergyUse <a class="header-anchor" href="#laserdefenceenergyuse" aria-label="Permalink to "laserDefenceEnergyUse""></a></h3><h4 id="laserdefenceenergyuse-代码简介" tabindex="-1">laserDefenceEnergyUse-代码简介 <a class="header-anchor" href="#laserdefenceenergyuse-代码简介" aria-label="Permalink to "laserDefenceEnergyUse-代码简介""></a></h4><p>代码:laserDefenceEnergyUse 中文释义:激光防御能量需求 类型:浮点数float 隶属于:基础代码组</p><h4 id="laserdefenceenergyuse-要点指示" tabindex="-1">laserDefenceEnergyUse-要点指示 <a class="header-anchor" href="#laserdefenceenergyuse-要点指示" aria-label="Permalink to "laserDefenceEnergyUse-要点指示""></a></h4><p>拦截1次抛射体消耗的能量</p><h4 id="laserdefenceenergyuse-演示例子" tabindex="-1">laserDefenceEnergyUse-演示例子 <a class="header-anchor" href="#laserdefenceenergyuse-演示例子" aria-label="Permalink to "laserDefenceEnergyUse-演示例子""></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;">[turret_1]</span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;">laserDefenceEnergyUse:1</span></span></code></pre></div><hr><h3 id="laserdefenceenergyuse-1" tabindex="-1">laserDefenceEnergyUse <a class="header-anchor" href="#laserdefenceenergyuse-1" aria-label="Permalink to "laserDefenceEnergyUse""></a></h3><h4 id="laserdefenceenergyuse-代码简介-1" tabindex="-1">laserDefenceEnergyUse-代码简介 <a class="header-anchor" href="#laserdefenceenergyuse-代码简介-1" aria-label="Permalink to "laserDefenceEnergyUse-代码简介""></a></h4><p>代码:laserDefenceEnergyUse 中文释义:激光防御能量需求 类型:浮点数float 隶属于:基础代码组</p><h4 id="laserdefenceenergyuse-要点指示-1" tabindex="-1">laserDefenceEnergyUse-要点指示 <a class="header-anchor" href="#laserdefenceenergyuse-要点指示-1" aria-label="Permalink to "laserDefenceEnergyUse-要点指示""></a></h4><p>拦截1次抛射体消耗的能量</p><h4 id="laserdefenceenergyuse-演示例子-1" tabindex="-1">laserDefenceEnergyUse-演示例子 <a class="header-anchor" href="#laserdefenceenergyuse-演示例子-1" aria-label="Permalink to "laserDefenceEnergyUse-演示例子""></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;">[turret_1]</span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;">laserDefenceEnergyUse:1</span></span></code></pre></div><hr><h2 id="第三类-显示相关组" tabindex="-1">第三类-显示相关组 <a class="header-anchor" href="#第三类-显示相关组" aria-label="Permalink to "第三类-显示相关组""></a></h2><h3 id="invisible" tabindex="-1">invisible <a class="header-anchor" href="#invisible" aria-label="Permalink to "invisible""></a></h3><h4 id="invisible-代码简介" tabindex="-1">invisible-代码简介 <a class="header-anchor" href="#invisible-代码简介" aria-label="Permalink to "invisible-代码简介""></a></h4><p>代码:invisible 中文释义:隐藏图像 类型:逻辑布尔值LogicBoolean 隶属于:显示相关组</p><h4 id="invisible-要点指示" tabindex="-1">invisible-要点指示 <a class="header-anchor" href="#invisible-要点指示" aria-label="Permalink to "invisible-要点指示""></a></h4><p>是否隐藏炮塔图像</p><h4 id="invisible-演示例子" tabindex="-1">invisible-演示例子 <a class="header-anchor" href="#invisible-演示例子" aria-label="Permalink to "invisible-演示例子""></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;">[turret_1]</span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;">invisible:if self.ammo<=2</span></span></code></pre></div><hr><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 中文释义:主体图像 类型:图像png 隶属于:显示相关组</p><h4 id="image-要点指示" tabindex="-1">image-要点指示 <a class="header-anchor" href="#image-要点指示" aria-label="Permalink to "image-要点指示""></a></h4><p>炮塔图像</p><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;">[turret_1]</span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;">image:png.png</span></span></code></pre></div><hr><h3 id="image-applyteamcolors" tabindex="-1">image_applyTeamColors <a class="header-anchor" href="#image-applyteamcolors" aria-label="Permalink to "image_applyTeamColors""></a></h3><h4 id="image-applyteamcolors-代码简介" tabindex="-1">image_applyTeamColors-代码简介 <a class="header-anchor" href="#image-applyteamcolors-代码简介" aria-label="Permalink to "image_applyTeamColors-代码简介""></a></h4><p>代码:image_applyTeamColors 中文释义:隐藏图像 类型:逻辑布尔值LogicBoolean 隶属于:显示相关组</p><h4 id="image-applyteamcolors-要点指示" tabindex="-1">image_applyTeamColors-要点指示 <a class="header-anchor" href="#image-applyteamcolors-要点指示" aria-label="Permalink to "image_applyTeamColors-要点指示""></a></h4><p>炮塔图像是否使用阵营色</p><h4 id="image-applyteamcolors-演示例子" tabindex="-1">image_applyTeamColors-演示例子 <a class="header-anchor" href="#image-applyteamcolors-演示例子" aria-label="Permalink to "image_applyTeamColors-演示例子""></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;">[turret_1]</span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;">image_applyTeamColors:true</span></span></code></pre></div><hr><h3 id="image-drawoffsetx-image-drawoffsety" tabindex="-1">image_drawOffsetX/image_drawOffsetY <a class="header-anchor" href="#image-drawoffsetx-image-drawoffsety" aria-label="Permalink to "image_drawOffsetX/image_drawOffsetY""></a></h3><h4 id="image-drawoffsetx-image-drawoffsety-代码简介" tabindex="-1">image_drawOffsetX/image_drawOffsetY-代码简介 <a class="header-anchor" href="#image-drawoffsetx-image-drawoffsety-代码简介" aria-label="Permalink to "image_drawOffsetX/image_drawOffsetY-代码简介""></a></h4><p>代码:image_drawOffsetX/image_drawOffsetY 中文释义:图像x偏移/图像y偏移 类型:浮点数float 隶属于:显示相关组</p><h4 id="image-drawoffsetx-image-drawoffsety-要点指示" tabindex="-1">image_drawOffsetX/image_drawOffsetY-要点指示 <a class="header-anchor" href="#image-drawoffsetx-image-drawoffsety-要点指示" aria-label="Permalink to "image_drawOffsetX/image_drawOffsetY-要点指示""></a></h4><p>图像偏移x或y,不影响炮塔属性</p><h4 id="image-drawoffsetx-image-drawoffsety-演示例子" tabindex="-1">image_drawOffsetX/image_drawOffsetY-演示例子 <a class="header-anchor" href="#image-drawoffsetx-image-drawoffsety-演示例子" aria-label="Permalink to "image_drawOffsetX/image_drawOffsetY-演示例子""></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;">[turret_1]</span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;">image_drawOffsetX:20</span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;">image_drawOffsetY:20</span></span></code></pre></div><hr><h3 id="chargeeffectimage" tabindex="-1">chargeEffectImage <a class="header-anchor" href="#chargeeffectimage" aria-label="Permalink to "chargeEffectImage""></a></h3><h4 id="chargeeffectimage-代码简介" tabindex="-1">chargeEffectImage-代码简介 <a class="header-anchor" href="#chargeeffectimage-代码简介" aria-label="Permalink to "chargeEffectImage-代码简介""></a></h4><p>代码:chargeEffectImage 中文释义:蓄力图像 类型:图像png 隶属于:显示相关组</p><h4 id="chargeeffectimage-要点指示" tabindex="-1">chargeEffectImage-要点指示 <a class="header-anchor" href="#chargeeffectimage-要点指示" aria-label="Permalink to "chargeEffectImage-要点指示""></a></h4><p>炮塔蓄力图像,与warmup配合使用</p><h4 id="chargeeffectimage-演示例子" tabindex="-1">chargeEffectImage-演示例子 <a class="header-anchor" href="#chargeeffectimage-演示例子" aria-label="Permalink to "chargeEffectImage-演示例子""></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;">[turret_1]</span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;">chargeEffectImage:png.png</span></span></code></pre></div><hr><h3 id="warmupstarteffect" tabindex="-1">warmupStartEffect <a class="header-anchor" href="#warmupstarteffect" aria-label="Permalink to "warmupStartEffect""></a></h3><h4 id="warmupstarteffect-代码简介" tabindex="-1">warmupStartEffect-代码简介 <a class="header-anchor" href="#warmupstarteffect-代码简介" aria-label="Permalink to "warmupStartEffect-代码简介""></a></h4><p>代码:warmupStartEffect 中文释义:炮塔蓄力图像 类型:效果effect 隶属于:显示相关组</p><h4 id="warmupstarteffect-要点指示" tabindex="-1">warmupStartEffect-要点指示 <a class="header-anchor" href="#warmupstarteffect-要点指示" aria-label="Permalink to "warmupStartEffect-要点指示""></a></h4><p>蓄力时产生一次效果</p><h4 id="warmupstarteffect-演示例子" tabindex="-1">warmupStartEffect-演示例子 <a class="header-anchor" href="#warmupstarteffect-演示例子" aria-label="Permalink to "warmupStartEffect-演示例子""></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;">[turret_1]</span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;">warmupStartEffect:CUSTOM:效果</span></span></code></pre></div><hr><h3 id="shoot-sound" tabindex="-1">shoot_sound <a class="header-anchor" href="#shoot-sound" aria-label="Permalink to "shoot_sound""></a></h3><h4 id="shoot-sound-代码简介" tabindex="-1">shoot_sound-代码简介 <a class="header-anchor" href="#shoot-sound-代码简介" aria-label="Permalink to "shoot_sound-代码简介""></a></h4><p>代码:shoot_sound 中文释义:攻击音效 类型:音频wav/ogg 隶属于:显示相关组</p><h4 id="shoot-sound-要点指示" tabindex="-1">shoot_sound-要点指示 <a class="header-anchor" href="#shoot-sound-要点指示" aria-label="Permalink to "shoot_sound-要点指示""></a></h4><p>攻击时播放音频</p><h4 id="shoot-sound-演示例子" tabindex="-1">shoot_sound-演示例子 <a class="header-anchor" href="#shoot-sound-演示例子" aria-label="Permalink to "shoot_sound-演示例子""></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;">[turret_1]</span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;">shoot_sound:ogg.ogg/wav.wav</span></span></code></pre></div><hr><h3 id="shoot-sound-vol" tabindex="-1">shoot_sound_vol <a class="header-anchor" href="#shoot-sound-vol" aria-label="Permalink to "shoot_sound_vol""></a></h3><h4 id="shoot-sound-vol-代码简介" tabindex="-1">shoot_sound_vol-代码简介 <a class="header-anchor" href="#shoot-sound-vol-代码简介" aria-label="Permalink to "shoot_sound_vol-代码简介""></a></h4><p>代码:shoot_sound_vol 中文释义:攻击音效大小 类型:浮点值float 隶属于:显示相关组</p><h4 id="shoot-sound-vol-要点指示" tabindex="-1">shoot_sound_vol-要点指示 <a class="header-anchor" href="#shoot-sound-vol-要点指示" aria-label="Permalink to "shoot_sound_vol-要点指示""></a></h4><p>设置攻击时产生音效的音量大小</p><h4 id="shoot-sound-vol-演示例子" tabindex="-1">shoot_sound_vol-演示例子 <a class="header-anchor" href="#shoot-sound-vol-演示例子" aria-label="Permalink to "shoot_sound_vol-演示例子""></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;">[turret_1]</span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;">shoot_sound_vol:0.1</span></span></code></pre></div><hr><h3 id="shoot-flame" tabindex="-1">shoot_flame <a class="header-anchor" href="#shoot-flame" aria-label="Permalink to "shoot_flame""></a></h3><h4 id="shoot-flame-代码简介" tabindex="-1">shoot_flame-代码简介 <a class="header-anchor" href="#shoot-flame-代码简介" aria-label="Permalink to "shoot_flame-代码简介""></a></h4><p>代码:shoot_flame 中文释义:开火效果 类型:效果effect 隶属于:显示相关组</p><h4 id="shoot-flame-要点指示" tabindex="-1">shoot_flame-要点指示 <a class="header-anchor" href="#shoot-flame-要点指示" aria-label="Permalink to "shoot_flame-要点指示""></a></h4><p>设置开火时产生的效果</p><h4 id="shoot-flame-演示例子" tabindex="-1">shoot_flame-演示例子 <a class="header-anchor" href="#shoot-flame-演示例子" aria-label="Permalink to "shoot_flame-演示例子""></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;">[turret_1]</span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;">shoot_flame:CUSTOM:效果</span></span></code></pre></div><hr><h3 id="shoot-light" tabindex="-1">shoot_light <a class="header-anchor" href="#shoot-light" aria-label="Permalink to "shoot_light""></a></h3><h4 id="shoot-light-代码简介" tabindex="-1">shoot_light-代码简介 <a class="header-anchor" href="#shoot-light-代码简介" aria-label="Permalink to "shoot_light-代码简介""></a></h4><p>代码:shoot_light 中文释义:攻击闪光 类型:颜色码 隶属于:显示相关组</p><h4 id="shoot-light-要点指示" tabindex="-1">shoot_light-要点指示 <a class="header-anchor" href="#shoot-light-要点指示" aria-label="Permalink to "shoot_light-要点指示""></a></h4><p>设置攻击时产生闪光,颜色码排列为AARRGGBB</p><h4 id="shoot-light-演示例子" tabindex="-1">shoot_light-演示例子 <a class="header-anchor" href="#shoot-light-演示例子" aria-label="Permalink to "shoot_light-演示例子""></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;">[turret_1]</span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;">shoot_light:</span><span style="color:#676E95;font-style:italic;">#00000000</span></span></code></pre></div><hr><h3 id="idlespin" tabindex="-1">idleSpin <a class="header-anchor" href="#idlespin" aria-label="Permalink to "idleSpin""></a></h3><h4 id="idlespin-代码简介" tabindex="-1">idleSpin-代码简介 <a class="header-anchor" href="#idlespin-代码简介" aria-label="Permalink to "idleSpin-代码简介""></a></h4><p>代码:idleSpin 中文释义:闲时转速 类型:浮点值float 隶属于:显示相关组</p><h4 id="idlespin-要点指示" tabindex="-1">idleSpin-要点指示 <a class="header-anchor" href="#idlespin-要点指示" aria-label="Permalink to "idleSpin-要点指示""></a></h4><p>设置炮塔每帧转动角度,如原版萨姆导弹</p><h4 id="idlespin-演示例子" tabindex="-1">idleSpin-演示例子 <a class="header-anchor" href="#idlespin-演示例子" aria-label="Permalink to "idleSpin-演示例子""></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;">[turret_1]</span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;">idleSpin:1</span></span></code></pre></div><hr><h3 id="recoiloffset" tabindex="-1">recoilOffset <a class="header-anchor" href="#recoiloffset" aria-label="Permalink to "recoilOffset""></a></h3><h4 id="recoiloffset-代码简介" tabindex="-1">recoilOffset-代码简介 <a class="header-anchor" href="#recoiloffset-代码简介" aria-label="Permalink to "recoilOffset-代码简介""></a></h4><p>代码:recoilOffset 中文释义:后坐力大小 类型:浮点值float 隶属于:显示相关组</p><h4 id="recoiloffset-要点指示" tabindex="-1">recoilOffset-要点指示 <a class="header-anchor" href="#recoiloffset-要点指示" aria-label="Permalink to "recoilOffset-要点指示""></a></h4><p>设置炮塔在攻击后产生后坐力 填负数让炮塔后退,填正数则前进</p><h4 id="recoiloffset-演示例子" tabindex="-1">recoilOffset-演示例子 <a class="header-anchor" href="#recoiloffset-演示例子" aria-label="Permalink to "recoilOffset-演示例子""></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;">[turret_1]</span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;">recoilOffset:-5</span></span></code></pre></div><hr><h3 id="recoilouttime" tabindex="-1">recoilOutTime <a class="header-anchor" href="#recoilouttime" aria-label="Permalink to "recoilOutTime""></a></h3><h4 id="recoilouttime-代码简介" tabindex="-1">recoilOutTime-代码简介 <a class="header-anchor" href="#recoilouttime-代码简介" aria-label="Permalink to "recoilOutTime-代码简介""></a></h4><p>代码:recoilOutTime 中文释义:后坐力速度 类型:浮点值float 隶属于:显示相关组</p><h4 id="recoilouttime-要点指示" tabindex="-1">recoilOutTime-要点指示 <a class="header-anchor" href="#recoilouttime-要点指示" aria-label="Permalink to "recoilOutTime-要点指示""></a></h4><p>设置炮塔后坐力产生的速度 后坐力会在此时间完成后退/前进</p><h4 id="recoilouttime-演示例子" tabindex="-1">recoilOutTime-演示例子 <a class="header-anchor" href="#recoilouttime-演示例子" aria-label="Permalink to "recoilOutTime-演示例子""></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;">[turret_1]</span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;">recoilOutTime:7.5</span></span></code></pre></div><hr><h3 id="recoilreturntime" tabindex="-1">recoilReturnTime <a class="header-anchor" href="#recoilreturntime" aria-label="Permalink to "recoilReturnTime""></a></h3><h4 id="recoilreturntime-代码简介" tabindex="-1">recoilReturnTime-代码简介 <a class="header-anchor" href="#recoilreturntime-代码简介" aria-label="Permalink to "recoilReturnTime-代码简介""></a></h4><p>代码:recoilReturnTime 中文释义:后坐力恢复 类型:浮点值float 隶属于:显示相关组</p><h4 id="recoilreturntime-要点指示" tabindex="-1">recoilReturnTime-要点指示 <a class="header-anchor" href="#recoilreturntime-要点指示" aria-label="Permalink to "recoilReturnTime-要点指示""></a></h4><p>后坐力完成后退/前进后,复位所需要的时间 炮塔会在此时间完成复位</p><h4 id="recoilreturntime-演示例子" tabindex="-1">recoilReturnTime-演示例子 <a class="header-anchor" href="#recoilreturntime-演示例子" aria-label="Permalink to "recoilReturnTime-演示例子""></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;">[turret_1]</span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;">recoilReturnTime:15</span></span></code></pre></div><hr><h3 id="yaxisscaling" tabindex="-1">yAxisScaling <a class="header-anchor" href="#yaxisscaling" aria-label="Permalink to "yAxisScaling""></a></h3><h4 id="yaxisscaling-代码简介" tabindex="-1">yAxisScaling-代码简介 <a class="header-anchor" href="#yaxisscaling-代码简介" aria-label="Permalink to "yAxisScaling-代码简介""></a></h4><p>代码:yAxisScaling 中文释义:Y轴缩放比例 类型:浮点值float 隶属于:显示相关组</p><h4 id="yaxisscaling-要点指示" tabindex="-1">yAxisScaling-要点指示 <a class="header-anchor" href="#yaxisscaling-要点指示" aria-label="Permalink to "yAxisScaling-要点指示""></a></h4><p>多用于用于2.5D效果,也就是伪3D</p><h4 id="yaxisscaling-演示例子" tabindex="-1">yAxisScaling-演示例子 <a class="header-anchor" href="#yaxisscaling-演示例子" aria-label="Permalink to "yAxisScaling-演示例子""></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;">[turret_1]</span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;">yAxisScaling:25</span></span></code></pre></div><hr><h2 id="第四类-触发相关组" tabindex="-1">第四类-触发相关组 <a class="header-anchor" href="#第四类-触发相关组" aria-label="Permalink to "第四类-触发相关组""></a></h2><h3 id="onshoot-playanimation" tabindex="-1">onShoot_playAnimation <a class="header-anchor" href="#onshoot-playanimation" aria-label="Permalink to "onShoot_playAnimation""></a></h3><h4 id="onshoot-playanimation-代码简介" tabindex="-1">onShoot_playAnimation-代码简介 <a class="header-anchor" href="#onshoot-playanimation-代码简介" aria-label="Permalink to "onShoot_playAnimation-代码简介""></a></h4><p>代码:onShoot_playAnimation 中文释义:开火触发动画 类型:动画animation 隶属于:触发相关组</p><h4 id="onshoot-playanimation-要点指示" tabindex="-1">onShoot_playAnimation-要点指示 <a class="header-anchor" href="#onshoot-playanimation-要点指示" aria-label="Permalink to "onShoot_playAnimation-要点指示""></a></h4><p>设置炮塔攻击时播放该动画</p><h4 id="onshoot-playanimation-演示例子" tabindex="-1">onShoot_playAnimation-演示例子 <a class="header-anchor" href="#onshoot-playanimation-演示例子" aria-label="Permalink to "onShoot_playAnimation-演示例子""></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;">[turret_1]</span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;">onShoot_playAnimation:1</span></span></code></pre></div><hr><h3 id="onshoot-freezebodymovementfor-1" tabindex="-1">onShoot_freezeBodyMovementFor <a class="header-anchor" href="#onshoot-freezebodymovementfor-1" aria-label="Permalink to "onShoot_freezeBodyMovementFor""></a></h3><h4 id="onshoot-freezebodymovementfor-代码简介-1" tabindex="-1">onShoot_freezeBodyMovementFor-代码简介 <a class="header-anchor" href="#onshoot-freezebodymovementfor-代码简介-1" aria-label="Permalink to "onShoot_freezeBodyMovementFor-代码简介""></a></h4><p>代码:onShoot_freezeBodyMovementFor 中文释义:开火冻结移动 类型:浮点值float 隶属于:触发相关组</p><h4 id="onshoot-freezebodymovementfor-要点指示-1" tabindex="-1">onShoot_freezeBodyMovementFor-要点指示 <a class="header-anchor" href="#onshoot-freezebodymovementfor-要点指示-1" aria-label="Permalink to "onShoot_freezeBodyMovementFor-要点指示""></a></h4><p>设置炮塔开火后无法移动的时间,按帧计时</p><h4 id="onshoot-freezebodymovementfor-演示例子-1" tabindex="-1">onShoot_freezeBodyMovementFor-演示例子 <a class="header-anchor" href="#onshoot-freezebodymovementfor-演示例子-1" aria-label="Permalink to "onShoot_freezeBodyMovementFor-演示例子""></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;">[turret_1]</span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;">onShoot_freezeBodyMovementFor:60</span></span></code></pre></div><hr><h3 id="onshoot-triggeractions" tabindex="-1">onShoot_triggerActions <a class="header-anchor" href="#onshoot-triggeractions" aria-label="Permalink to "onShoot_triggerActions""></a></h3><h4 id="onshoot-triggeractions-代码简介" tabindex="-1">onShoot_triggerActions-代码简介 <a class="header-anchor" href="#onshoot-triggeractions-代码简介" aria-label="Permalink to "onShoot_triggerActions-代码简介""></a></h4><p>代码:onShoot_triggerActions 中文释义:开火触发行动 类型:行动action 隶属于:触发相关组</p><h4 id="onshoot-triggeractions-要点指示" tabindex="-1">onShoot_triggerActions-要点指示 <a class="header-anchor" href="#onshoot-triggeractions-要点指示" aria-label="Permalink to "onShoot_triggerActions-要点指示""></a></h4><p>设置炮塔攻击时触发的行动</p><h4 id="onshoot-triggeractions-演示例子" tabindex="-1">onShoot_triggerActions-演示例子 <a class="header-anchor" href="#onshoot-triggeractions-演示例子" aria-label="Permalink to "onShoot_triggerActions-演示例子""></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;">[turret_1]</span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;">onShoot_triggerActions:1</span></span></code></pre></div><hr><h3 id="unloaduptoxunitsandgiveattackorder" tabindex="-1">unloadUpToXUnitsAndGiveAttackOrder <a class="header-anchor" href="#unloaduptoxunitsandgiveattackorder" aria-label="Permalink to "unloadUpToXUnitsAndGiveAttackOrder""></a></h3><h4 id="unloaduptoxunitsandgiveattackorder-代码简介" tabindex="-1">unloadUpToXUnitsAndGiveAttackOrder-代码简介 <a class="header-anchor" href="#unloaduptoxunitsandgiveattackorder-代码简介" aria-label="Permalink to "unloadUpToXUnitsAndGiveAttackOrder-代码简介""></a></h4><p>代码:unloadUpToXUnitsAndGiveAttackOrder 中文释义:卸载n个单位并赋予攻击目标 类型:整数int 隶属于:触发相关组</p><h4 id="unloaduptoxunitsandgiveattackorder-要点指示" tabindex="-1">unloadUpToXUnitsAndGiveAttackOrder-要点指示 <a class="header-anchor" href="#unloaduptoxunitsandgiveattackorder-要点指示" aria-label="Permalink to "unloadUpToXUnitsAndGiveAttackOrder-要点指示""></a></h4><p>在炮塔开火处卸载n个单位 同时提供路径让它们攻击炮塔指定的目标</p><h4 id="unloaduptoxunitsandgiveattackorder-演示例子" tabindex="-1">unloadUpToXUnitsAndGiveAttackOrder-演示例子 <a class="header-anchor" href="#unloaduptoxunitsandgiveattackorder-演示例子" aria-label="Permalink to "unloadUpToXUnitsAndGiveAttackOrder-演示例子""></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;">[turret_1]</span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;">unloadUpToXUnitsAndGiveAttackOrder:1</span></span></code></pre></div><hr>`,584),l=[r];function o(s,c,h,d,p,u){return t(),e("div",null,l)}const b=a(i,[["render",o]]);export{m as __pageData,b as default};
|
1
assets/src_Unit_turret.md.149ab95e.lean.js
Normal file
|
@ -0,0 +1 @@
|
|||
import{_ as a,c as e,o as t,V as n}from"./chunks/framework.fcc0bf38.js";const m=JSON.parse('{"title":"[turret]组","description":"","frontmatter":{"outline":"deep"},"headers":[],"relativePath":"src/Unit/turret.md","filePath":"src/Unit/turret.md"}'),i={name:"src/Unit/turret.md"},r=n("",584),l=[r];function o(s,c,h,d,p,u){return t(),e("div",null,l)}const b=a(i,[["render",o]]);export{m as __pageData,b as default};
|
1
assets/style.281671c4.css
Normal file
|
@ -1 +0,0 @@
|
|||
rustedwarfareapicode.top
|
156
docs/DEV.md
|
@ -1,156 +0,0 @@
|
|||
<div style="display:flex;align-content: flex-start;flex-wrap: nowrap;flex-direction: row;justify-content: center;">
|
||||
<h1>RTS-Code-API---开发规范</h1>
|
||||
</div>
|
||||
<div style="display:flex;align-content: flex-start;flex-wrap: nowrap;flex-direction: row;justify-content: center;">
|
||||
<img src="https://rwapi-code.netlify.app/images/title.png">
|
||||
</div>
|
||||
|
||||
> [!TIP] 0.如果你确定你想<font color=orange>帮忙开发此站点</font>,<br>
|
||||
就可以点击右上角的Github按钮,<font color=orange>Clone我们的库</font>,<br>
|
||||
编写代码并进行PR申请,我非常感谢你的帮忙,感谢各位的支持与帮助。<br>
|
||||
> 1.确保代码的解释通俗易懂,能让新手迅速入门<br>2.编写的代码应该以以下格式进行:
|
||||
> <h3>代码的格式编写规范:</h3>1.代码的英文名和附属信息(参考站点已添加的代码例子)<br>
|
||||
2.代码的简介<br>
|
||||
3.代码的要点指示<br>
|
||||
4.代码的演示例子<br>
|
||||
5.代码的扩展例子(可选)<br>
|
||||
6.GIF演示/视频演示(可选)
|
||||
|
||||
> [!TIP] 使用外部资源时,请使用支持HTTPS协议的资源地址传输。<br>
|
||||
否则在<font color=orange>Google Chrome等一系列以CEF的内核</font>上会因为强制替换HTTPS导致资源无法打开。
|
||||
|
||||
> [!WARNING] 不能使用过于高深的说明,严禁出现谜语人话语,无用话语,任何玩梗,
|
||||
夹带私货等一系列与本站无关的东西,违者将不能通过<font color=green>PR审核</font>
|
||||
|
||||
> [!WARNING] 有一些代码或许有一些新的写法,或该写法可能已经废弃,如果遇到这些代码,编写者需要注明,并提供推荐代码。
|
||||
|
||||
!> 为了更好的方便一起编写站点的贡献者,本站点提供了以下的<font color=green>扩展MD格式供各位书写</font>
|
||||
|
||||
#### MD扩展格式:
|
||||
```bash
|
||||
!> 注意文本
|
||||
?> 小提示文本
|
||||
> [!WARNING] 警告文本
|
||||
> [!NOTE] 笔记文本
|
||||
> [!TIP] 重要提示文本
|
||||
> [!ATTENTION] 不推荐文本
|
||||
|
||||
注意:以下必须在START-END内进行使用才能生效,
|
||||
且将chat后面的"*"换为空格:
|
||||
<!--chat*:start -->
|
||||
#### **tobby3600**
|
||||
我是第一个消息文本
|
||||
#### **JDSALing**
|
||||
我是第二个消息文本
|
||||
<!--chat*:end -->
|
||||
|
||||
实际生成代码:
|
||||
<!-- chat:start -->
|
||||
#### **tobby3600**
|
||||
我是第一个消息文本
|
||||
#### **JDSALing**
|
||||
我是第二个消息文本
|
||||
<!-- chat:end -->
|
||||
```
|
||||
#### 其他说明:
|
||||
有关于MarkDown的其他书写格式,请参考MD书写规范
|
||||
[MD文档参考--点我立刻学习](https://docs.github.com/zh/get-started/writing-on-github/getting-started-with-writing-and-formatting-on-github/basic-writing-and-formatting-syntax)
|
||||
|
||||
#### 附加说明:
|
||||
```txt
|
||||
由于插件众多,为避免MD格式冲突,换行建议最好使用<br>进行换行,
|
||||
如果要在一些扩展格式渲染演示,请使用<font>标签,
|
||||
```
|
||||
|
||||
#### 部署策略:
|
||||
|
||||
!> 1.本地部署
|
||||
|
||||
> [!NOTE] 如果要本地测试,请确保设备有<font color=green>Node.js</font>
|
||||
并在项目根目录使用以下命令:<br>
|
||||
> npm i docsify-cli -g<br>docsify serve docs
|
||||
|
||||
!> 2.Netlify部署
|
||||
|
||||
> [!NOTE] 如果你已经发送了PR请求,可以通过我的Netlify预览站点进行预览,<br>
|
||||
Netlify会在你的PR请求下面显示你的预览页面地址。<br>
|
||||
如下图所示,点击<b><font color=orange>😎 Deploy Preview后面的链接</font></b>即可看见效果<br>
|
||||
由于某些原因,TX会拦截Netlify的站点,请使用浏览器预览。
|
||||
|
||||
<img src="images/example.png">
|
||||
|
||||
|
||||
#### 实际格式演示:
|
||||
!> 注意文本
|
||||
|
||||
?> 小提示文本
|
||||
|
||||
> [!WARNING] 警告文本
|
||||
|
||||
> [!NOTE] 笔记文本
|
||||
|
||||
> [!TIP] 重要提示文本
|
||||
|
||||
> [!ATTENTION] 不推荐文本
|
||||
|
||||
<!-- chat:start -->
|
||||
#### **tobby3600**
|
||||
我是第一个消息文本
|
||||
#### **JDSALing**
|
||||
我是第二个消息文本
|
||||
<!-- chat:end -->
|
||||
|
||||
> [!TIP] 如果要添加你的聊天MD头像和名字,请发送Issues给我
|
||||
|
||||
#### 单位代码文档推荐格式:
|
||||
```markdown
|
||||
### xxxx
|
||||
#### xxxx-代码简介
|
||||
|
||||
?> 代码:xxxx 中文释义:xxxx 类型:xxxx 隶属于:xxxx
|
||||
|
||||
> [!TIP] xxxxxx
|
||||
|
||||
#### 视频/GIF演示---(可选)
|
||||
|
||||
#### 聊天气泡[追加内容]---(可选)
|
||||
|
||||
#### xxxx代码-演示例子
|
||||
|
||||
***ini
|
||||
xxxx
|
||||
***
|
||||
|
||||
```
|
||||
|
||||
#### 表格推荐格式
|
||||
|
||||
### 代码演示:
|
||||
|A|B|C|
|
||||
|-|-|-
|
||||
|1|2|3|
|
||||
|
||||
### 代码例子:
|
||||
|
||||
```markdown
|
||||
|A|B|C|
|
||||
|-|-|-
|
||||
|1|2|3|
|
||||
```
|
||||
|
||||
如果你仍然不会Markdown表格写法,这里给你一个链接:
|
||||
<h3><a href="https://tableconvert.com/zh-cn/markdown-to-markdown" target="_blank">TableConvert-MD-点击进入</a></h3>
|
||||
|
||||
### 扩展写法(高级)
|
||||
|
||||
有一些时候,我们可能需要在已经标记的后面再添加东西,
|
||||
但Markdown解析方式在标签后面再有一个标签就不会识别了。
|
||||
所以这里我们必须直接使用原生Html的代码,
|
||||
通过浏览器的检查元素,你应该能迅速找到模块框架,
|
||||
将它的模块元素区域复制下来,并调用。
|
||||
|
||||
<!-- MarkDown表格必须有上方的分割线以告诉浏览器是表格 -->
|
||||
|
||||
!> 该文档可能还有很多缺陷,如果你有更好的建议,请发送Issues或者PR给我。
|
||||
|
||||
?> 编写于2023-3-9 RTS-Code-API[第2版-第2次修订]
|
|
@ -1,27 +0,0 @@
|
|||
|
||||
<div style="display:flex;align-content: flex-start;flex-wrap: nowrap;flex-direction: row;justify-content: center;">
|
||||
<img src="https://rwapi-code.netlify.app/images/logo.png">
|
||||
</div>
|
||||
|
||||
|
||||
## 铁锈战争代码表1.15-API
|
||||
|
||||
## 项目鸣谢人员:
|
||||
> * Tobby3600--合作编辑LogicBoolean组代码
|
||||
> * JDSALing--提供网站编写
|
||||
> * 华夏有衣--提供Excel超级代码表
|
||||
> * Luke-Hoschke--铁锈战争开发者
|
||||
> * Cold_Mint--提供资源高速加载
|
||||
> * 王某人--提供MT基础代码高亮文件
|
||||
> * 十山月--合作编辑Action组代码
|
||||
> * 指挥中心--提供LogicBoolean组代码例子
|
||||
|
||||
# 站点简介:
|
||||
> * 本站点主要提供铁锈战争的代码API教程与指导,皆在为铁锈带来更好的Mod质量。
|
||||
> * 本站点提供--地图Mapping代码表,单位Unit代码表,调试Debug代码表。
|
||||
<div style="display:flex;align-content: flex-start;flex-wrap: nowrap;flex-direction: row;justify-content: center;">
|
||||
<font size="6px" color="#42b983">RTS-Code-API-1.15-CopyRight-2023</font>
|
||||
</div>
|
||||
|
||||
|
||||
<!-- 执行命令:docsify serve docs -->
|
|
@ -1,20 +0,0 @@
|
|||
![logo](/images/title.png)
|
||||
|
||||
|
||||
<h1 id="anchors">RustedWarfare-API Code<small>0.1 Demo</small> </h1>
|
||||
|
||||
|
||||
<h2><p id='mainx'>Rusted Warfare Code API<p><h2>
|
||||
|
||||
<h3 id="anchors">学习Mod,制作Mod,创新Mod</h3>
|
||||
<h3 id="anchors">Map Code/Unit Code/Debug Code</h3>
|
||||
<h3 id="anchors">铁锈战争代码API站点--欢迎您!</h3>
|
||||
|
||||
|
||||
[地图代码表](map_code/1.14/code)
|
||||
[调试代码表](debug_code/1.15/code)
|
||||
[RTS-Code-API文档指南](/DEV.md)
|
||||
[单位代码表](unit_code/1.15/code?id=铁锈战争-115-单位代码表-beta1)
|
||||
[致谢人员表](/README.md)
|
||||
|
||||
![](https://rwapi-code.netlify.app/images/back.png)
|
|
@ -1,11 +0,0 @@
|
|||
<!-- docs/_sidebar.md -->
|
||||
* [铁锈战争-1.15-Code-API](/README.md)
|
||||
* [单位Mod代码表](unit_code/index.md "学习铁锈战争的单位代码表")
|
||||
* [Rusted Warfare --- 1.15代码表测试版](unit_code/1.15/code.md?id=铁锈战争-115-单位代码表-beta1 "RTS-1.15的单位代码表")
|
||||
* [地图Mod代码表](map_code/index.md "学习铁锈战争的地图代码表")
|
||||
* [1.14地图代码表-Beta版](map_code/1.14/code.md "RTS-1.14的地图代码表")
|
||||
* [调试Mod代码表](debug_code/index.md "学习高级调试代码的代码表")
|
||||
* [1.15调试代码表-Beta版](debug_code/1.15/code.md "RTS-1.15的调试代码表")
|
||||
* [开放型教程中心](/comingsoon.md "敬请期待")
|
||||
* [RTS-Code-API文档指南](/DEV.md)
|
||||
* [RW-Engine文档指南](rwEngine_code/code.md)
|
|
@ -1 +0,0 @@
|
|||
AAA
|
|
@ -1,55 +0,0 @@
|
|||
<div style="display:flex;align-content: flex-start;flex-wrap: nowrap;flex-direction: row;justify-content: center;">
|
||||
<h1>RW_1.15-Debug代码表</h1>
|
||||
</div>
|
||||
|
||||
## Zero.前言:
|
||||
本教程仅适合 Moder 使用,当然一般人也可以看看,
|
||||
不过别乱调试就行。否则出问题自行重置设置或后果自负。<br>
|
||||
<font color="red">注:指令不区分大小写!</font>
|
||||
|
||||
## One.什么是高级调试Debug?
|
||||
|
||||
铁锈战争是一个多语言,有很多元素的一款游戏。
|
||||
但我们可爱的开发者Luke,设置里面远远没有包含全部游戏设置。
|
||||
在 1.14 开始,卢克偷偷加了一个 Debug 按钮并且不做任何说明与
|
||||
提示。
|
||||
我通过筛查Dex我发现了这个东西,并将资料整理出来。
|
||||
|
||||
## Two.高级调试的Debug位置:
|
||||
|
||||
<img src="https://rwapi-code.netlify.app/images/debug.png">
|
||||
|
||||
那么,这里就是高级调试指令按钮了。
|
||||
当你点了之后,你会看见一个这种界面。
|
||||
然后现在来到这个界面你就成功一半了,接下来就是如何使用这
|
||||
个界面。
|
||||
声明:下列指令全部由我 Apk 拆包分析后得出来的。仅供学习交流,切勿滥用。
|
||||
|
||||
<!-- tabs:start -->
|
||||
|
||||
# **[Debug-Nomal] 常规调试组**
|
||||
|
||||
| 1. | autosave on/off | 启用/关闭自动保存 |
|
||||
|:------:|:------------------:|:----------------:|
|
||||
| 2. | reset | 重置所有调试,但是语言不会变回来 |
|
||||
| 3. | storage reset | 恢复铁锈存储出厂设置 |
|
||||
| 4. | save logs | 保存游戏常规日志 |
|
||||
| 5. | opengl view | 启用 opengl 视图 |
|
||||
| 6. | showhpchanges on | 开启动态血条显示 |
|
||||
| 7. | showhpchanges off | 关闭动态血条显示 |
|
||||
|
||||
# **[Debug-Extra] 扩展调试组**
|
||||
|
||||
# **[Debug-Miscs] 杂项调试组**
|
||||
|
||||
<!-- | 1. | old map render | 启用旧版地图渲染 |
|
||||
|:------:|:------------------:|:----------------:|
|
||||
| 2. | surface view2 | 启用多线程曲面视图 |
|
||||
| 3. | nonsurface view | 启用非曲面视图 |
|
||||
| 4. | surface view | 启用表面视图 |
|
||||
|
||||
| 6. | watch memory | 启用内存监控 | -->
|
||||
|
||||
|
||||
|
||||
<!-- tabs:end -->
|
|
@ -1,17 +0,0 @@
|
|||
|
||||
|
||||
<div style="display:flex;align-content: flex-start;flex-wrap: nowrap;flex-direction: row;justify-content: center;">
|
||||
|
||||
<img src="https://rwapi-code.netlify.app/images/title.png">
|
||||
|
||||
</div>
|
||||
|
||||
<b><font size="5px" color="#000"> 这是来自于1.15的高级调试器的Beta版本,目前该代码表包含了全部1.15调试代码,<br><br>
|
||||
用户可以根据自己的编码能力进行学习,我建议各位从浅到深慢慢学习,并且一定要动手去试试看,不能一直看着代码表而不去动手。否则可能会事倍功半。<br>
|
||||
总之,RTS-API-CODE欢迎各位的到来。以及,本站点仍然处于建设中,如有代码遗漏之处,<br>
|
||||
请您指出并批评纠正。</font></b>
|
||||
|
||||
|
||||
<a href="#/debug_code/1.15/code.md">
|
||||
<h2 style="color:green">点击我,开始熟悉调试代码表!</h2>
|
||||
</a>
|
BIN
docs/icon.jpg
Before Width: | Height: | Size: 12 KiB |
Before Width: | Height: | Size: 88 KiB |
Before Width: | Height: | Size: 80 KiB |
Before Width: | Height: | Size: 80 KiB |
Before Width: | Height: | Size: 36 KiB |
Before Width: | Height: | Size: 966 KiB |
Before Width: | Height: | Size: 117 KiB |
Before Width: | Height: | Size: 438 KiB |
Before Width: | Height: | Size: 441 KiB |
Before Width: | Height: | Size: 409 KiB |
Before Width: | Height: | Size: 104 KiB |
Before Width: | Height: | Size: 514 KiB |
Before Width: | Height: | Size: 34 KiB |
Before Width: | Height: | Size: 89 KiB |
Before Width: | Height: | Size: 495 KiB |
Before Width: | Height: | Size: 114 KiB |
Before Width: | Height: | Size: 876 KiB |
Before Width: | Height: | Size: 102 KiB |
Before Width: | Height: | Size: 222 KiB |
Before Width: | Height: | Size: 186 KiB |
Before Width: | Height: | Size: 515 KiB |
472
docs/index.html
|
@ -1,472 +0,0 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="zh-CN">
|
||||
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title>RW-Code-API</title>
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
|
||||
<meta name="description" content="Description">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0">
|
||||
<link rel="shortcut icon" href="icon.jpg" type="image/x-icon">
|
||||
<script src="https://rustedwarfareapicode.top/js/EditMd.js"></script>
|
||||
<link rel="stylesheet" href="//cdn.jsdelivr.net/npm/docsify@4/lib/themes/vue.css">
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<div data-app id="main" style="margin: 0 auto;">
|
||||
<div class="loading">
|
||||
<h1>正在载入数据中……</h1>
|
||||
</div>
|
||||
</div>
|
||||
<noscript>
|
||||
<div class="nojs">
|
||||
<div class="nojs-content">
|
||||
<h1>⚠️ JavaScript-JS已被禁用</h1>
|
||||
<p>
|
||||
很抱歉,当你看见这个界面,代表你的浏览器可能尚未启用JS,因此我们无法构建<font color="#00cc00">[铁锈战争API-Code]</font>页面。
|
||||
</p>
|
||||
<p>
|
||||
若您确信自己已开启JS技术,那么可能是您的浏览器不支持;请使用我们为你推荐的浏览器进行使用。
|
||||
</p>
|
||||
<hr />
|
||||
<a class="nojs-btn" href="https://viayoo.com/zh-cn/" target="_blank" rel="noopener">Via-大道至简 (手机端)</a>
|
||||
<a class="nojs-btn" href="https://www.google.cn/chrome/" target="_blank" rel="noopener">Google Chrome
|
||||
(PC端)</a>
|
||||
<br /><br />
|
||||
<p>
|
||||
<h1>RTS-API-Code-2023</h1>
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
</noscript>
|
||||
<style>
|
||||
.loading {
|
||||
-webkit-text-size-adjust: 100%;
|
||||
font-size: 16px;
|
||||
text-rendering: optimizeLegibility;
|
||||
-webkit-font-smoothing: antialiased;
|
||||
-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
|
||||
box-sizing: inherit;
|
||||
padding: 0;
|
||||
margin: 0;
|
||||
position: fixed;
|
||||
top: 0;
|
||||
left: 0;
|
||||
height: 100%;
|
||||
width: 100%;
|
||||
z-index: 9999999999;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
/* JS报错页面优化升级 */
|
||||
.nojs {
|
||||
-webkit-text-size-adjust: 100%;
|
||||
font-size: 16px;
|
||||
text-rendering: optimizeLegibility;
|
||||
-webkit-font-smoothing: antialiased;
|
||||
-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
|
||||
box-sizing: inherit;
|
||||
padding: 0;
|
||||
margin: 0;
|
||||
position: fixed;
|
||||
top: 0;
|
||||
left: 0;
|
||||
height: 100%;
|
||||
width: 100%;
|
||||
z-index: 9999999999;
|
||||
background: repeating-linear-gradient(-45deg,
|
||||
#d7ba01,
|
||||
#d7ba01 90px,
|
||||
#1d0d0d 0,
|
||||
#1d0d0d 180px);
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
.nojs del {
|
||||
padding: 4px 8px;
|
||||
background: #1d1d1d;
|
||||
background: repeating-linear-gradient(-45deg,
|
||||
#e6c700,
|
||||
#e6c700 45px,
|
||||
rgba(0, 0, 0, 0.5) 0,
|
||||
rgba(0, 0, 0, 0.5) 30px);
|
||||
color: #cbcbcb;
|
||||
border-radius: 4px;
|
||||
}
|
||||
|
||||
/* 布局约束调整 */
|
||||
.sidebar li {
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.nojs-content {
|
||||
-webkit-text-size-adjust: 100%;
|
||||
text-rendering: optimizeLegibility;
|
||||
-webkit-font-smoothing: antialiased;
|
||||
-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
|
||||
box-sizing: inherit;
|
||||
margin: 0;
|
||||
vertical-align: middle;
|
||||
width: 70%;
|
||||
font-weight: 700;
|
||||
font-size: 18px;
|
||||
font-family: -apple-system, Noto Sans SC, BlinkMacSystemFont,
|
||||
Segoe UI, Microsoft YaHei UI, Microsoft Yahei, 微软雅黑,
|
||||
Helvetica, Arial, sans-serif;
|
||||
padding: 48px 64px;
|
||||
word-break: break-word;
|
||||
text-align: center;
|
||||
line-height: 2;
|
||||
border-radius: 16px;
|
||||
background: rgba(45, 42, 43, 0.8);
|
||||
backdrop-filter: blur(16px);
|
||||
text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
|
||||
border: 4px solid #0d0d0d;
|
||||
color: #beb9b9;
|
||||
box-shadow: 0 0 2rem rgba(0, 0, 0, 0.5),
|
||||
inset 0 0 2rem rgba(0, 0, 0, 0.5);
|
||||
}
|
||||
|
||||
.nojs .nojs-btn {
|
||||
-webkit-text-size-adjust: 100%;
|
||||
text-rendering: optimizeLegibility;
|
||||
-webkit-font-smoothing: antialiased;
|
||||
-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
|
||||
font-weight: 700;
|
||||
word-break: break-word;
|
||||
line-height: 2;
|
||||
text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
|
||||
box-sizing: inherit;
|
||||
outline-width: 0;
|
||||
display: inline-block;
|
||||
border: 2px solid #000;
|
||||
padding: 8px 24px;
|
||||
margin: 0 8px;
|
||||
text-decoration: none;
|
||||
color: #fff;
|
||||
font-family: sans-serif;
|
||||
font-size: 14px;
|
||||
cursor: pointer;
|
||||
text-align: center;
|
||||
transition: background 50ms ease-out, transform 0.15s ease;
|
||||
background: #368dff;
|
||||
border-radius: 24px;
|
||||
transform: scale(1.05);
|
||||
}
|
||||
|
||||
/* 公用样式 */
|
||||
.nojs .nojs-btn:hover {
|
||||
background: #0366e8;
|
||||
transform: scale(1.05);
|
||||
}
|
||||
|
||||
.nojs .nojs-btn:focus {
|
||||
outline: 1px solid #fff;
|
||||
outline-offset: -4px;
|
||||
}
|
||||
|
||||
.nojs .nojs-btn:active {
|
||||
transform: scale(0.99);
|
||||
}
|
||||
|
||||
.nojs del {
|
||||
padding: 4px 8px;
|
||||
background: #1d1d1d;
|
||||
background: repeating-linear-gradient(-45deg,
|
||||
#995d22,
|
||||
#995d22 15px,
|
||||
rgba(0, 0, 0, 0.5) 0,
|
||||
rgba(0, 0, 0, 0.5) 30px);
|
||||
color: #cbcbcb;
|
||||
border-radius: 4px;
|
||||
}
|
||||
|
||||
.markdown-section {
|
||||
margin: 0 auto;
|
||||
max-width: 100%;
|
||||
padding: 30px 15px 40px;
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.nojs .nojs-link {
|
||||
background: #0d47a1;
|
||||
color: #fff;
|
||||
border: 2px solid #093777;
|
||||
padding: 4px 6px;
|
||||
text-decoration: none;
|
||||
border-radius: 4px;
|
||||
}
|
||||
|
||||
.nojs .nojs-btn:focus,
|
||||
.nojs .nojs-link:hover {
|
||||
background: #0f5ad6;
|
||||
}
|
||||
|
||||
.nojs .nojs-link:active {
|
||||
background: #0d4fba;
|
||||
}
|
||||
|
||||
.rtsqs {
|
||||
border-radius: 7px;
|
||||
color: darkblue;
|
||||
}
|
||||
</style>
|
||||
|
||||
<script>
|
||||
window.$docsify = {
|
||||
el: '#main',
|
||||
loadSidebar: true,
|
||||
subMaxLevel: 3,
|
||||
coverpage: true,
|
||||
name: '铁锈战争API-Code',
|
||||
plugins: [
|
||||
EditOnGithubPlugin.create(
|
||||
'https://github.com/LingASDJ/RW-API-Code/tree/main/docs/',
|
||||
null,
|
||||
function (file) {
|
||||
return '在GitHub上合作编辑RTS-Code-API的文档'
|
||||
}
|
||||
)
|
||||
],
|
||||
tabs: {
|
||||
persist: true, // default
|
||||
sync: true, // default
|
||||
theme: 'classic', // default
|
||||
tabComments: true, // default
|
||||
tabHeadings: true // default
|
||||
},
|
||||
|
||||
'flexible-alerts': {
|
||||
note: {
|
||||
label: "随录笔记"
|
||||
},
|
||||
tip: {
|
||||
label: "特别注意"
|
||||
},
|
||||
warning: {
|
||||
label: "警告"
|
||||
},
|
||||
attention: {
|
||||
label: "不推荐"
|
||||
}
|
||||
},
|
||||
|
||||
// Valine: {
|
||||
// appId: 'e3Ipwd8kr6LEeNRLk487mmtB-gzGzoHsz',
|
||||
// appKey: 'gQYoj8j4KehzLWLGvpr5sKeP',
|
||||
// placeholder: "可以将你的一些见解发表到这里,说不定能帮助到其他萌新或者让一些陷入迷途的人豁然开朗呢!支持MarkDown语法。",
|
||||
// avatar: 'hide'
|
||||
// },
|
||||
scrollToTop: {
|
||||
auto: true,
|
||||
text: 'Top↑',
|
||||
right: 15,
|
||||
bottom: 15,
|
||||
offset: 500
|
||||
},
|
||||
timeUpdater: {
|
||||
text: "> 最后编写更新时间: {docsify-updated}",
|
||||
formatUpdated: "{YYYY}/{MM}/{DD}",
|
||||
whereToPlace: "top", // "top" or "bottom", default to "bottom"
|
||||
},
|
||||
chat: {
|
||||
// chat panel title
|
||||
title: '',
|
||||
// set avatar url
|
||||
users: [
|
||||
{ nickname: 'tobby3600', avatar: 'https://rwapi-code.netlify.app/images/avaters/tobby3600.jpg' },
|
||||
{ nickname: 'JDSALing', avatar: 'https://rwapi-code.netlify.app/images/avaters/ling.jpg' },
|
||||
{ nickname: 'shishanyue', avatar: 'https://rwapi-code.netlify.app/images/avaters/shishanyue.jpg' },
|
||||
],
|
||||
// myself: 'JDSALing',
|
||||
animation: 50,
|
||||
// Panel navigation bar style, supporting "mac" and "windows"
|
||||
os: 'none',
|
||||
},
|
||||
repo: 'https://github.com/LingASDJ/RW-API-Code',
|
||||
|
||||
// 完整配置参数
|
||||
search: {
|
||||
maxAge: 86400000, // 过期时间,单位毫秒,1.9分钟
|
||||
paths: 'auto', // or 'auto'
|
||||
|
||||
search: [
|
||||
'auto', // => /zh-cn/README.md
|
||||
],
|
||||
|
||||
// 支持本地化
|
||||
placeholder: {
|
||||
'/': '搜索你需要的!探索你所想的!'
|
||||
},
|
||||
|
||||
// 支持本地化
|
||||
noData: {
|
||||
'/': '尚未找到匹配结果……'
|
||||
},
|
||||
|
||||
// 搜索标题的最大层级, 1 - 6
|
||||
depth: 3,
|
||||
|
||||
hideOtherSidebarContent: true, // 是否隐藏其他侧边栏内容
|
||||
|
||||
// 避免搜索索引冲突
|
||||
// 同一域下的多个网站之间
|
||||
//namespace: 'website-1',
|
||||
|
||||
// 使用不同的索引作为路径前缀(namespaces)
|
||||
// 注意:仅适用于 paths: 'auto' 模式
|
||||
//
|
||||
// 初始化索引时,我们从侧边栏查找第一个路径
|
||||
// 如果它与列表中的前缀匹配,我们将切换到相应的索引
|
||||
pathNamespaces: ['/zh-cn', '/ru-ru', '/ru-ru/v1'],
|
||||
|
||||
// 您可以提供一个正则表达式来匹配前缀。在这种情况下,
|
||||
// 匹配到的字符串将被用来识别索引
|
||||
pathNamespaces: /^(\/(zh-cn|ru-ru))?(\/(v1|v2))?/
|
||||
}
|
||||
}
|
||||
</script>
|
||||
<!-- Docsify v4 -->
|
||||
</script>
|
||||
|
||||
|
||||
|
||||
<script src="//cdn.jsdelivr.net/npm/docsify@4"></script>
|
||||
<!-- 插件引入 -->
|
||||
<script src="https://cdn.jsdelivr.net/npm/docsify-tabs@1"></script>
|
||||
<script src="https://cdn.jsdelivr.net/npm/docsify-updated/src/time-updater.js"></script>
|
||||
<script src="//cdn.jsdelivr.net/npm/docsify/lib/plugins/search.min.js"></script>
|
||||
<script src="//unpkg.com/docsify-scroll-to-top/dist/docsify-scroll-to-top.min.js"></script>
|
||||
<script src="https://rustedwarfareapicode.top/js/RW-ini-1.15.js"></script>
|
||||
<script src="https://rustedwarfareapicode.top/js/docsify-copy-code.min.js"></script>
|
||||
<script src='//unpkg.com/valine/dist/Valine.min.js'></script>
|
||||
<script src="//unpkg.com/docsify-valine/dist/docsify-valine.min.js"></script>
|
||||
<script src="//cdn.jsdelivr.net/npm/docsify-chat/lib/docsify-chat.min.js"></script>
|
||||
<script src="https://unpkg.com/docsify-plugin-flexible-alerts"></script>
|
||||
<style>
|
||||
/* 主页样式 */
|
||||
#mainx {
|
||||
color: #0080ff;
|
||||
}
|
||||
|
||||
#main {
|
||||
font-size: large;
|
||||
}
|
||||
|
||||
#anchors {
|
||||
color: #ffffff;
|
||||
}
|
||||
|
||||
section.cover .cover-main>p:last-child a {
|
||||
border-radius: 2rem;
|
||||
background: #42b983;
|
||||
border: 1px solid #42b983;
|
||||
border-color: var(--theme-color, #42b983);
|
||||
box-sizing: border-box;
|
||||
color: fff;
|
||||
color: #ffffff;
|
||||
display: inline-block;
|
||||
font-size: 1.05rem;
|
||||
letter-spacing: .1rem;
|
||||
margin: 0.5rem 1rem;
|
||||
padding: 0.75em 2rem;
|
||||
text-decoration: none;
|
||||
transition: all .15s ease;
|
||||
}
|
||||
|
||||
section.cover a,
|
||||
section.cover a:hover {
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
section.cover a {
|
||||
color: inherit;
|
||||
}
|
||||
|
||||
* {
|
||||
-webkit-font-smoothing: antialiased;
|
||||
-webkit-overflow-scrolling: touch;
|
||||
-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
|
||||
-webkit-text-size-adjust: none;
|
||||
-webkit-touch-callout: none;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
/* 公用样式 */
|
||||
.token.selector {
|
||||
color: #42b983;
|
||||
}
|
||||
|
||||
.token.punctuation {
|
||||
color: #42b983;
|
||||
}
|
||||
|
||||
.search .matching-post:hover {
|
||||
border-bottom: 1px solid #eee;
|
||||
background: rgba(163, 230, 40, 0.5);
|
||||
border-radius: 12px;
|
||||
}
|
||||
|
||||
.markdown-section code,
|
||||
.markdown-section pre {
|
||||
border-radius: 21px
|
||||
}
|
||||
|
||||
.sidebar ul li.active>a {
|
||||
border-right: 2px solid;
|
||||
color: #42b983;
|
||||
color: #42b983;
|
||||
font-weight: 600;
|
||||
background: azure;
|
||||
border-radius: 5px;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
section.cover.has-mask .mask {
|
||||
background-color: #070707;
|
||||
opacity: .75;
|
||||
position: absolute;
|
||||
top: 0;
|
||||
bottom: 0;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.sidebar ul li a:hover {
|
||||
text-decoration: #42b983;
|
||||
}
|
||||
|
||||
.markdown-section a {
|
||||
color: #42b983;
|
||||
color: var(--theme-color, #42b983);
|
||||
font-weight: 600;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
.markdown-section a:hover {
|
||||
color: #075632;
|
||||
color: var(--theme-color, #075632);
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
.markdown-section output:after,
|
||||
.markdown-section pre:after {
|
||||
color: #42b983;
|
||||
font-size: .6rem;
|
||||
font-weight: 600;
|
||||
height: 15px;
|
||||
line-height: 15px;
|
||||
padding: 5px 10px 0;
|
||||
position: absolute;
|
||||
right: 0;
|
||||
text-align: right;
|
||||
top: 0;
|
||||
content: attr(data-lang);
|
||||
}
|
||||
</style>
|
||||
</body>
|
||||
|
||||
</html>
|
|
@ -1,8 +0,0 @@
|
|||
/**
|
||||
* Minified by jsDelivr using Terser v3.14.1.
|
||||
* Original file: /npm/docsify-edit-on-github@1.0.3/index.js
|
||||
*
|
||||
* Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files
|
||||
*/
|
||||
!function(t){t.EditOnGithubPlugin={},t.EditOnGithubPlugin.create=function(n,i,e){function u(t){return header=['<div style="overflow: auto">','<p style="display:flex;align-content: flex-start;flex-wrap: nowrap;flex-direction: row;justify-content: center"><a style="font-size: 1.5rem; text-decoration: none; cursor: pointer"','onclick="EditOnGithubPlugin.onClick(event)">',t,"</a></p>","</div>"].join("")}return e=e||"Edit on github",i=i||n.replace(/\/blob\//,"/edit/"),t.EditOnGithubPlugin.editDoc=function(t,n){var e=n.route.file;if(e){var u=i+e;return window.open(u),t.preventDefault(),!1}return!0},function(n,i){if(t.EditOnGithubPlugin.onClick=function(t){EditOnGithubPlugin.editDoc(t,i)},(r=e)&&"[object Function]"==={}.toString.call(r))n.afterEach(function(t){return u(e(i.route.file))+t});else{var o=u(e);n.afterEach(function(t){return o+t})}var r}}}(window);
|
||||
//# sourceMappingURL=/sm/eef821f4877f09e27be373326100cefe923735a9bb303de51b16f9079d063a86.map
|
|
@ -1,42 +0,0 @@
|
|||
Prism.languages.ini = {
|
||||
|
||||
/**
|
||||
* The component mimics the behavior of the Win32 API parser.
|
||||
*
|
||||
* @see {@link https://github.com/PrismJS/prism/issues/2775#issuecomment-787477723}
|
||||
*/
|
||||
|
||||
'comment': {
|
||||
pattern: /(^[ \f\t\v]*)[#;][^\n\r]*/m,
|
||||
lookbehind: true
|
||||
},
|
||||
'section': {
|
||||
pattern: /(^[ \f\t\v]*)\[[^\n\r\]]*\]?/m,
|
||||
lookbehind: true,
|
||||
inside: {
|
||||
'section-name': {
|
||||
pattern: /(^\[[ \f\t\v]*)[^ \f\t\v\]]+(?:[ \f\t\v]+[^ \f\t\v\]]+)*/,
|
||||
lookbehind: true,
|
||||
alias: 'selector'
|
||||
},
|
||||
'punctuation': /\[|\]/
|
||||
}
|
||||
},
|
||||
'key': {
|
||||
pattern: /(^[ \f\t\v]*)[^ \f\n\r\t\v=]+(?:[ \f\t\v]+[^ \f\n\r\t\v=]+)*(?=[ \f\t\v]*:)/m,
|
||||
lookbehind: true,
|
||||
alias: 'attr-name'
|
||||
},
|
||||
'value': {
|
||||
pattern: /(=[ \f\t\v]*)[^ \f\n\r\t\v]+(?:[ \f\t\v]+[^ \f\n\r\t\v]+)*/,
|
||||
lookbehind: true,
|
||||
alias: 'attr-value',
|
||||
inside: {
|
||||
'inner-value': {
|
||||
pattern: /^("|').+(?=\1$)/,
|
||||
lookbehind: true
|
||||
}
|
||||
}
|
||||
},
|
||||
'punctuation': /=/
|
||||
};
|
9
docs/js/docsify-copy-code.min.js
vendored
|
@ -1,9 +0,0 @@
|
|||
/*!
|
||||
* docsify-copy-code
|
||||
* v2.1.1
|
||||
* https://github.com/jperasmus/docsify-copy-code
|
||||
* (c) 2017-2020 JP Erasmus <jperasmus11@gmail.com>
|
||||
* MIT license
|
||||
*/
|
||||
!function(){"use strict";function s(o){return(s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o})(o)}!function(o,e){void 0===e&&(e={});var t=e.insertAt;if(o&&"undefined"!=typeof document){var n=document.head||document.getElementsByTagName("head")[0],c=document.createElement("style");c.type="text/css","top"===t&&n.firstChild?n.insertBefore(c,n.firstChild):n.appendChild(c),c.styleSheet?c.styleSheet.cssText=o:c.appendChild(document.createTextNode(o))}}(".docsify-copy-code-button,.docsify-copy-code-button span{cursor:pointer;transition:all .25s ease}.docsify-copy-code-button{position:absolute;z-index:1;top:0;right:0;overflow:visible;padding:.65em .8em;border:0;border-radius:0;outline:0;font-size:1em;background:grey;background:var(--theme-color,grey);color:#fff;opacity:0}.docsify-copy-code-button span{border-radius:3px;background:inherit;pointer-events:none}.docsify-copy-code-button .error,.docsify-copy-code-button .success{position:absolute;z-index:-100;top:50%;right:0;padding:.5em .65em;font-size:.825em;opacity:0;-webkit-transform:translateY(-50%);transform:translateY(-50%)}.docsify-copy-code-button.error .error,.docsify-copy-code-button.success .success{right:100%;opacity:1;-webkit-transform:translate(-115%,-50%);transform:translate(-115%,-50%)}.docsify-copy-code-button:focus,pre:hover .docsify-copy-code-button{opacity:1}"),document.querySelector('link[href*="docsify-copy-code"]')&&console.warn("[Deprecation] Link to external docsify-copy-code stylesheet is no longer necessary."),window.DocsifyCopyCodePlugin={init:function(){return function(o,e){o.ready(function(){console.warn("[Deprecation] Manually initializing docsify-copy-code using window.DocsifyCopyCodePlugin.init() is no longer necessary.")})}}},window.$docsify=window.$docsify||{},window.$docsify.plugins=[function(o,r){o.doneEach(function(){var o=Array.apply(null,document.querySelectorAll("pre[data-lang]")),c={buttonText:"复制到剪贴板",errorText:"出现错误",successText:"已复制到剪贴板"};r.config.copyCode&&Object.keys(c).forEach(function(t){var n=r.config.copyCode[t];"string"==typeof n?c[t]=n:"object"===s(n)&&Object.keys(n).some(function(o){var e=-1<location.href.indexOf(o);return c[t]=e?n[o]:c[t],e})});var e=['<button class="docsify-copy-code-button">','<span class="label">'.concat(c.buttonText,"</span>"),'<span class="error">'.concat(c.errorText,"</span>"),'<span class="success">'.concat(c.successText,"</span>"),"</button>"].join("");o.forEach(function(o){o.insertAdjacentHTML("beforeend",e)})}),o.mounted(function(){document.querySelector(".content").addEventListener("click",function(o){if(o.target.classList.contains("docsify-copy-code-button")){var e="BUTTON"===o.target.tagName?o.target:o.target.parentNode,t=document.createRange(),n=e.parentNode.querySelector("code"),c=window.getSelection();t.selectNode(n),c.removeAllRanges(),c.addRange(t);try{document.execCommand("copy")&&(e.classList.add("success"),setTimeout(function(){e.classList.remove("success")},1e3))}catch(o){console.error("docsify-copy-code: ".concat(o)),e.classList.add("error"),setTimeout(function(){e.classList.remove("error")},1e3)}"function"==typeof(c=window.getSelection()).removeRange?c.removeRange(t):"function"==typeof c.removeAllRanges&&c.removeAllRanges()}})})}].concat(window.$docsify.plugins||[])}();
|
||||
//# sourceMappingURL=docsify-copy-code.min.js.map
|
|
@ -1,8 +0,0 @@
|
|||
dafasfSSFASF
|
||||
|
||||
# 遇到困难睡大觉
|
||||
遇到困难睡大觉
|
||||
|
||||
```ini
|
||||
卡了
|
||||
```
|
|
@ -1 +0,0 @@
|
|||
132
|
|
@ -1,17 +0,0 @@
|
|||
|
||||
|
||||
#
|
||||
|
||||
# Page 1
|
||||
<!-- tabs:start -->
|
||||
## **开始使用RW-Engine**
|
||||
|
||||
### 添加RW-Engine到mod
|
||||
#### 添加RW-Engine到mod
|
||||
<!-- chat:start -->
|
||||
#### **shishanyue**
|
||||
将RW-Engine.zip解压出来后的RW-Engine的文件夹整个放在你的Mod根目录下
|
||||
|
||||
<!-- chat:end -->
|
||||
|
||||
<!-- tabs:end -->
|
|
@ -1,17 +0,0 @@
|
|||
|
||||
|
||||
<div style="display:flex;align-content: flex-start;flex-wrap: nowrap;flex-direction: row;justify-content: center;">
|
||||
|
||||
<img src="https://rwapi-code.netlify.app/images/title.png">
|
||||
|
||||
</div>
|
||||
|
||||
<b><font size="5px" color="#000"> 这是来自于1.15的单位代码表Beta版本,目前该代码表包含了全部1.15单位代码,<br><br>
|
||||
用户可以根据自己的编码能力进行学习,我建议各位从浅到深慢慢学习,并且一定要动手去写Mod,不能一直看着代码表而不去动手。否则可能会事倍功半。<br>
|
||||
总之,RTS-API-CODE欢迎各位的到来。以及,本站点仍然处于建设中,如有代码遗漏之处,<br>
|
||||
请您指出并批评纠正。</font></b>
|
||||
|
||||
|
||||
<a href="#/unit_code/1.15/code.md">
|
||||
<h2 style="color:green">点击我,开始熟悉单位代码表!</h2>
|
||||
</a>
|
1
hashmap.json
Normal file
|
@ -0,0 +1 @@
|
|||
{"cos.md":"4cc32180","src_debug_test.md":"501f237e","src_rw-engine_quick-start.md":"a2b4fb07","index.md":"7a8a1ce3","src_map_tsada.md":"95d6f1dd","api-dev.md":"447d3fe1","src_unit_attack.md":"9d57709d","src_unit_canbuild.md":"4f4f1935","src_unit_movement.md":"3ff8232f","src_unit_spawnunit_spawnprojectile.md":"5ab9c365","src_unit_graphics.md":"6e56c4ad","src_unit_attachment.md":"2e3e2a58","src_unit_core.md":"9eb125bd","src_unit_turret.md":"149ab95e","src_unit_loginboolean.md":"33f0931b"}
|