框架迁移OK
This commit is contained in:
parent
7660fe0e2a
commit
bda1987836
|
@ -5,13 +5,10 @@
|
|||
</component>
|
||||
<component name="ChangeListManager">
|
||||
<list default="true" id="095f8482-7199-413b-83e3-876b2fdc1c5d" name="更改" comment="">
|
||||
<change afterPath="$PROJECT_DIR$/rustedwarfareapicode/api-dev.md" afterDir="false" />
|
||||
<change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" />
|
||||
<change beforePath="$PROJECT_DIR$/rustedwarfareapicode/.vitepress/config.ts" beforeDir="false" afterPath="$PROJECT_DIR$/rustedwarfareapicode/.vitepress/config.ts" afterDir="false" />
|
||||
<change beforePath="$PROJECT_DIR$/rustedwarfareapicode/api-examples.md" beforeDir="false" />
|
||||
<change beforePath="$PROJECT_DIR$/rustedwarfareapicode/index.md" beforeDir="false" afterPath="$PROJECT_DIR$/rustedwarfareapicode/index.md" afterDir="false" />
|
||||
<change beforePath="$PROJECT_DIR$/setTimeout(resolve" beforeDir="false" />
|
||||
<change beforePath="$PROJECT_DIR$/span.textContent))" beforeDir="false" />
|
||||
<change beforePath="$PROJECT_DIR$/rustedwarfareapicode/api-dev.md" beforeDir="false" afterPath="$PROJECT_DIR$/rustedwarfareapicode/api-dev.md" afterDir="false" />
|
||||
<change beforePath="$PROJECT_DIR$/rustedwarfareapicode/src/Unit/loginboolean.md" beforeDir="false" afterPath="$PROJECT_DIR$/rustedwarfareapicode/src/Unit/loginboolean.md" afterDir="false" />
|
||||
</list>
|
||||
<option name="SHOW_DIALOG" value="false" />
|
||||
<option name="HIGHLIGHT_CONFLICTS" value="true" />
|
||||
|
@ -32,31 +29,31 @@
|
|||
<option name="hideEmptyMiddlePackages" value="true" />
|
||||
<option name="showLibraryContents" value="true" />
|
||||
</component>
|
||||
<component name="PropertiesComponent"><![CDATA[{
|
||||
"keyToString": {
|
||||
"ASKED_SHARE_PROJECT_CONFIGURATION_FILES": "true",
|
||||
"RunOnceActivity.OpenProjectViewOnStart": "true",
|
||||
"RunOnceActivity.ShowReadmeOnStart": "true",
|
||||
"SHARE_PROJECT_CONFIGURATION_FILES": "true",
|
||||
"WebServerToolWindowFactoryState": "false",
|
||||
"git-widget-placeholder": "main",
|
||||
"last_opened_file_path": "D:/RW-API-Code/rustedwarfareapicode/.vitepress/theme",
|
||||
"node.js.detected.package.eslint": "true",
|
||||
"node.js.detected.package.tslint": "true",
|
||||
"node.js.selected.package.eslint": "(autodetect)",
|
||||
"node.js.selected.package.tslint": "(autodetect)",
|
||||
"nodejs_package_manager_path": "npm",
|
||||
"prettierjs.PrettierConfiguration.Package": "C:\\Program Files\\nodejs\\node_modules\\prettier",
|
||||
"ts.external.directory.path": "D:\\Program Files\\JetBrains\\WebStorm 2023.1.1\\plugins\\javascript-impl\\jsLanguageServicesImpl\\external",
|
||||
"vue.rearranger.settings.migration": "true"
|
||||
<component name="PropertiesComponent">{
|
||||
"keyToString": {
|
||||
"ASKED_SHARE_PROJECT_CONFIGURATION_FILES": "true",
|
||||
"RunOnceActivity.OpenProjectViewOnStart": "true",
|
||||
"RunOnceActivity.ShowReadmeOnStart": "true",
|
||||
"SHARE_PROJECT_CONFIGURATION_FILES": "true",
|
||||
"WebServerToolWindowFactoryState": "false",
|
||||
"git-widget-placeholder": "main",
|
||||
"last_opened_file_path": "D:/RW-API-Code/rustedwarfareapicode/.vitepress/theme",
|
||||
"node.js.detected.package.eslint": "true",
|
||||
"node.js.detected.package.tslint": "true",
|
||||
"node.js.selected.package.eslint": "(autodetect)",
|
||||
"node.js.selected.package.tslint": "(autodetect)",
|
||||
"nodejs_package_manager_path": "npm",
|
||||
"prettierjs.PrettierConfiguration.Package": "C:\\Program Files\\nodejs\\node_modules\\prettier",
|
||||
"ts.external.directory.path": "D:\\Program Files\\JetBrains\\WebStorm 2023.1.1\\plugins\\javascript-impl\\jsLanguageServicesImpl\\external",
|
||||
"vue.rearranger.settings.migration": "true"
|
||||
}
|
||||
}]]></component>
|
||||
}</component>
|
||||
<component name="RecentsManager">
|
||||
<key name="CopyFile.RECENT_KEYS">
|
||||
<recent name="D:\RW-API-Code\rustedwarfareapicode\.vitepress\theme" />
|
||||
</key>
|
||||
</component>
|
||||
<component name="RunManager" selected="npm.docs:preview">
|
||||
<component name="RunManager" selected="npm.docs:dev">
|
||||
<configuration name="docs:build" type="js.build_tools.npm" temporary="true" nameIsGenerated="true">
|
||||
<package-json value="$PROJECT_DIR$/package.json" />
|
||||
<command value="run" />
|
||||
|
@ -89,9 +86,9 @@
|
|||
</configuration>
|
||||
<recent_temporary>
|
||||
<list>
|
||||
<item itemvalue="npm.docs:dev" />
|
||||
<item itemvalue="npm.docs:preview" />
|
||||
<item itemvalue="npm.docs:build" />
|
||||
<item itemvalue="npm.docs:dev" />
|
||||
</list>
|
||||
</recent_temporary>
|
||||
</component>
|
||||
|
@ -111,6 +108,7 @@
|
|||
<workItem from="1681464227973" duration="709000" />
|
||||
<workItem from="1681573027219" duration="321000" />
|
||||
<workItem from="1681573363358" duration="2587000" />
|
||||
<workItem from="1683643655264" duration="99000" />
|
||||
</task>
|
||||
<servers />
|
||||
</component>
|
||||
|
|
|
@ -12,7 +12,7 @@ export default defineConfig({
|
|||
{ text: '单位API', link: '/src/Unit/core' },
|
||||
{ text: '地图API', link: '/src/Map/teada' },
|
||||
{ text: '调试API', link: '/src/Debug/test' },
|
||||
{ text: '开发指南', link: '/DEV' },
|
||||
{ text: '开发指南', link: '/api-dev' },
|
||||
],
|
||||
|
||||
docFooter: {
|
||||
|
@ -24,7 +24,7 @@ export default defineConfig({
|
|||
{
|
||||
text: 'RW-API-Code',
|
||||
items: [
|
||||
{ text: '主页-Home', link: '/markdown-examples' },
|
||||
{ text: '主页-Home', link: '/' },
|
||||
{ text: '核心-CORE', link: '/src/Unit/core' },
|
||||
{ text: '可建造-CORE', link: '/src/Unit/canbuild' },
|
||||
{ text: '逻辑组-LogicBoolean', link: '/src/Unit/loginboolean' }
|
||||
|
|
|
@ -129,12 +129,6 @@ Netlify会在你的PR请求下面显示你的预览页面地址。<br>
|
|||
### xxxx
|
||||
#### xxxx-代码简介
|
||||
|
||||
?> 代码:xxxx 中文释义:xxxx 类型:xxxx 隶属于:xxxx
|
||||
|
||||
::: tip
|
||||
xxxxxx
|
||||
:::
|
||||
|
||||
#### 视频/GIF演示---(可选)
|
||||
|
||||
#### xxxx代码-演示例子
|
||||
|
@ -178,5 +172,5 @@ xxxx
|
|||
:::
|
||||
|
||||
::: tip
|
||||
编写于2023-5-9 RTS-Code-API[第3版-第1次修订]
|
||||
编写于2023-5-9 RTS-Code-API[第3版-第2次修订]
|
||||
:::
|
|
@ -12,17 +12,15 @@ hero:
|
|||
|
||||
actions:
|
||||
- theme: alt
|
||||
text: 开发指南
|
||||
text: 编写指南
|
||||
link: /api-dev
|
||||
# - theme: brand
|
||||
# text: 常见问题
|
||||
# link: /src/question/
|
||||
- theme: brand
|
||||
text: 快速开始
|
||||
link: /src/Unit/core
|
||||
- theme: alt
|
||||
text: Github
|
||||
link: https://github.com/LingASDJ/RW-API-Code
|
||||
- theme: brand
|
||||
text: 常见问题
|
||||
link: /src/question/
|
||||
|
||||
|
||||
|
||||
features:
|
||||
|
|
|
@ -1,85 +0,0 @@
|
|||
# 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).
|
|
@ -3,7 +3,10 @@ outline: deep
|
|||
---
|
||||
|
||||
# **[LogicBoolean] 逻辑序列组**
|
||||
> [!ATTENTION] 由于这个组的特殊性,格式不标准,请勿参考这个组的写法。
|
||||
|
||||
::: danger
|
||||
由于这个组的特殊性,格式不标准,请勿参考这个组的写法。
|
||||
:::
|
||||
|
||||
### 前置知识
|
||||
|
||||
|
@ -71,8 +74,12 @@ autoTrigger:if memory.a < memory.b
|
|||
|
||||
#### 等于
|
||||
代码:== 中文释义:等于<br>
|
||||
> [!TIP] 请注意,铁锈中等于的符号为<font color=orange>==</font>,<font color=orange>=</font>在铁锈中用于赋值或参数。
|
||||
>
|
||||
|
||||
::: tip
|
||||
请注意,铁锈中等于的符号为<font color=orange>==</font>,<font color=orange>=</font>在铁锈中用于赋值或参数。
|
||||
:::
|
||||
|
||||
|
||||
同上,若`a=b`则整个式子的值为`true`,否则为`false`。
|
||||
|
||||
#### 不等于
|
||||
|
@ -83,8 +90,10 @@ autoTrigger:if memory.a < memory.b
|
|||
|
||||
#### 且
|
||||
代码:and 中文释义:且<br>
|
||||
> [!TIP] <font color=orange>and</font>用于连接两个逻辑判断,只有在这两个逻辑判断的值都为<font color=orange>true</font>时,<font color=orange>and</font>的值才为true。
|
||||
::: tip
|
||||
<font color=orange>and</font>用于连接两个逻辑判断,只有在这两个逻辑判断的值都为<font color=orange>true</font>时,<font color=orange>and</font>的值才为true。
|
||||
<br>
|
||||
:::
|
||||
|
||||
<!-- 自定义的提示框请使用原生Html进行套入 -->
|
||||
<div class="alert callout note">
|
||||
|
@ -101,14 +110,20 @@ autoTrigger:if memory.a < memory.b and memory.a > memory.c
|
|||
|
||||
#### 或
|
||||
代码:or 中文释义:或<br>
|
||||
> [!TIP] <font color=orange>or</font>用于连接两个逻辑判断,只要这两个逻辑判断的值有一个为<font color=orange>true</font>时,<font color=orange>or</font>的值就为true。
|
||||
::: tip
|
||||
<font color=orange>or</font>用于连接两个逻辑判断,只要这两个逻辑判断的值有一个为<font color=orange>true</font>时,<font color=orange>or</font>的值就为true。
|
||||
:::
|
||||
|
||||
#### 非
|
||||
代码:not 中文释义:非<br>
|
||||
> [!TIP] <font color=orange>not</font>用于将某个逻辑判断的值取反,即`true`变`false`,`false`变`true`。
|
||||
::: tip
|
||||
<font color=orange>not</font>用于将某个逻辑判断的值取反,即`true`变`false`,`false`变`true`。
|
||||
:::
|
||||
|
||||
> [!NOTE] 多个逻辑运算符同时使用时,优先级为`not>and>or`,同时<font color=orange>支持使用括号改变运算优先级</font>。
|
||||
::: info
|
||||
多个逻辑运算符同时使用时,优先级为`not>and>or`,同时<font color=orange>支持使用括号改变运算优先级</font>。
|
||||
<br>推荐<font color=orange>在不确定优先级时打括号</font>。
|
||||
:::
|
||||
|
||||
<div class="alert callout tip">
|
||||
<p>演示例子:</p>
|
||||
|
@ -136,7 +151,9 @@ autoTrigger:if (memory.a < memory.b or memory.a > memory.c) and not memory.a < m
|
|||
|
||||
加用于将两个逻辑值相加,得到结果,格式为`数据a + 数据b`。
|
||||
|
||||
> [!NOTE] 不同数据类型通常<font color=orange>不能直接进行算数运算</font>,但在部分情况下,<font color=orange>number</font>和<font color=orange>float</font>类型可以混用(建议<font color=orange>所有数值全部使用float</font>来避免混淆)。
|
||||
::: info
|
||||
不同数据类型通常<font color=orange>不能直接进行算数运算</font>,但在部分情况下,<font color=orange>number</font>和<font color=orange>float</font>类型可以混用(建议<font color=orange>所有数值全部使用float</font>来避免混淆)。
|
||||
:::
|
||||
|
||||
<div class="alert callout tip">
|
||||
<p>演示例子:</p>
|
||||
|
@ -152,8 +169,10 @@ autoTrigger:if (memory.a + memory.c) < memory.b
|
|||
|
||||
减用于将两个逻辑值相减,得到结果,格式为`数据a - 数据b`。
|
||||
|
||||
> [!NOTE] 对于<font color=orange>不满足交换律的运算符</font>,需要注意<font color=orange>运算优先级</font>是否正确。由于铁锈本身bug,<font color=orange>在数学上正确的优先级不一定在铁锈中正确</font>,因此可能出现减法顺序混乱等问题。
|
||||
::: info
|
||||
对于<font color=orange>不满足交换律的运算符</font>,需要注意<font color=orange>运算优先级</font>是否正确。由于铁锈本身bug,<font color=orange>在数学上正确的优先级不一定在铁锈中正确</font>,因此可能出现减法顺序混乱等问题。
|
||||
<br>为了避免可能的问题,请尽量在任何<font color=orange>不满足交换律的运算符</font>两边打上括号。
|
||||
:::
|
||||
|
||||
#### 乘
|
||||
代码:* 中文释义:乘<br>
|
||||
|
@ -238,7 +257,9 @@ self.hasResources(hp=10,energy=5)
|
|||
|
||||
与`self.hasResources()`不同,`self.resource()`直接返回某个资源的数值。格式为`self.resource(type="资源名")`。
|
||||
|
||||
> [!NOTE] 引用资源时,请确保<font color=orange>这个资源在这个单位定义过</font>,否则会报错。
|
||||
::: info
|
||||
引用资源时,请确保<font color=orange>这个资源在这个单位定义过</font>,否则会报错。
|
||||
:::
|
||||
|
||||
#### self.resource.RESOURCE_TYPE
|
||||
代码:self.resource.RESOURCE_TYPE 中文释义:资源 返回类型:float<br>
|
||||
|
@ -262,7 +283,9 @@ self.hasResources(hp=10,energy=5)
|
|||
#### self.hasTakenDemage()
|
||||
代码:self.hasTakenDemage() 中文释义:受到伤害 返回类型:bool<br>
|
||||
|
||||
> [!NOTE] 单位计时部分能返回到最小时间精度为<font color=orange>0.1秒</font>。
|
||||
::: info
|
||||
单位计时部分能返回到最小时间精度为<font color=orange>0.1秒</font>。
|
||||
:::
|
||||
|
||||
`self.hasTakenDemage()`用于获取指定时间内是否收到伤害。使用`self.hasTakenDemage(withInSecounds=多少秒内,laterThanSecounds=多少秒后)`格式时,返回bool类型。
|
||||
|
||||
|
@ -332,7 +355,9 @@ showMessageToPlayers:10秒过去了
|
|||
|
||||
`self.hasActiveWaypoint()`用于获取自身有无活动的路径点,格式为`self.hasActiveWaypoint(type="路径点类型")`。
|
||||
|
||||
> [!NOTE] 路径点类型可以是<font color=orange>move, attackMove, guard, loadInto, loadUp, attack, reclaim, repair, touchTarget, build, follow, setPassiveTarget</font>。
|
||||
::: info
|
||||
路径点类型可以是<font color=orange>move, attackMove, guard, loadInto, loadUp, attack, reclaim, repair, touchTarget, build, follow, setPassiveTarget</font>。
|
||||
:::
|
||||
|
||||
#### self.transportingUnitWithTags()
|
||||
代码:self.transportingUnitWithTags() 中文释义:运输单位中有此标签 返回类型:bool<br>
|
||||
|
|
Loading…
Reference in New Issue
Block a user