重构为VitePress框架
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.
|
62
README.md
|
@ -1,62 +0,0 @@
|
|||
|
||||
|
||||
<div align=center>
|
||||
<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)
|
|
@ -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>
|
10
package.json
Normal file
|
@ -0,0 +1,10 @@
|
|||
{
|
||||
"scripts": {
|
||||
"docs:dev": "vitepress dev rustedwarfareapicode",
|
||||
"docs:build": "vitepress build rustedwarfareapicode",
|
||||
"docs:preview": "vitepress preview rustedwarfareapicode"
|
||||
},
|
||||
"devDependencies": {
|
||||
"vitepress": "^1.0.0-alpha.65"
|
||||
}
|
||||
}
|
41
rustedwarfareapicode/.vitepress/cache/deps/@theme_index.js
vendored
Normal file
|
@ -0,0 +1,41 @@
|
|||
// node_modules/_vitepress@1.0.0-alpha.65@vitepress/dist/client/theme-default/index.js
|
||||
import "D:/RW-API-Code/node_modules/_vitepress@1.0.0-alpha.65@vitepress/dist/client/theme-default/styles/fonts.css";
|
||||
|
||||
// node_modules/_vitepress@1.0.0-alpha.65@vitepress/dist/client/theme-default/without-fonts.js
|
||||
import "D:/RW-API-Code/node_modules/_vitepress@1.0.0-alpha.65@vitepress/dist/client/theme-default/styles/vars.css";
|
||||
import "D:/RW-API-Code/node_modules/_vitepress@1.0.0-alpha.65@vitepress/dist/client/theme-default/styles/base.css";
|
||||
import "D:/RW-API-Code/node_modules/_vitepress@1.0.0-alpha.65@vitepress/dist/client/theme-default/styles/utils.css";
|
||||
import "D:/RW-API-Code/node_modules/_vitepress@1.0.0-alpha.65@vitepress/dist/client/theme-default/styles/components/custom-block.css";
|
||||
import "D:/RW-API-Code/node_modules/_vitepress@1.0.0-alpha.65@vitepress/dist/client/theme-default/styles/components/vp-code.css";
|
||||
import "D:/RW-API-Code/node_modules/_vitepress@1.0.0-alpha.65@vitepress/dist/client/theme-default/styles/components/vp-code-group.css";
|
||||
import "D:/RW-API-Code/node_modules/_vitepress@1.0.0-alpha.65@vitepress/dist/client/theme-default/styles/components/vp-doc.css";
|
||||
import "D:/RW-API-Code/node_modules/_vitepress@1.0.0-alpha.65@vitepress/dist/client/theme-default/styles/components/vp-sponsor.css";
|
||||
import VPBadge from "D:/RW-API-Code/node_modules/_vitepress@1.0.0-alpha.65@vitepress/dist/client/theme-default/components/VPBadge.vue";
|
||||
import Layout from "D:/RW-API-Code/node_modules/_vitepress@1.0.0-alpha.65@vitepress/dist/client/theme-default/Layout.vue";
|
||||
import { default as default2 } from "D:/RW-API-Code/node_modules/_vitepress@1.0.0-alpha.65@vitepress/dist/client/theme-default/components/VPHomeHero.vue";
|
||||
import { default as default3 } from "D:/RW-API-Code/node_modules/_vitepress@1.0.0-alpha.65@vitepress/dist/client/theme-default/components/VPHomeFeatures.vue";
|
||||
import { default as default4 } from "D:/RW-API-Code/node_modules/_vitepress@1.0.0-alpha.65@vitepress/dist/client/theme-default/components/VPHomeSponsors.vue";
|
||||
import { default as default5 } from "D:/RW-API-Code/node_modules/_vitepress@1.0.0-alpha.65@vitepress/dist/client/theme-default/components/VPDocAsideSponsors.vue";
|
||||
import { default as default6 } from "D:/RW-API-Code/node_modules/_vitepress@1.0.0-alpha.65@vitepress/dist/client/theme-default/components/VPTeamPage.vue";
|
||||
import { default as default7 } from "D:/RW-API-Code/node_modules/_vitepress@1.0.0-alpha.65@vitepress/dist/client/theme-default/components/VPTeamPageTitle.vue";
|
||||
import { default as default8 } from "D:/RW-API-Code/node_modules/_vitepress@1.0.0-alpha.65@vitepress/dist/client/theme-default/components/VPTeamPageSection.vue";
|
||||
import { default as default9 } from "D:/RW-API-Code/node_modules/_vitepress@1.0.0-alpha.65@vitepress/dist/client/theme-default/components/VPTeamMembers.vue";
|
||||
var theme = {
|
||||
Layout,
|
||||
enhanceApp: ({ app }) => {
|
||||
app.component("Badge", VPBadge);
|
||||
}
|
||||
};
|
||||
var without_fonts_default = theme;
|
||||
export {
|
||||
default5 as VPDocAsideSponsors,
|
||||
default3 as VPHomeFeatures,
|
||||
default2 as VPHomeHero,
|
||||
default4 as VPHomeSponsors,
|
||||
default9 as VPTeamMembers,
|
||||
default6 as VPTeamPage,
|
||||
default8 as VPTeamPageSection,
|
||||
default7 as VPTeamPageTitle,
|
||||
without_fonts_default as default
|
||||
};
|
||||
//# sourceMappingURL=@theme_index.js.map
|
7
rustedwarfareapicode/.vitepress/cache/deps/@theme_index.js.map
vendored
Normal file
|
@ -0,0 +1,7 @@
|
|||
{
|
||||
"version": 3,
|
||||
"sources": ["../../../../node_modules/_vitepress@1.0.0-alpha.65@vitepress/dist/client/theme-default/index.js", "../../../../node_modules/_vitepress@1.0.0-alpha.65@vitepress/dist/client/theme-default/without-fonts.js"],
|
||||
"sourcesContent": ["import './styles/fonts.css';\nexport * from './without-fonts';\nexport { default as default } from './without-fonts';\n", "import './styles/vars.css';\nimport './styles/base.css';\nimport './styles/utils.css';\nimport './styles/components/custom-block.css';\nimport './styles/components/vp-code.css';\nimport './styles/components/vp-code-group.css';\nimport './styles/components/vp-doc.css';\nimport './styles/components/vp-sponsor.css';\nimport VPBadge from './components/VPBadge.vue';\nimport Layout from './Layout.vue';\n// Note: if we add more optional components here, i.e. components that are not\n// used in the theme by default unless the user imports them, make sure to update\n// the `lazyDefaultThemeComponentsRE` regex in src/node/build/bundle.ts.\nexport { default as VPHomeHero } from './components/VPHomeHero.vue';\nexport { default as VPHomeFeatures } from './components/VPHomeFeatures.vue';\nexport { default as VPHomeSponsors } from './components/VPHomeSponsors.vue';\nexport { default as VPDocAsideSponsors } from './components/VPDocAsideSponsors.vue';\nexport { default as VPTeamPage } from './components/VPTeamPage.vue';\nexport { default as VPTeamPageTitle } from './components/VPTeamPageTitle.vue';\nexport { default as VPTeamPageSection } from './components/VPTeamPageSection.vue';\nexport { default as VPTeamMembers } from './components/VPTeamMembers.vue';\nconst theme = {\n Layout,\n enhanceApp: ({ app }) => {\n app.component('Badge', VPBadge);\n }\n};\nexport default theme;\n"],
|
||||
"mappings": ";AAAA,OAAO;;;ACAP,OAAO;AACP,OAAO;AACP,OAAO;AACP,OAAO;AACP,OAAO;AACP,OAAO;AACP,OAAO;AACP,OAAO;AACP,OAAO,aAAa;AACpB,OAAO,YAAY;AAInB,SAAoB,WAAXA,gBAA6B;AACtC,SAAoB,WAAXA,gBAAiC;AAC1C,SAAoB,WAAXA,gBAAiC;AAC1C,SAAoB,WAAXA,gBAAqC;AAC9C,SAAoB,WAAXA,gBAA6B;AACtC,SAAoB,WAAXA,gBAAkC;AAC3C,SAAoB,WAAXA,gBAAoC;AAC7C,SAAoB,WAAXA,gBAAgC;AACzC,IAAM,QAAQ;AAAA,EACV;AAAA,EACA,YAAY,CAAC,EAAE,IAAI,MAAM;AACrB,QAAI,UAAU,SAAS,OAAO;AAAA,EAClC;AACJ;AACA,IAAO,wBAAQ;",
|
||||
"names": ["default"]
|
||||
}
|
19
rustedwarfareapicode/.vitepress/cache/deps/_metadata.json
vendored
Normal file
|
@ -0,0 +1,19 @@
|
|||
{
|
||||
"hash": "4dd20789",
|
||||
"browserHash": "80372500",
|
||||
"optimized": {
|
||||
"vue": {
|
||||
"src": "../../../../node_modules/_vue@3.2.47@vue/dist/vue.runtime.esm-bundler.js",
|
||||
"file": "vue.js",
|
||||
"fileHash": "4333e76b",
|
||||
"needsInterop": false
|
||||
},
|
||||
"@theme/index": {
|
||||
"src": "../../../../node_modules/_vitepress@1.0.0-alpha.65@vitepress/dist/client/theme-default/index.js",
|
||||
"file": "@theme_index.js",
|
||||
"fileHash": "c2b7e6a4",
|
||||
"needsInterop": false
|
||||
}
|
||||
},
|
||||
"chunks": {}
|
||||
}
|
1
rustedwarfareapicode/.vitepress/cache/deps/package.json
vendored
Normal file
|
@ -0,0 +1 @@
|
|||
{"type":"module"}
|
9516
rustedwarfareapicode/.vitepress/cache/deps/vue.js
vendored
Normal file
7
rustedwarfareapicode/.vitepress/cache/deps/vue.js.map
vendored
Normal file
28
rustedwarfareapicode/.vitepress/config.ts
Normal file
|
@ -0,0 +1,28 @@
|
|||
import { defineConfig } from 'vitepress'
|
||||
|
||||
// https://vitepress.dev/reference/site-config
|
||||
export default defineConfig({
|
||||
title: "RW-API_Code",
|
||||
description: "Easy Code",
|
||||
themeConfig: {
|
||||
// https://vitepress.dev/reference/default-theme-config
|
||||
nav: [
|
||||
{ text: 'Home', link: '/' },
|
||||
{ text: 'Examples', link: '/markdown-examples' }
|
||||
],
|
||||
|
||||
sidebar: [
|
||||
{
|
||||
text: 'Examples',
|
||||
items: [
|
||||
{ text: 'Markdown Examples', link: '/markdown-examples' },
|
||||
{ text: 'Runtime API Examples', link: '/api-examples' }
|
||||
]
|
||||
}
|
||||
],
|
||||
|
||||
socialLinks: [
|
||||
{ icon: 'github', link: 'https://github.com/vuejs/vitepress' }
|
||||
]
|
||||
}
|
||||
})
|
49
rustedwarfareapicode/api-examples.md
Normal file
|
@ -0,0 +1,49 @@
|
|||
---
|
||||
outline: deep
|
||||
---
|
||||
|
||||
# Runtime API Examples
|
||||
|
||||
This page demonstrates usage of some of the runtime APIs provided by VitePress.
|
||||
|
||||
The main `useData()` API can be used to access site, theme, and page data for the current page. It works in both `.md` and `.vue` files:
|
||||
|
||||
```md
|
||||
<script setup>
|
||||
import { useData } from 'vitepress'
|
||||
|
||||
const { theme, page, frontmatter } = useData()
|
||||
</script>
|
||||
|
||||
## Results
|
||||
|
||||
### Theme Data
|
||||
<pre>{{ theme }}</pre>
|
||||
|
||||
### Page Data
|
||||
<pre>{{ page }}</pre>
|
||||
|
||||
### Page Frontmatter
|
||||
<pre>{{ frontmatter }}</pre>
|
||||
```
|
||||
|
||||
<script setup>
|
||||
import { useData } from 'vitepress'
|
||||
|
||||
const { site, theme, page, frontmatter } = useData()
|
||||
</script>
|
||||
|
||||
## Results
|
||||
|
||||
### Theme Data
|
||||
<pre>{{ theme }}</pre>
|
||||
|
||||
### Page Data
|
||||
<pre>{{ page }}</pre>
|
||||
|
||||
### Page Frontmatter
|
||||
<pre>{{ frontmatter }}</pre>
|
||||
|
||||
## More
|
||||
|
||||
Check out the documentation for the [full list of runtime APIs](https://vitepress.dev/reference/runtime-api#usedata).
|
25
rustedwarfareapicode/index.md
Normal file
|
@ -0,0 +1,25 @@
|
|||
---
|
||||
# https://vitepress.dev/reference/default-theme-home-page
|
||||
layout: home
|
||||
|
||||
hero:
|
||||
name: "RW-API_Code"
|
||||
text: "Easy Code"
|
||||
tagline: My great project tagline
|
||||
actions:
|
||||
- theme: brand
|
||||
text: Markdown Examples
|
||||
link: /markdown-examples
|
||||
- theme: alt
|
||||
text: API Examples
|
||||
link: /api-examples
|
||||
|
||||
features:
|
||||
- title: Feature A
|
||||
details: Lorem ipsum dolor sit amet, consectetur adipiscing elit
|
||||
- title: Feature B
|
||||
details: Lorem ipsum dolor sit amet, consectetur adipiscing elit
|
||||
- title: Feature C
|
||||
details: Lorem ipsum dolor sit amet, consectetur adipiscing elit
|
||||
---
|
||||
|
85
rustedwarfareapicode/markdown-examples.md
Normal file
|
@ -0,0 +1,85 @@
|
|||
# Markdown Extension Examples
|
||||
|
||||
This page demonstrates some of the built-in markdown extensions provided by VitePress.
|
||||
|
||||
## Syntax Highlighting
|
||||
|
||||
VitePress provides Syntax Highlighting powered by [Shiki](https://github.com/shikijs/shiki), with additional features like line-highlighting:
|
||||
|
||||
**Input**
|
||||
|
||||
````
|
||||
```js{4}
|
||||
export default {
|
||||
data () {
|
||||
return {
|
||||
msg: 'Highlighted!'
|
||||
}
|
||||
}
|
||||
}
|
||||
```
|
||||
````
|
||||
|
||||
**Output**
|
||||
|
||||
```js{4}
|
||||
export default {
|
||||
data () {
|
||||
return {
|
||||
msg: 'Highlighted!'
|
||||
}
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
## Custom Containers
|
||||
|
||||
**Input**
|
||||
|
||||
```md
|
||||
::: info
|
||||
This is an info box.
|
||||
:::
|
||||
|
||||
::: tip
|
||||
This is a tip.
|
||||
:::
|
||||
|
||||
::: warning
|
||||
This is a warning.
|
||||
:::
|
||||
|
||||
::: danger
|
||||
This is a dangerous warning.
|
||||
:::
|
||||
|
||||
::: details
|
||||
This is a details block.
|
||||
:::
|
||||
```
|
||||
|
||||
**Output**
|
||||
|
||||
::: info
|
||||
This is an info box.
|
||||
:::
|
||||
|
||||
::: tip
|
||||
This is a tip.
|
||||
:::
|
||||
|
||||
::: warning
|
||||
This is a warning.
|
||||
:::
|
||||
|
||||
::: danger
|
||||
This is a dangerous warning.
|
||||
:::
|
||||
|
||||
::: details
|
||||
This is a details block.
|
||||
:::
|
||||
|
||||
## More
|
||||
|
||||
Check out the documentation for the [full list of markdown extensions](https://vitepress.dev/guide/markdown).
|