Deploying to gh-pages from @ LingASDJ/RW-API-Code@def204b587 🚀
This commit is contained in:
parent
40a60933b0
commit
caeda7b2c8
|
@ -5,7 +5,7 @@
|
|||
<meta name="viewport" content="width=device-width,initial-scale=1">
|
||||
<title>RW-API_Code | RW-API_Code</title>
|
||||
<meta name="description" content="Easy Code">
|
||||
<link rel="preload stylesheet" href="/assets/style.64b61861.css" as="style">
|
||||
<link rel="preload stylesheet" href="/assets/style.60fd59ec.css" as="style">
|
||||
|
||||
<script type="module" src="/assets/app.c8b52d8b.js"></script>
|
||||
<link rel="preload" href="/assets/inter-roman-latin.2ed14f66.woff2" as="font" type="font/woff2" crossorigin="">
|
||||
|
@ -52,7 +52,7 @@
|
|||
<span class="line"><span style="color:#89DDFF;"></</span><span style="color:#F07178;">iframe</span><span style="color:#89DDFF;">></span></span></code></pre></div><h4 id="_3-插入表格" tabindex="-1">3.插入表格 <a class="header-anchor" href="#_3-插入表格" aria-label="Permalink to "3.插入表格""></a></h4><h3 id="代码演示" tabindex="-1">代码演示: <a class="header-anchor" href="#代码演示" aria-label="Permalink to "代码演示:""></a></h3><table><thead><tr><th>A</th><th>B</th><th>C</th></tr></thead><tbody><tr><td>1</td><td>2</td><td>3</td></tr></tbody></table><h3 id="代码例子" tabindex="-1">代码例子: <a class="header-anchor" href="#代码例子" aria-label="Permalink to "代码例子:""></a></h3><div class="language-markdown"><button title="Copy Code" class="copy"></button><span class="lang">markdown</span><pre class="shiki material-theme-palenight"><code><span class="line"><span style="color:#A6ACCD;">|A|B|C| </span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;">|-|-|-</span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;">|1|2|3|</span></span></code></pre></div><p>如果你仍然不会Markdown表格写法,这里给你一个链接:</p><h3><a href="https://tableconvert.com/zh-cn/markdown-to-markdown" target="_blank">TableConvert-MD-点击进入</a></h3><h3 id="_4-扩展写法-高级" tabindex="-1">4.扩展写法(高级) <a class="header-anchor" href="#_4-扩展写法-高级" aria-label="Permalink to "4.扩展写法(高级)""></a></h3><p>有一些时候,我们可能需要在已经标记的后面再添加东西, 但Markdown解析方式在标签后面再有一个标签就不会识别了。<br> 所以这里我们必须直接使用原生Html的代码, 通过浏览器的检查元素,你应该能迅速找到模块框架, 将它的模块元素区域复制下来,并调用。</p><div class="tip custom-block"><p class="custom-block-title">TIP</p><p>该文档可能还有很多缺陷,如果你有更好的建议,请发送Issues或者PR给我。</p></div><div class="info custom-block"><p class="custom-block-title">INFO</p><p>编写于2023-5-9 RTS-Code-API[第3版-第3次修订]</p></div></div></div></main><footer class="VPDocFooter" data-v-6b87e69f data-v-37656e44><!--[--><!--]--><!----><nav class="prev-next" data-v-37656e44><div class="pager" data-v-37656e44><!----></div><div class="pager" data-v-37656e44><a class="pager-link next" href="/" data-v-37656e44><span class="desc" data-v-37656e44>下一篇文章</span><span class="title" data-v-37656e44>主页-Home</span></a></div></nav></footer><!--[--><!--]--></div></div></div><!--[--><!--]--></div></div><footer class="VPFooter has-sidebar" data-v-255ec12d data-v-e03eb2e1><div class="container" data-v-e03eb2e1><p class="message" data-v-e03eb2e1>Rosy-Code Ling Web Stuido</p><p class="copyright" data-v-e03eb2e1>Copyright © 2023-RW-API-Code</p></div></footer><!--[--><!--]--></div></div>
|
||||
<script>window.__VP_HASH_MAP__=JSON.parse("{\"src_rw-engine_quick-start.md\":\"921da213\",\"index.md\":\"f503aa80\",\"src_unit_attack.md\":\"ee8c1683\",\"src_unit_canbuild.md\":\"6c0f0f7c\",\"src_map_tsada.md\":\"a63d0bb5\",\"src_unit_core.md\":\"80041c56\",\"src_unit_graphics.md\":\"8ae7ad98\",\"src_debug_test.md\":\"5eb6a57a\",\"src_unit_spawnunit_spawnprojectile.md\":\"d50999f9\",\"src_unit_loginboolean.md\":\"cf27db17\",\"api-dev.md\":\"8b5f2e0b\",\"src_unit_movement.md\":\"1a6a3764\",\"src_unit_turret.md\":\"d370e296\"}");window.__VP_SITE_DATA__=JSON.parse("{\"lang\":\"en-US\",\"dir\":\"ltr\",\"title\":\"RW-API_Code\",\"description\":\"Easy Code\",\"base\":\"/\",\"head\":[],\"appearance\":true,\"themeConfig\":{\"nav\":[{\"text\":\"主页\",\"link\":\"/\"},{\"text\":\"单位API\",\"link\":\"/src/Unit/core\"},{\"text\":\"地图API\",\"link\":\"/src/Map/teada\"},{\"text\":\"调试API\",\"link\":\"/src/Debug/test\"},{\"text\":\"编写指南\",\"link\":\"/api-dev\"},{\"text\":\"RW-Engine指南\",\"link\":\"/src/RW-Engine/quick-start\"}],\"docFooter\":{\"prev\":\"上一篇文章\",\"next\":\"下一篇文章\"},\"sidebar\":[{\"text\":\"RW-API-Code\",\"items\":[{\"text\":\"主页-Home\",\"link\":\"/\"},{\"text\":\"-------------------------\",\"link\":\"\"},{\"text\":\"[API-单位组-Unit]\",\"link\":\"\"},{\"text\":\"核心-CORE\",\"link\":\"/src/Unit/core\"},{\"text\":\"可建造-CANBUILD\",\"link\":\"/src/Unit/canbuild\"},{\"text\":\"图像-GRAPHICS\",\"link\":\"/src/Unit/graphics\"},{\"text\":\"炮塔-TURRET\",\"link\":\"/src/Unit/turret\"},{\"text\":\"攻击-ATTACK\",\"link\":\"/src/Unit/attack\"},{\"text\":\"运动-MOVEMENT\",\"link\":\"/src/Unit/movement\"},{\"text\":\"逻辑-LOGIC\",\"link\":\"/src/Unit/loginboolean\"},{\"text\":\"刷兵/刷单位-SPAWN\",\"link\":\"/src/Unit/spawnunit_spawnprojectile\"},{\"text\":\"-------------------------\",\"link\":\"\"}]}],\"socialLinks\":[{\"icon\":\"github\",\"link\":\"https://github.com/LingASDJ/RW-API-Code/\"}],\"footer\":{\"message\":\"Rosy-Code Ling Web Stuido\",\"copyright\":\"Copyright © 2023-RW-API-Code\"},\"search\":{\"provider\":\"local\",\"options\":{\"locales\":{\"zh\":{\"translations\":{\"button\":{\"buttonText\":\"搜索文档\",\"buttonAriaLabel\":\"搜索文档\"},\"modal\":{\"noResultsText\":\"你干嘛~哎呦~无法找到相关结果\",\"resetButtonTitle\":\"清除查询条件\",\"footer\":{\"selectText\":\"选择\",\"navigateText\":\"切换\",\"closeText\":\"关闭\",\"closeKeyAriaLabel\":\"关闭\",\"selectKeyAriaLabel\":\"选择\",\"navigateUpKeyAriaLabel\":\"上一个\",\"navigateDownKeyAriaLabel\":\"下一个\"},\"backButtonTitle\":\"返回上一级\",\"displayDetails\":\"显示详情\"}}}},\"translations\":{\"button\":{\"buttonText\":\"搜索文档\",\"buttonAriaLabel\":\"搜索文档\"},\"modal\":{\"noResultsText\":\"无法找到相关结果\",\"resetButtonTitle\":\"清除查询条件\",\"footer\":{\"selectText\":\"选择\",\"navigateText\":\"切换\",\"closeText\":\"关闭\",\"closeKeyAriaLabel\":\"关闭\",\"selectKeyAriaLabel\":\"选择\",\"navigateUpKeyAriaLabel\":\"上一个\",\"navigateDownKeyAriaLabel\":\"下一个\"},\"backButtonTitle\":\"返回上一级\",\"displayDetails\":\"显示详情\"}}}}},\"locales\":{},\"scrollOffset\":90,\"cleanUrls\":true}");</script>
|
||||
<script>window.__VP_HASH_MAP__=JSON.parse("{\"src_debug_test.md\":\"5eb6a57a\",\"index.md\":\"f503aa80\",\"src_map_tsada.md\":\"a63d0bb5\",\"src_unit_loginboolean.md\":\"3d5e1a82\",\"src_unit_movement.md\":\"3a7d833a\",\"src_unit_spawnunit_spawnprojectile.md\":\"d50999f9\",\"src_unit_turret.md\":\"d370e296\",\"api-dev.md\":\"8b5f2e0b\",\"src_unit_attack.md\":\"edc0ab14\",\"src_rw-engine_quick-start.md\":\"921da213\",\"src_unit_core.md\":\"256fd341\",\"src_unit_canbuild.md\":\"7116106c\",\"src_unit_graphics.md\":\"8ae7ad98\"}");window.__VP_SITE_DATA__=JSON.parse("{\"lang\":\"en-US\",\"dir\":\"ltr\",\"title\":\"RW-API_Code\",\"description\":\"Easy Code\",\"base\":\"/\",\"head\":[],\"appearance\":true,\"themeConfig\":{\"nav\":[{\"text\":\"主页\",\"link\":\"/\"},{\"text\":\"单位API\",\"link\":\"/src/Unit/core\"},{\"text\":\"地图API\",\"link\":\"/src/Map/teada\"},{\"text\":\"调试API\",\"link\":\"/src/Debug/test\"},{\"text\":\"编写指南\",\"link\":\"/api-dev\"},{\"text\":\"RW-Engine指南\",\"link\":\"/src/RW-Engine/quick-start\"}],\"docFooter\":{\"prev\":\"上一篇文章\",\"next\":\"下一篇文章\"},\"sidebar\":[{\"text\":\"RW-API-Code\",\"items\":[{\"text\":\"主页-Home\",\"link\":\"/\"},{\"text\":\"-------------------------\",\"link\":\"\"},{\"text\":\"[API-单位组-Unit]\",\"link\":\"\"},{\"text\":\"核心-CORE\",\"link\":\"/src/Unit/core\"},{\"text\":\"可建造-CANBUILD\",\"link\":\"/src/Unit/canbuild\"},{\"text\":\"图像-GRAPHICS\",\"link\":\"/src/Unit/graphics\"},{\"text\":\"炮塔-TURRET\",\"link\":\"/src/Unit/turret\"},{\"text\":\"攻击-ATTACK\",\"link\":\"/src/Unit/attack\"},{\"text\":\"运动-MOVEMENT\",\"link\":\"/src/Unit/movement\"},{\"text\":\"逻辑-LOGIC\",\"link\":\"/src/Unit/loginboolean\"},{\"text\":\"刷兵/刷单位-SPAWN\",\"link\":\"/src/Unit/spawnunit_spawnprojectile\"},{\"text\":\"-------------------------\",\"link\":\"\"}]}],\"socialLinks\":[{\"icon\":\"github\",\"link\":\"https://github.com/LingASDJ/RW-API-Code/\"}],\"footer\":{\"message\":\"Rosy-Code Ling Web Stuido\",\"copyright\":\"Copyright © 2023-RW-API-Code\"},\"search\":{\"provider\":\"local\",\"options\":{\"locales\":{\"zh\":{\"translations\":{\"button\":{\"buttonText\":\"搜索文档\",\"buttonAriaLabel\":\"搜索文档\"},\"modal\":{\"noResultsText\":\"你干嘛~哎呦~无法找到相关结果\",\"resetButtonTitle\":\"清除查询条件\",\"footer\":{\"selectText\":\"选择\",\"navigateText\":\"切换\",\"closeText\":\"关闭\",\"closeKeyAriaLabel\":\"关闭\",\"selectKeyAriaLabel\":\"选择\",\"navigateUpKeyAriaLabel\":\"上一个\",\"navigateDownKeyAriaLabel\":\"下一个\"},\"backButtonTitle\":\"返回上一级\",\"displayDetails\":\"显示详情\"}}}},\"translations\":{\"button\":{\"buttonText\":\"搜索文档\",\"buttonAriaLabel\":\"搜索文档\"},\"modal\":{\"noResultsText\":\"无法找到相关结果\",\"resetButtonTitle\":\"清除查询条件\",\"footer\":{\"selectText\":\"选择\",\"navigateText\":\"切换\",\"closeText\":\"关闭\",\"closeKeyAriaLabel\":\"关闭\",\"selectKeyAriaLabel\":\"选择\",\"navigateUpKeyAriaLabel\":\"上一个\",\"navigateDownKeyAriaLabel\":\"下一个\"},\"backButtonTitle\":\"返回上一级\",\"displayDetails\":\"显示详情\"}}}}},\"locales\":{},\"scrollOffset\":90,\"cleanUrls\":true}");</script>
|
||||
|
||||
</body>
|
||||
</html>
|
|
@ -19,7 +19,7 @@ import{_ as a,o as t,c as e,X as n}from"./chunks/framework.d377e0cc.js";const k=
|
|||
<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-vxrUz" id="tab-b0TXDZ1" checked="checked"><label for="tab-b0TXDZ1">屑狐狸</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:#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-eL174" id="tab-T-tCgCA" checked="checked"><label for="tab-T-tCgCA">屑狐狸</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>
|
|
@ -1,4 +1,4 @@
|
|||
import{_ as n,K as i,o,c,k as s,a,O as t,w as p,X as e}from"./chunks/framework.d377e0cc.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-aMHE7" id="tab-ccuEgNs" checked="checked"><label for="tab-ccuEgNs">allureluoli</label></div><div class="blocks"><div class="language-bash active"><button title="Copy Code" class="copy"></button><span class="lang">bash</span><pre class="shiki material-theme-palenight"><code><span class="line"><span style="color:#89DDFF;">[</span><span style="color:#A6ACCD;">canBuild_造小坦</span><span style="color:#89DDFF;">]</span></span>
|
||||
import{_ as n,K as i,o,c,k as s,a,O as t,w as p,X as e}from"./chunks/framework.d377e0cc.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-LIPDp" id="tab-6hUOe7L" checked="checked"><label for="tab-6hUOe7L">allureluoli</label></div><div class="blocks"><div class="language-bash active"><button title="Copy Code" class="copy"></button><span class="lang">bash</span><pre class="shiki material-theme-palenight"><code><span class="line"><span style="color:#89DDFF;">[</span><span style="color:#A6ACCD;">canBuild_造小坦</span><span style="color:#89DDFF;">]</span></span>
|
||||
<span class="line"><span style="color:#89DDFF;">[</span><span style="color:#A6ACCD;">canBuild_SmallTank</span><span style="color:#89DDFF;">]</span></span>
|
||||
<span class="line"><span style="color:#89DDFF;">[</span><span style="color:#A6ACCD;">canBuild_建造科技</span><span style="color:#89DDFF;">]</span></span></code></pre></div></div></div><div class="danger custom-block"><p class="custom-block-title">DANGER</p><p>[canBuild_NAME] 中的NAME命名禁止重复,否则会引发报错。<br> 其中下划线作为分隔符也是重要的,如果没有将引发报错。</p></div><h4 id="canbuild-name-演示例子" tabindex="-1">[canBuild_NAME]-演示例子 <a class="header-anchor" href="#canbuild-name-演示例子" aria-label="Permalink to "[canBuild_NAME]-演示例子""></a></h4><div class="language-ini"><button title="Copy Code" class="copy"></button><span class="lang">ini</span><pre class="shiki material-theme-palenight"><code><span class="line"><span style="color:#89DDFF;">[canBuild_SmallTank]</span><span style="color:#A6ACCD;"> </span><span style="color:#676E95;font-style:italic;">#英文命名</span></span>
|
||||
<span class="line"><span style="color:#89DDFF;">[canBuild_小坦克]</span><span style="color:#A6ACCD;"> </span><span style="color:#676E95;font-style:italic;">#中文命名</span></span>
|
|
@ -1,4 +1,4 @@
|
|||
import{_ as t,K as o,o as r,c,k as e,a,O as n,w as l,X as i}from"./chunks/framework.d377e0cc.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-w4_3X" id="tab-w4JJkwV" checked="checked"><label for="tab-w4JJkwV">JDSALing</label><input type="radio" name="group-w4_3X" id="tab-NhBjS98"><label for="tab-NhBjS98">Tobby3600</label></div><div class="blocks"><div class="language-bash active"><button title="Copy Code" class="copy"></button><span class="lang">bash</span><pre class="shiki material-theme-palenight"><code><span class="line"><span style="color:#FFCB6B;">定义单位原始名称,可以是中文。</span></span>
|
||||
import{_ as t,K as o,o as r,c,k as e,a,O as n,w as l,X as i}from"./chunks/framework.d377e0cc.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-KopQK" id="tab-YnwN9DF" checked="checked"><label for="tab-YnwN9DF">JDSALing</label><input type="radio" name="group-KopQK" id="tab-ccABiIF"><label for="tab-ccABiIF">Tobby3600</label></div><div class="blocks"><div class="language-bash active"><button title="Copy Code" class="copy"></button><span class="lang">bash</span><pre class="shiki material-theme-palenight"><code><span class="line"><span style="color:#FFCB6B;">定义单位原始名称,可以是中文。</span></span>
|
||||
<span class="line"><span style="color:#FFCB6B;">游戏使用它区分其它单位。</span></span>
|
||||
<span class="line"></span>
|
||||
<span class="line"><span style="color:#FFCB6B;">如果没有在[displayText或者语言文件设置显示名称],</span></span>
|
||||
|
@ -16,13 +16,13 @@ import{_ as t,K as o,o as r,c,k as e,a,O as n,w as l,X as i}from"./chunks/framew
|
|||
<span class="line"><span style="color:#A6ACCD;">displayText_zh:中文标题</span></span>
|
||||
<span class="line"></span>
|
||||
<span class="line"><span style="color:#A6ACCD;">displayDescription: -English Description</span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;">displayDescription_zh:-中文描述</span></span></code></pre></div><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-xYu4U" id="tab-cUKB2vH" checked="checked"><label for="tab-cUKB2vH">Tobby3600</label></div><div class="blocks"><div class="language-bash active"><button title="Copy Code" class="copy"></button><span class="lang">bash</span><pre class="shiki material-theme-palenight"><code><span class="line"><span style="color:#FFCB6B;">默认情况下,price只需要填写一个整数,此时使用的是游戏内自带的资金credit;</span><span style="color:#A6ACCD;"> </span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;">displayDescription_zh:-中文描述</span></span></code></pre></div><hr><h3 id="price" tabindex="-1">price <a class="header-anchor" href="#price" aria-label="Permalink to "price""></a></h3><h4 id="price-代码简介" tabindex="-1">price-代码简介 <a class="header-anchor" href="#price-代码简介" aria-label="Permalink to "price-代码简介""></a></h4><p>代码:price 中文释义:价格 类型:整数 隶属于:通用代码组</p><h4 id="price-要点指示" tabindex="-1">price-要点指示 <a class="header-anchor" href="#price-要点指示" aria-label="Permalink to "price-要点指示""></a></h4><p>定义单位的价格,显示在单位信息中,建造时也以此价格为准。</p><div class="vp-code-group"><div class="tabs"><input type="radio" name="group-QKx9U" id="tab-w_i07uI" checked="checked"><label for="tab-w_i07uI">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-DwtUN" id="tab-c6F1IQn" checked="checked"><label for="tab-c6F1IQn">tobby3600</label></div><div class="blocks"><div class="language-bash active"><button title="Copy Code" class="copy"></button><span class="lang">bash</span><pre class="shiki material-theme-palenight"><code><span class="line"><span style="color:#FFCB6B;">最大生命值定义单位在不修改它时最多能够有多少血量,</span></span>
|
||||
<span class="line"><span style="color:#A6ACCD;">mass:2000</span></span></code></pre></div><hr><h3 id="maxhp" tabindex="-1">maxHp <a class="header-anchor" href="#maxhp" aria-label="Permalink to "maxHp""></a></h3><h4 id="maxhp-代码简介" tabindex="-1">maxHp-代码简介 <a class="header-anchor" href="#maxhp-代码简介" aria-label="Permalink to "maxHp-代码简介""></a></h4><p>代码:maxHp 中文释义:最大生命值 类型:整数 隶属于:通用代码组</p><h4 id="maxhp-要点指示" tabindex="-1">maxHp-要点指示 <a class="header-anchor" href="#maxhp-要点指示" aria-label="Permalink to "maxHp-要点指示""></a></h4><div class="vp-code-group"><div class="tabs"><input type="radio" name="group-NXmmY" id="tab-yeMeQhN" checked="checked"><label for="tab-yeMeQhN">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>
|
||||
|
@ -61,7 +61,7 @@ import{_ as t,K as o,o as r,c,k as e,a,O as n,w as l,X as i}from"./chunks/framew
|
|||
<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-rmLar" id="tab-hH5BGOl" checked="checked"><label for="tab-hH5BGOl">考考你</label><input type="radio" name="group-rmLar" id="tab-z9nEAiS"><label for="tab-z9nEAiS">显示答案</label></div><div class="blocks"><div class="language-bash active"><button title="Copy Code" class="copy"></button><span class="lang">bash</span><pre class="shiki material-theme-palenight"><code><span class="line"><span style="color:#FFCB6B;">如果这里要通过这个代码做一个小的贷款系统,</span></span>
|
||||
<span class="line"><span style="color:#676E95;font-style:italic;">#一个小型贷款系统,</span></span></code></pre></div><div class="vp-code-group"><div class="tabs"><input type="radio" name="group--3Ui8" id="tab-ekBcIdV" checked="checked"><label for="tab-ekBcIdV">考考你</label><input type="radio" name="group--3Ui8" id="tab-Yn1Ajp_"><label for="tab-Yn1Ajp_">显示答案</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>
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -9,7 +9,7 @@ import{_ as e,o as a,c as t,X as n}from"./chunks/framework.d377e0cc.js";const u=
|
|||
<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-V13VA" id="tab-4MrFIlq" checked="checked"><label for="tab-4MrFIlq">摸鱼人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:#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-mVy4P" id="tab-Pye9b44" checked="checked"><label for="tab-Pye9b44">摸鱼人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>
|
File diff suppressed because one or more lines are too long
|
@ -1 +1 @@
|
|||
{"src_rw-engine_quick-start.md":"921da213","index.md":"f503aa80","src_unit_attack.md":"ee8c1683","src_unit_canbuild.md":"6c0f0f7c","src_map_tsada.md":"a63d0bb5","src_unit_core.md":"80041c56","src_unit_graphics.md":"8ae7ad98","src_debug_test.md":"5eb6a57a","src_unit_spawnunit_spawnprojectile.md":"d50999f9","src_unit_loginboolean.md":"cf27db17","api-dev.md":"8b5f2e0b","src_unit_movement.md":"1a6a3764","src_unit_turret.md":"d370e296"}
|
||||
{"src_debug_test.md":"5eb6a57a","index.md":"f503aa80","src_map_tsada.md":"a63d0bb5","src_unit_loginboolean.md":"3d5e1a82","src_unit_movement.md":"3a7d833a","src_unit_spawnunit_spawnprojectile.md":"d50999f9","src_unit_turret.md":"d370e296","api-dev.md":"8b5f2e0b","src_unit_attack.md":"edc0ab14","src_rw-engine_quick-start.md":"921da213","src_unit_core.md":"256fd341","src_unit_canbuild.md":"7116106c","src_unit_graphics.md":"8ae7ad98"}
|
||||
|
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -5,7 +5,7 @@
|
|||
<meta name="viewport" content="width=device-width,initial-scale=1">
|
||||
<title>QuickStart | RW-API_Code</title>
|
||||
<meta name="description" content="Easy Code">
|
||||
<link rel="preload stylesheet" href="/assets/style.64b61861.css" as="style">
|
||||
<link rel="preload stylesheet" href="/assets/style.60fd59ec.css" as="style">
|
||||
|
||||
<script type="module" src="/assets/app.c8b52d8b.js"></script>
|
||||
<link rel="preload" href="/assets/inter-roman-latin.2ed14f66.woff2" as="font" type="font/woff2" crossorigin="">
|
||||
|
@ -46,7 +46,7 @@
|
|||
<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></div></div></main><footer class="VPDocFooter" data-v-6b87e69f data-v-37656e44><!--[--><!--]--><!----><nav class="prev-next" data-v-37656e44><div class="pager" data-v-37656e44><!----></div><div class="pager" data-v-37656e44><a class="pager-link next" href="/" data-v-37656e44><span class="desc" data-v-37656e44>下一篇文章</span><span class="title" data-v-37656e44>主页-Home</span></a></div></nav></footer><!--[--><!--]--></div></div></div><!--[--><!--]--></div></div><footer class="VPFooter has-sidebar" data-v-255ec12d data-v-e03eb2e1><div class="container" data-v-e03eb2e1><p class="message" data-v-e03eb2e1>Rosy-Code Ling Web Stuido</p><p class="copyright" data-v-e03eb2e1>Copyright © 2023-RW-API-Code</p></div></footer><!--[--><!--]--></div></div>
|
||||
<script>window.__VP_HASH_MAP__=JSON.parse("{\"src_rw-engine_quick-start.md\":\"921da213\",\"index.md\":\"f503aa80\",\"src_unit_attack.md\":\"ee8c1683\",\"src_unit_canbuild.md\":\"6c0f0f7c\",\"src_map_tsada.md\":\"a63d0bb5\",\"src_unit_core.md\":\"80041c56\",\"src_unit_graphics.md\":\"8ae7ad98\",\"src_debug_test.md\":\"5eb6a57a\",\"src_unit_spawnunit_spawnprojectile.md\":\"d50999f9\",\"src_unit_loginboolean.md\":\"cf27db17\",\"api-dev.md\":\"8b5f2e0b\",\"src_unit_movement.md\":\"1a6a3764\",\"src_unit_turret.md\":\"d370e296\"}");window.__VP_SITE_DATA__=JSON.parse("{\"lang\":\"en-US\",\"dir\":\"ltr\",\"title\":\"RW-API_Code\",\"description\":\"Easy Code\",\"base\":\"/\",\"head\":[],\"appearance\":true,\"themeConfig\":{\"nav\":[{\"text\":\"主页\",\"link\":\"/\"},{\"text\":\"单位API\",\"link\":\"/src/Unit/core\"},{\"text\":\"地图API\",\"link\":\"/src/Map/teada\"},{\"text\":\"调试API\",\"link\":\"/src/Debug/test\"},{\"text\":\"编写指南\",\"link\":\"/api-dev\"},{\"text\":\"RW-Engine指南\",\"link\":\"/src/RW-Engine/quick-start\"}],\"docFooter\":{\"prev\":\"上一篇文章\",\"next\":\"下一篇文章\"},\"sidebar\":[{\"text\":\"RW-API-Code\",\"items\":[{\"text\":\"主页-Home\",\"link\":\"/\"},{\"text\":\"-------------------------\",\"link\":\"\"},{\"text\":\"[API-单位组-Unit]\",\"link\":\"\"},{\"text\":\"核心-CORE\",\"link\":\"/src/Unit/core\"},{\"text\":\"可建造-CANBUILD\",\"link\":\"/src/Unit/canbuild\"},{\"text\":\"图像-GRAPHICS\",\"link\":\"/src/Unit/graphics\"},{\"text\":\"炮塔-TURRET\",\"link\":\"/src/Unit/turret\"},{\"text\":\"攻击-ATTACK\",\"link\":\"/src/Unit/attack\"},{\"text\":\"运动-MOVEMENT\",\"link\":\"/src/Unit/movement\"},{\"text\":\"逻辑-LOGIC\",\"link\":\"/src/Unit/loginboolean\"},{\"text\":\"刷兵/刷单位-SPAWN\",\"link\":\"/src/Unit/spawnunit_spawnprojectile\"},{\"text\":\"-------------------------\",\"link\":\"\"}]}],\"socialLinks\":[{\"icon\":\"github\",\"link\":\"https://github.com/LingASDJ/RW-API-Code/\"}],\"footer\":{\"message\":\"Rosy-Code Ling Web Stuido\",\"copyright\":\"Copyright © 2023-RW-API-Code\"},\"search\":{\"provider\":\"local\",\"options\":{\"locales\":{\"zh\":{\"translations\":{\"button\":{\"buttonText\":\"搜索文档\",\"buttonAriaLabel\":\"搜索文档\"},\"modal\":{\"noResultsText\":\"你干嘛~哎呦~无法找到相关结果\",\"resetButtonTitle\":\"清除查询条件\",\"footer\":{\"selectText\":\"选择\",\"navigateText\":\"切换\",\"closeText\":\"关闭\",\"closeKeyAriaLabel\":\"关闭\",\"selectKeyAriaLabel\":\"选择\",\"navigateUpKeyAriaLabel\":\"上一个\",\"navigateDownKeyAriaLabel\":\"下一个\"},\"backButtonTitle\":\"返回上一级\",\"displayDetails\":\"显示详情\"}}}},\"translations\":{\"button\":{\"buttonText\":\"搜索文档\",\"buttonAriaLabel\":\"搜索文档\"},\"modal\":{\"noResultsText\":\"无法找到相关结果\",\"resetButtonTitle\":\"清除查询条件\",\"footer\":{\"selectText\":\"选择\",\"navigateText\":\"切换\",\"closeText\":\"关闭\",\"closeKeyAriaLabel\":\"关闭\",\"selectKeyAriaLabel\":\"选择\",\"navigateUpKeyAriaLabel\":\"上一个\",\"navigateDownKeyAriaLabel\":\"下一个\"},\"backButtonTitle\":\"返回上一级\",\"displayDetails\":\"显示详情\"}}}}},\"locales\":{},\"scrollOffset\":90,\"cleanUrls\":true}");</script>
|
||||
<script>window.__VP_HASH_MAP__=JSON.parse("{\"src_debug_test.md\":\"5eb6a57a\",\"index.md\":\"f503aa80\",\"src_map_tsada.md\":\"a63d0bb5\",\"src_unit_loginboolean.md\":\"3d5e1a82\",\"src_unit_movement.md\":\"3a7d833a\",\"src_unit_spawnunit_spawnprojectile.md\":\"d50999f9\",\"src_unit_turret.md\":\"d370e296\",\"api-dev.md\":\"8b5f2e0b\",\"src_unit_attack.md\":\"edc0ab14\",\"src_rw-engine_quick-start.md\":\"921da213\",\"src_unit_core.md\":\"256fd341\",\"src_unit_canbuild.md\":\"7116106c\",\"src_unit_graphics.md\":\"8ae7ad98\"}");window.__VP_SITE_DATA__=JSON.parse("{\"lang\":\"en-US\",\"dir\":\"ltr\",\"title\":\"RW-API_Code\",\"description\":\"Easy Code\",\"base\":\"/\",\"head\":[],\"appearance\":true,\"themeConfig\":{\"nav\":[{\"text\":\"主页\",\"link\":\"/\"},{\"text\":\"单位API\",\"link\":\"/src/Unit/core\"},{\"text\":\"地图API\",\"link\":\"/src/Map/teada\"},{\"text\":\"调试API\",\"link\":\"/src/Debug/test\"},{\"text\":\"编写指南\",\"link\":\"/api-dev\"},{\"text\":\"RW-Engine指南\",\"link\":\"/src/RW-Engine/quick-start\"}],\"docFooter\":{\"prev\":\"上一篇文章\",\"next\":\"下一篇文章\"},\"sidebar\":[{\"text\":\"RW-API-Code\",\"items\":[{\"text\":\"主页-Home\",\"link\":\"/\"},{\"text\":\"-------------------------\",\"link\":\"\"},{\"text\":\"[API-单位组-Unit]\",\"link\":\"\"},{\"text\":\"核心-CORE\",\"link\":\"/src/Unit/core\"},{\"text\":\"可建造-CANBUILD\",\"link\":\"/src/Unit/canbuild\"},{\"text\":\"图像-GRAPHICS\",\"link\":\"/src/Unit/graphics\"},{\"text\":\"炮塔-TURRET\",\"link\":\"/src/Unit/turret\"},{\"text\":\"攻击-ATTACK\",\"link\":\"/src/Unit/attack\"},{\"text\":\"运动-MOVEMENT\",\"link\":\"/src/Unit/movement\"},{\"text\":\"逻辑-LOGIC\",\"link\":\"/src/Unit/loginboolean\"},{\"text\":\"刷兵/刷单位-SPAWN\",\"link\":\"/src/Unit/spawnunit_spawnprojectile\"},{\"text\":\"-------------------------\",\"link\":\"\"}]}],\"socialLinks\":[{\"icon\":\"github\",\"link\":\"https://github.com/LingASDJ/RW-API-Code/\"}],\"footer\":{\"message\":\"Rosy-Code Ling Web Stuido\",\"copyright\":\"Copyright © 2023-RW-API-Code\"},\"search\":{\"provider\":\"local\",\"options\":{\"locales\":{\"zh\":{\"translations\":{\"button\":{\"buttonText\":\"搜索文档\",\"buttonAriaLabel\":\"搜索文档\"},\"modal\":{\"noResultsText\":\"你干嘛~哎呦~无法找到相关结果\",\"resetButtonTitle\":\"清除查询条件\",\"footer\":{\"selectText\":\"选择\",\"navigateText\":\"切换\",\"closeText\":\"关闭\",\"closeKeyAriaLabel\":\"关闭\",\"selectKeyAriaLabel\":\"选择\",\"navigateUpKeyAriaLabel\":\"上一个\",\"navigateDownKeyAriaLabel\":\"下一个\"},\"backButtonTitle\":\"返回上一级\",\"displayDetails\":\"显示详情\"}}}},\"translations\":{\"button\":{\"buttonText\":\"搜索文档\",\"buttonAriaLabel\":\"搜索文档\"},\"modal\":{\"noResultsText\":\"无法找到相关结果\",\"resetButtonTitle\":\"清除查询条件\",\"footer\":{\"selectText\":\"选择\",\"navigateText\":\"切换\",\"closeText\":\"关闭\",\"closeKeyAriaLabel\":\"关闭\",\"selectKeyAriaLabel\":\"选择\",\"navigateUpKeyAriaLabel\":\"上一个\",\"navigateDownKeyAriaLabel\":\"下一个\"},\"backButtonTitle\":\"返回上一级\",\"displayDetails\":\"显示详情\"}}}}},\"locales\":{},\"scrollOffset\":90,\"cleanUrls\":true}");</script>
|
||||
|
||||
</body>
|
||||
</html>
|
|
@ -5,13 +5,13 @@
|
|||
<meta name="viewport" content="width=device-width,initial-scale=1">
|
||||
<title>[attack]组 | RW-API_Code</title>
|
||||
<meta name="description" content="Easy Code">
|
||||
<link rel="preload stylesheet" href="/assets/style.64b61861.css" as="style">
|
||||
<link rel="preload stylesheet" href="/assets/style.60fd59ec.css" as="style">
|
||||
|
||||
<script type="module" src="/assets/app.c8b52d8b.js"></script>
|
||||
<link rel="preload" href="/assets/inter-roman-latin.2ed14f66.woff2" as="font" type="font/woff2" crossorigin="">
|
||||
<link rel="modulepreload" href="/assets/chunks/framework.d377e0cc.js">
|
||||
<link rel="modulepreload" href="/assets/chunks/theme.83776ef3.js">
|
||||
<link rel="modulepreload" href="/assets/src_Unit_attack.md.ee8c1683.lean.js">
|
||||
<link rel="modulepreload" href="/assets/src_Unit_attack.md.edc0ab14.lean.js">
|
||||
<script id="check-dark-light">(()=>{const e=localStorage.getItem("vitepress-theme-appearance")||"",a=window.matchMedia("(prefers-color-scheme: dark)").matches;(!e||e==="auto"?a:e==="dark")&&document.documentElement.classList.add("dark")})();</script>
|
||||
</head>
|
||||
<body>
|
||||
|
@ -36,13 +36,13 @@
|
|||
<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-vxrUz" id="tab-b0TXDZ1" checked="checked"><label for="tab-b0TXDZ1">屑狐狸</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:#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-eL174" id="tab-T-tCgCA" checked="checked"><label for="tab-T-tCgCA">屑狐狸</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></div></div></main><footer class="VPDocFooter" data-v-6b87e69f data-v-37656e44><!--[--><!--]--><!----><nav class="prev-next" data-v-37656e44><div class="pager" data-v-37656e44><a class="pager-link prev" href="/src/Unit/turret" data-v-37656e44><span class="desc" data-v-37656e44>上一篇文章</span><span class="title" data-v-37656e44>炮塔-TURRET</span></a></div><div class="pager" data-v-37656e44><a class="pager-link next" href="/src/Unit/movement" data-v-37656e44><span class="desc" data-v-37656e44>下一篇文章</span><span class="title" data-v-37656e44>运动-MOVEMENT</span></a></div></nav></footer><!--[--><!--]--></div></div></div><!--[--><!--]--></div></div><footer class="VPFooter has-sidebar" data-v-255ec12d data-v-e03eb2e1><div class="container" data-v-e03eb2e1><p class="message" data-v-e03eb2e1>Rosy-Code Ling Web Stuido</p><p class="copyright" data-v-e03eb2e1>Copyright © 2023-RW-API-Code</p></div></footer><!--[--><!--]--></div></div>
|
||||
<script>window.__VP_HASH_MAP__=JSON.parse("{\"src_rw-engine_quick-start.md\":\"921da213\",\"index.md\":\"f503aa80\",\"src_unit_attack.md\":\"ee8c1683\",\"src_unit_canbuild.md\":\"6c0f0f7c\",\"src_map_tsada.md\":\"a63d0bb5\",\"src_unit_core.md\":\"80041c56\",\"src_unit_graphics.md\":\"8ae7ad98\",\"src_debug_test.md\":\"5eb6a57a\",\"src_unit_spawnunit_spawnprojectile.md\":\"d50999f9\",\"src_unit_loginboolean.md\":\"cf27db17\",\"api-dev.md\":\"8b5f2e0b\",\"src_unit_movement.md\":\"1a6a3764\",\"src_unit_turret.md\":\"d370e296\"}");window.__VP_SITE_DATA__=JSON.parse("{\"lang\":\"en-US\",\"dir\":\"ltr\",\"title\":\"RW-API_Code\",\"description\":\"Easy Code\",\"base\":\"/\",\"head\":[],\"appearance\":true,\"themeConfig\":{\"nav\":[{\"text\":\"主页\",\"link\":\"/\"},{\"text\":\"单位API\",\"link\":\"/src/Unit/core\"},{\"text\":\"地图API\",\"link\":\"/src/Map/teada\"},{\"text\":\"调试API\",\"link\":\"/src/Debug/test\"},{\"text\":\"编写指南\",\"link\":\"/api-dev\"},{\"text\":\"RW-Engine指南\",\"link\":\"/src/RW-Engine/quick-start\"}],\"docFooter\":{\"prev\":\"上一篇文章\",\"next\":\"下一篇文章\"},\"sidebar\":[{\"text\":\"RW-API-Code\",\"items\":[{\"text\":\"主页-Home\",\"link\":\"/\"},{\"text\":\"-------------------------\",\"link\":\"\"},{\"text\":\"[API-单位组-Unit]\",\"link\":\"\"},{\"text\":\"核心-CORE\",\"link\":\"/src/Unit/core\"},{\"text\":\"可建造-CANBUILD\",\"link\":\"/src/Unit/canbuild\"},{\"text\":\"图像-GRAPHICS\",\"link\":\"/src/Unit/graphics\"},{\"text\":\"炮塔-TURRET\",\"link\":\"/src/Unit/turret\"},{\"text\":\"攻击-ATTACK\",\"link\":\"/src/Unit/attack\"},{\"text\":\"运动-MOVEMENT\",\"link\":\"/src/Unit/movement\"},{\"text\":\"逻辑-LOGIC\",\"link\":\"/src/Unit/loginboolean\"},{\"text\":\"刷兵/刷单位-SPAWN\",\"link\":\"/src/Unit/spawnunit_spawnprojectile\"},{\"text\":\"-------------------------\",\"link\":\"\"}]}],\"socialLinks\":[{\"icon\":\"github\",\"link\":\"https://github.com/LingASDJ/RW-API-Code/\"}],\"footer\":{\"message\":\"Rosy-Code Ling Web Stuido\",\"copyright\":\"Copyright © 2023-RW-API-Code\"},\"search\":{\"provider\":\"local\",\"options\":{\"locales\":{\"zh\":{\"translations\":{\"button\":{\"buttonText\":\"搜索文档\",\"buttonAriaLabel\":\"搜索文档\"},\"modal\":{\"noResultsText\":\"你干嘛~哎呦~无法找到相关结果\",\"resetButtonTitle\":\"清除查询条件\",\"footer\":{\"selectText\":\"选择\",\"navigateText\":\"切换\",\"closeText\":\"关闭\",\"closeKeyAriaLabel\":\"关闭\",\"selectKeyAriaLabel\":\"选择\",\"navigateUpKeyAriaLabel\":\"上一个\",\"navigateDownKeyAriaLabel\":\"下一个\"},\"backButtonTitle\":\"返回上一级\",\"displayDetails\":\"显示详情\"}}}},\"translations\":{\"button\":{\"buttonText\":\"搜索文档\",\"buttonAriaLabel\":\"搜索文档\"},\"modal\":{\"noResultsText\":\"无法找到相关结果\",\"resetButtonTitle\":\"清除查询条件\",\"footer\":{\"selectText\":\"选择\",\"navigateText\":\"切换\",\"closeText\":\"关闭\",\"closeKeyAriaLabel\":\"关闭\",\"selectKeyAriaLabel\":\"选择\",\"navigateUpKeyAriaLabel\":\"上一个\",\"navigateDownKeyAriaLabel\":\"下一个\"},\"backButtonTitle\":\"返回上一级\",\"displayDetails\":\"显示详情\"}}}}},\"locales\":{},\"scrollOffset\":90,\"cleanUrls\":true}");</script>
|
||||
<script>window.__VP_HASH_MAP__=JSON.parse("{\"src_debug_test.md\":\"5eb6a57a\",\"index.md\":\"f503aa80\",\"src_map_tsada.md\":\"a63d0bb5\",\"src_unit_loginboolean.md\":\"3d5e1a82\",\"src_unit_movement.md\":\"3a7d833a\",\"src_unit_spawnunit_spawnprojectile.md\":\"d50999f9\",\"src_unit_turret.md\":\"d370e296\",\"api-dev.md\":\"8b5f2e0b\",\"src_unit_attack.md\":\"edc0ab14\",\"src_rw-engine_quick-start.md\":\"921da213\",\"src_unit_core.md\":\"256fd341\",\"src_unit_canbuild.md\":\"7116106c\",\"src_unit_graphics.md\":\"8ae7ad98\"}");window.__VP_SITE_DATA__=JSON.parse("{\"lang\":\"en-US\",\"dir\":\"ltr\",\"title\":\"RW-API_Code\",\"description\":\"Easy Code\",\"base\":\"/\",\"head\":[],\"appearance\":true,\"themeConfig\":{\"nav\":[{\"text\":\"主页\",\"link\":\"/\"},{\"text\":\"单位API\",\"link\":\"/src/Unit/core\"},{\"text\":\"地图API\",\"link\":\"/src/Map/teada\"},{\"text\":\"调试API\",\"link\":\"/src/Debug/test\"},{\"text\":\"编写指南\",\"link\":\"/api-dev\"},{\"text\":\"RW-Engine指南\",\"link\":\"/src/RW-Engine/quick-start\"}],\"docFooter\":{\"prev\":\"上一篇文章\",\"next\":\"下一篇文章\"},\"sidebar\":[{\"text\":\"RW-API-Code\",\"items\":[{\"text\":\"主页-Home\",\"link\":\"/\"},{\"text\":\"-------------------------\",\"link\":\"\"},{\"text\":\"[API-单位组-Unit]\",\"link\":\"\"},{\"text\":\"核心-CORE\",\"link\":\"/src/Unit/core\"},{\"text\":\"可建造-CANBUILD\",\"link\":\"/src/Unit/canbuild\"},{\"text\":\"图像-GRAPHICS\",\"link\":\"/src/Unit/graphics\"},{\"text\":\"炮塔-TURRET\",\"link\":\"/src/Unit/turret\"},{\"text\":\"攻击-ATTACK\",\"link\":\"/src/Unit/attack\"},{\"text\":\"运动-MOVEMENT\",\"link\":\"/src/Unit/movement\"},{\"text\":\"逻辑-LOGIC\",\"link\":\"/src/Unit/loginboolean\"},{\"text\":\"刷兵/刷单位-SPAWN\",\"link\":\"/src/Unit/spawnunit_spawnprojectile\"},{\"text\":\"-------------------------\",\"link\":\"\"}]}],\"socialLinks\":[{\"icon\":\"github\",\"link\":\"https://github.com/LingASDJ/RW-API-Code/\"}],\"footer\":{\"message\":\"Rosy-Code Ling Web Stuido\",\"copyright\":\"Copyright © 2023-RW-API-Code\"},\"search\":{\"provider\":\"local\",\"options\":{\"locales\":{\"zh\":{\"translations\":{\"button\":{\"buttonText\":\"搜索文档\",\"buttonAriaLabel\":\"搜索文档\"},\"modal\":{\"noResultsText\":\"你干嘛~哎呦~无法找到相关结果\",\"resetButtonTitle\":\"清除查询条件\",\"footer\":{\"selectText\":\"选择\",\"navigateText\":\"切换\",\"closeText\":\"关闭\",\"closeKeyAriaLabel\":\"关闭\",\"selectKeyAriaLabel\":\"选择\",\"navigateUpKeyAriaLabel\":\"上一个\",\"navigateDownKeyAriaLabel\":\"下一个\"},\"backButtonTitle\":\"返回上一级\",\"displayDetails\":\"显示详情\"}}}},\"translations\":{\"button\":{\"buttonText\":\"搜索文档\",\"buttonAriaLabel\":\"搜索文档\"},\"modal\":{\"noResultsText\":\"无法找到相关结果\",\"resetButtonTitle\":\"清除查询条件\",\"footer\":{\"selectText\":\"选择\",\"navigateText\":\"切换\",\"closeText\":\"关闭\",\"closeKeyAriaLabel\":\"关闭\",\"selectKeyAriaLabel\":\"选择\",\"navigateUpKeyAriaLabel\":\"上一个\",\"navigateDownKeyAriaLabel\":\"下一个\"},\"backButtonTitle\":\"返回上一级\",\"displayDetails\":\"显示详情\"}}}}},\"locales\":{},\"scrollOffset\":90,\"cleanUrls\":true}");</script>
|
||||
|
||||
</body>
|
||||
</html>
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -5,7 +5,7 @@
|
|||
<meta name="viewport" content="width=device-width,initial-scale=1">
|
||||
<title>[graphics]图像组 | RW-API_Code</title>
|
||||
<meta name="description" content="Easy Code">
|
||||
<link rel="preload stylesheet" href="/assets/style.64b61861.css" as="style">
|
||||
<link rel="preload stylesheet" href="/assets/style.60fd59ec.css" as="style">
|
||||
|
||||
<script type="module" src="/assets/app.c8b52d8b.js"></script>
|
||||
<link rel="preload" href="/assets/inter-roman-latin.2ed14f66.woff2" as="font" type="font/woff2" crossorigin="">
|
||||
|
@ -185,7 +185,7 @@
|
|||
<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></div></div></main><footer class="VPDocFooter" data-v-6b87e69f data-v-37656e44><!--[--><!--]--><!----><nav class="prev-next" data-v-37656e44><div class="pager" data-v-37656e44><a class="pager-link prev" href="/src/Unit/canbuild" data-v-37656e44><span class="desc" data-v-37656e44>上一篇文章</span><span class="title" data-v-37656e44>可建造-CANBUILD</span></a></div><div class="pager" data-v-37656e44><a class="pager-link next" href="/src/Unit/turret" data-v-37656e44><span class="desc" data-v-37656e44>下一篇文章</span><span class="title" data-v-37656e44>炮塔-TURRET</span></a></div></nav></footer><!--[--><!--]--></div></div></div><!--[--><!--]--></div></div><footer class="VPFooter has-sidebar" data-v-255ec12d data-v-e03eb2e1><div class="container" data-v-e03eb2e1><p class="message" data-v-e03eb2e1>Rosy-Code Ling Web Stuido</p><p class="copyright" data-v-e03eb2e1>Copyright © 2023-RW-API-Code</p></div></footer><!--[--><!--]--></div></div>
|
||||
<script>window.__VP_HASH_MAP__=JSON.parse("{\"src_rw-engine_quick-start.md\":\"921da213\",\"index.md\":\"f503aa80\",\"src_unit_attack.md\":\"ee8c1683\",\"src_unit_canbuild.md\":\"6c0f0f7c\",\"src_map_tsada.md\":\"a63d0bb5\",\"src_unit_core.md\":\"80041c56\",\"src_unit_graphics.md\":\"8ae7ad98\",\"src_debug_test.md\":\"5eb6a57a\",\"src_unit_spawnunit_spawnprojectile.md\":\"d50999f9\",\"src_unit_loginboolean.md\":\"cf27db17\",\"api-dev.md\":\"8b5f2e0b\",\"src_unit_movement.md\":\"1a6a3764\",\"src_unit_turret.md\":\"d370e296\"}");window.__VP_SITE_DATA__=JSON.parse("{\"lang\":\"en-US\",\"dir\":\"ltr\",\"title\":\"RW-API_Code\",\"description\":\"Easy Code\",\"base\":\"/\",\"head\":[],\"appearance\":true,\"themeConfig\":{\"nav\":[{\"text\":\"主页\",\"link\":\"/\"},{\"text\":\"单位API\",\"link\":\"/src/Unit/core\"},{\"text\":\"地图API\",\"link\":\"/src/Map/teada\"},{\"text\":\"调试API\",\"link\":\"/src/Debug/test\"},{\"text\":\"编写指南\",\"link\":\"/api-dev\"},{\"text\":\"RW-Engine指南\",\"link\":\"/src/RW-Engine/quick-start\"}],\"docFooter\":{\"prev\":\"上一篇文章\",\"next\":\"下一篇文章\"},\"sidebar\":[{\"text\":\"RW-API-Code\",\"items\":[{\"text\":\"主页-Home\",\"link\":\"/\"},{\"text\":\"-------------------------\",\"link\":\"\"},{\"text\":\"[API-单位组-Unit]\",\"link\":\"\"},{\"text\":\"核心-CORE\",\"link\":\"/src/Unit/core\"},{\"text\":\"可建造-CANBUILD\",\"link\":\"/src/Unit/canbuild\"},{\"text\":\"图像-GRAPHICS\",\"link\":\"/src/Unit/graphics\"},{\"text\":\"炮塔-TURRET\",\"link\":\"/src/Unit/turret\"},{\"text\":\"攻击-ATTACK\",\"link\":\"/src/Unit/attack\"},{\"text\":\"运动-MOVEMENT\",\"link\":\"/src/Unit/movement\"},{\"text\":\"逻辑-LOGIC\",\"link\":\"/src/Unit/loginboolean\"},{\"text\":\"刷兵/刷单位-SPAWN\",\"link\":\"/src/Unit/spawnunit_spawnprojectile\"},{\"text\":\"-------------------------\",\"link\":\"\"}]}],\"socialLinks\":[{\"icon\":\"github\",\"link\":\"https://github.com/LingASDJ/RW-API-Code/\"}],\"footer\":{\"message\":\"Rosy-Code Ling Web Stuido\",\"copyright\":\"Copyright © 2023-RW-API-Code\"},\"search\":{\"provider\":\"local\",\"options\":{\"locales\":{\"zh\":{\"translations\":{\"button\":{\"buttonText\":\"搜索文档\",\"buttonAriaLabel\":\"搜索文档\"},\"modal\":{\"noResultsText\":\"你干嘛~哎呦~无法找到相关结果\",\"resetButtonTitle\":\"清除查询条件\",\"footer\":{\"selectText\":\"选择\",\"navigateText\":\"切换\",\"closeText\":\"关闭\",\"closeKeyAriaLabel\":\"关闭\",\"selectKeyAriaLabel\":\"选择\",\"navigateUpKeyAriaLabel\":\"上一个\",\"navigateDownKeyAriaLabel\":\"下一个\"},\"backButtonTitle\":\"返回上一级\",\"displayDetails\":\"显示详情\"}}}},\"translations\":{\"button\":{\"buttonText\":\"搜索文档\",\"buttonAriaLabel\":\"搜索文档\"},\"modal\":{\"noResultsText\":\"无法找到相关结果\",\"resetButtonTitle\":\"清除查询条件\",\"footer\":{\"selectText\":\"选择\",\"navigateText\":\"切换\",\"closeText\":\"关闭\",\"closeKeyAriaLabel\":\"关闭\",\"selectKeyAriaLabel\":\"选择\",\"navigateUpKeyAriaLabel\":\"上一个\",\"navigateDownKeyAriaLabel\":\"下一个\"},\"backButtonTitle\":\"返回上一级\",\"displayDetails\":\"显示详情\"}}}}},\"locales\":{},\"scrollOffset\":90,\"cleanUrls\":true}");</script>
|
||||
<script>window.__VP_HASH_MAP__=JSON.parse("{\"src_debug_test.md\":\"5eb6a57a\",\"index.md\":\"f503aa80\",\"src_map_tsada.md\":\"a63d0bb5\",\"src_unit_loginboolean.md\":\"3d5e1a82\",\"src_unit_movement.md\":\"3a7d833a\",\"src_unit_spawnunit_spawnprojectile.md\":\"d50999f9\",\"src_unit_turret.md\":\"d370e296\",\"api-dev.md\":\"8b5f2e0b\",\"src_unit_attack.md\":\"edc0ab14\",\"src_rw-engine_quick-start.md\":\"921da213\",\"src_unit_core.md\":\"256fd341\",\"src_unit_canbuild.md\":\"7116106c\",\"src_unit_graphics.md\":\"8ae7ad98\"}");window.__VP_SITE_DATA__=JSON.parse("{\"lang\":\"en-US\",\"dir\":\"ltr\",\"title\":\"RW-API_Code\",\"description\":\"Easy Code\",\"base\":\"/\",\"head\":[],\"appearance\":true,\"themeConfig\":{\"nav\":[{\"text\":\"主页\",\"link\":\"/\"},{\"text\":\"单位API\",\"link\":\"/src/Unit/core\"},{\"text\":\"地图API\",\"link\":\"/src/Map/teada\"},{\"text\":\"调试API\",\"link\":\"/src/Debug/test\"},{\"text\":\"编写指南\",\"link\":\"/api-dev\"},{\"text\":\"RW-Engine指南\",\"link\":\"/src/RW-Engine/quick-start\"}],\"docFooter\":{\"prev\":\"上一篇文章\",\"next\":\"下一篇文章\"},\"sidebar\":[{\"text\":\"RW-API-Code\",\"items\":[{\"text\":\"主页-Home\",\"link\":\"/\"},{\"text\":\"-------------------------\",\"link\":\"\"},{\"text\":\"[API-单位组-Unit]\",\"link\":\"\"},{\"text\":\"核心-CORE\",\"link\":\"/src/Unit/core\"},{\"text\":\"可建造-CANBUILD\",\"link\":\"/src/Unit/canbuild\"},{\"text\":\"图像-GRAPHICS\",\"link\":\"/src/Unit/graphics\"},{\"text\":\"炮塔-TURRET\",\"link\":\"/src/Unit/turret\"},{\"text\":\"攻击-ATTACK\",\"link\":\"/src/Unit/attack\"},{\"text\":\"运动-MOVEMENT\",\"link\":\"/src/Unit/movement\"},{\"text\":\"逻辑-LOGIC\",\"link\":\"/src/Unit/loginboolean\"},{\"text\":\"刷兵/刷单位-SPAWN\",\"link\":\"/src/Unit/spawnunit_spawnprojectile\"},{\"text\":\"-------------------------\",\"link\":\"\"}]}],\"socialLinks\":[{\"icon\":\"github\",\"link\":\"https://github.com/LingASDJ/RW-API-Code/\"}],\"footer\":{\"message\":\"Rosy-Code Ling Web Stuido\",\"copyright\":\"Copyright © 2023-RW-API-Code\"},\"search\":{\"provider\":\"local\",\"options\":{\"locales\":{\"zh\":{\"translations\":{\"button\":{\"buttonText\":\"搜索文档\",\"buttonAriaLabel\":\"搜索文档\"},\"modal\":{\"noResultsText\":\"你干嘛~哎呦~无法找到相关结果\",\"resetButtonTitle\":\"清除查询条件\",\"footer\":{\"selectText\":\"选择\",\"navigateText\":\"切换\",\"closeText\":\"关闭\",\"closeKeyAriaLabel\":\"关闭\",\"selectKeyAriaLabel\":\"选择\",\"navigateUpKeyAriaLabel\":\"上一个\",\"navigateDownKeyAriaLabel\":\"下一个\"},\"backButtonTitle\":\"返回上一级\",\"displayDetails\":\"显示详情\"}}}},\"translations\":{\"button\":{\"buttonText\":\"搜索文档\",\"buttonAriaLabel\":\"搜索文档\"},\"modal\":{\"noResultsText\":\"无法找到相关结果\",\"resetButtonTitle\":\"清除查询条件\",\"footer\":{\"selectText\":\"选择\",\"navigateText\":\"切换\",\"closeText\":\"关闭\",\"closeKeyAriaLabel\":\"关闭\",\"selectKeyAriaLabel\":\"选择\",\"navigateUpKeyAriaLabel\":\"上一个\",\"navigateDownKeyAriaLabel\":\"下一个\"},\"backButtonTitle\":\"返回上一级\",\"displayDetails\":\"显示详情\"}}}}},\"locales\":{},\"scrollOffset\":90,\"cleanUrls\":true}");</script>
|
||||
|
||||
</body>
|
||||
</html>
|
File diff suppressed because one or more lines are too long
|
@ -5,13 +5,13 @@
|
|||
<meta name="viewport" content="width=device-width,initial-scale=1">
|
||||
<title>[movement]组 | RW-API_Code</title>
|
||||
<meta name="description" content="Easy Code">
|
||||
<link rel="preload stylesheet" href="/assets/style.64b61861.css" as="style">
|
||||
<link rel="preload stylesheet" href="/assets/style.60fd59ec.css" as="style">
|
||||
|
||||
<script type="module" src="/assets/app.c8b52d8b.js"></script>
|
||||
<link rel="preload" href="/assets/inter-roman-latin.2ed14f66.woff2" as="font" type="font/woff2" crossorigin="">
|
||||
<link rel="modulepreload" href="/assets/chunks/framework.d377e0cc.js">
|
||||
<link rel="modulepreload" href="/assets/chunks/theme.83776ef3.js">
|
||||
<link rel="modulepreload" href="/assets/src_Unit_movement.md.1a6a3764.lean.js">
|
||||
<link rel="modulepreload" href="/assets/src_Unit_movement.md.3a7d833a.lean.js">
|
||||
<script id="check-dark-light">(()=>{const e=localStorage.getItem("vitepress-theme-appearance")||"",a=window.matchMedia("(prefers-color-scheme: dark)").matches;(!e||e==="auto"?a:e==="dark")&&document.documentElement.classList.add("dark")})();</script>
|
||||
</head>
|
||||
<body>
|
||||
|
@ -26,7 +26,7 @@
|
|||
<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-V13VA" id="tab-4MrFIlq" checked="checked"><label for="tab-4MrFIlq">摸鱼人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:#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-mVy4P" id="tab-Pye9b44" checked="checked"><label for="tab-Pye9b44">摸鱼人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>
|
||||
|
@ -48,7 +48,7 @@
|
|||
<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></div></div></main><footer class="VPDocFooter" data-v-6b87e69f data-v-37656e44><!--[--><!--]--><!----><nav class="prev-next" data-v-37656e44><div class="pager" data-v-37656e44><a class="pager-link prev" href="/src/Unit/attack" data-v-37656e44><span class="desc" data-v-37656e44>上一篇文章</span><span class="title" data-v-37656e44>攻击-ATTACK</span></a></div><div class="pager" data-v-37656e44><a class="pager-link next" href="/src/Unit/loginboolean" data-v-37656e44><span class="desc" data-v-37656e44>下一篇文章</span><span class="title" data-v-37656e44>逻辑-LOGIC</span></a></div></nav></footer><!--[--><!--]--></div></div></div><!--[--><!--]--></div></div><footer class="VPFooter has-sidebar" data-v-255ec12d data-v-e03eb2e1><div class="container" data-v-e03eb2e1><p class="message" data-v-e03eb2e1>Rosy-Code Ling Web Stuido</p><p class="copyright" data-v-e03eb2e1>Copyright © 2023-RW-API-Code</p></div></footer><!--[--><!--]--></div></div>
|
||||
<script>window.__VP_HASH_MAP__=JSON.parse("{\"src_rw-engine_quick-start.md\":\"921da213\",\"index.md\":\"f503aa80\",\"src_unit_attack.md\":\"ee8c1683\",\"src_unit_canbuild.md\":\"6c0f0f7c\",\"src_map_tsada.md\":\"a63d0bb5\",\"src_unit_core.md\":\"80041c56\",\"src_unit_graphics.md\":\"8ae7ad98\",\"src_debug_test.md\":\"5eb6a57a\",\"src_unit_spawnunit_spawnprojectile.md\":\"d50999f9\",\"src_unit_loginboolean.md\":\"cf27db17\",\"api-dev.md\":\"8b5f2e0b\",\"src_unit_movement.md\":\"1a6a3764\",\"src_unit_turret.md\":\"d370e296\"}");window.__VP_SITE_DATA__=JSON.parse("{\"lang\":\"en-US\",\"dir\":\"ltr\",\"title\":\"RW-API_Code\",\"description\":\"Easy Code\",\"base\":\"/\",\"head\":[],\"appearance\":true,\"themeConfig\":{\"nav\":[{\"text\":\"主页\",\"link\":\"/\"},{\"text\":\"单位API\",\"link\":\"/src/Unit/core\"},{\"text\":\"地图API\",\"link\":\"/src/Map/teada\"},{\"text\":\"调试API\",\"link\":\"/src/Debug/test\"},{\"text\":\"编写指南\",\"link\":\"/api-dev\"},{\"text\":\"RW-Engine指南\",\"link\":\"/src/RW-Engine/quick-start\"}],\"docFooter\":{\"prev\":\"上一篇文章\",\"next\":\"下一篇文章\"},\"sidebar\":[{\"text\":\"RW-API-Code\",\"items\":[{\"text\":\"主页-Home\",\"link\":\"/\"},{\"text\":\"-------------------------\",\"link\":\"\"},{\"text\":\"[API-单位组-Unit]\",\"link\":\"\"},{\"text\":\"核心-CORE\",\"link\":\"/src/Unit/core\"},{\"text\":\"可建造-CANBUILD\",\"link\":\"/src/Unit/canbuild\"},{\"text\":\"图像-GRAPHICS\",\"link\":\"/src/Unit/graphics\"},{\"text\":\"炮塔-TURRET\",\"link\":\"/src/Unit/turret\"},{\"text\":\"攻击-ATTACK\",\"link\":\"/src/Unit/attack\"},{\"text\":\"运动-MOVEMENT\",\"link\":\"/src/Unit/movement\"},{\"text\":\"逻辑-LOGIC\",\"link\":\"/src/Unit/loginboolean\"},{\"text\":\"刷兵/刷单位-SPAWN\",\"link\":\"/src/Unit/spawnunit_spawnprojectile\"},{\"text\":\"-------------------------\",\"link\":\"\"}]}],\"socialLinks\":[{\"icon\":\"github\",\"link\":\"https://github.com/LingASDJ/RW-API-Code/\"}],\"footer\":{\"message\":\"Rosy-Code Ling Web Stuido\",\"copyright\":\"Copyright © 2023-RW-API-Code\"},\"search\":{\"provider\":\"local\",\"options\":{\"locales\":{\"zh\":{\"translations\":{\"button\":{\"buttonText\":\"搜索文档\",\"buttonAriaLabel\":\"搜索文档\"},\"modal\":{\"noResultsText\":\"你干嘛~哎呦~无法找到相关结果\",\"resetButtonTitle\":\"清除查询条件\",\"footer\":{\"selectText\":\"选择\",\"navigateText\":\"切换\",\"closeText\":\"关闭\",\"closeKeyAriaLabel\":\"关闭\",\"selectKeyAriaLabel\":\"选择\",\"navigateUpKeyAriaLabel\":\"上一个\",\"navigateDownKeyAriaLabel\":\"下一个\"},\"backButtonTitle\":\"返回上一级\",\"displayDetails\":\"显示详情\"}}}},\"translations\":{\"button\":{\"buttonText\":\"搜索文档\",\"buttonAriaLabel\":\"搜索文档\"},\"modal\":{\"noResultsText\":\"无法找到相关结果\",\"resetButtonTitle\":\"清除查询条件\",\"footer\":{\"selectText\":\"选择\",\"navigateText\":\"切换\",\"closeText\":\"关闭\",\"closeKeyAriaLabel\":\"关闭\",\"selectKeyAriaLabel\":\"选择\",\"navigateUpKeyAriaLabel\":\"上一个\",\"navigateDownKeyAriaLabel\":\"下一个\"},\"backButtonTitle\":\"返回上一级\",\"displayDetails\":\"显示详情\"}}}}},\"locales\":{},\"scrollOffset\":90,\"cleanUrls\":true}");</script>
|
||||
<script>window.__VP_HASH_MAP__=JSON.parse("{\"src_debug_test.md\":\"5eb6a57a\",\"index.md\":\"f503aa80\",\"src_map_tsada.md\":\"a63d0bb5\",\"src_unit_loginboolean.md\":\"3d5e1a82\",\"src_unit_movement.md\":\"3a7d833a\",\"src_unit_spawnunit_spawnprojectile.md\":\"d50999f9\",\"src_unit_turret.md\":\"d370e296\",\"api-dev.md\":\"8b5f2e0b\",\"src_unit_attack.md\":\"edc0ab14\",\"src_rw-engine_quick-start.md\":\"921da213\",\"src_unit_core.md\":\"256fd341\",\"src_unit_canbuild.md\":\"7116106c\",\"src_unit_graphics.md\":\"8ae7ad98\"}");window.__VP_SITE_DATA__=JSON.parse("{\"lang\":\"en-US\",\"dir\":\"ltr\",\"title\":\"RW-API_Code\",\"description\":\"Easy Code\",\"base\":\"/\",\"head\":[],\"appearance\":true,\"themeConfig\":{\"nav\":[{\"text\":\"主页\",\"link\":\"/\"},{\"text\":\"单位API\",\"link\":\"/src/Unit/core\"},{\"text\":\"地图API\",\"link\":\"/src/Map/teada\"},{\"text\":\"调试API\",\"link\":\"/src/Debug/test\"},{\"text\":\"编写指南\",\"link\":\"/api-dev\"},{\"text\":\"RW-Engine指南\",\"link\":\"/src/RW-Engine/quick-start\"}],\"docFooter\":{\"prev\":\"上一篇文章\",\"next\":\"下一篇文章\"},\"sidebar\":[{\"text\":\"RW-API-Code\",\"items\":[{\"text\":\"主页-Home\",\"link\":\"/\"},{\"text\":\"-------------------------\",\"link\":\"\"},{\"text\":\"[API-单位组-Unit]\",\"link\":\"\"},{\"text\":\"核心-CORE\",\"link\":\"/src/Unit/core\"},{\"text\":\"可建造-CANBUILD\",\"link\":\"/src/Unit/canbuild\"},{\"text\":\"图像-GRAPHICS\",\"link\":\"/src/Unit/graphics\"},{\"text\":\"炮塔-TURRET\",\"link\":\"/src/Unit/turret\"},{\"text\":\"攻击-ATTACK\",\"link\":\"/src/Unit/attack\"},{\"text\":\"运动-MOVEMENT\",\"link\":\"/src/Unit/movement\"},{\"text\":\"逻辑-LOGIC\",\"link\":\"/src/Unit/loginboolean\"},{\"text\":\"刷兵/刷单位-SPAWN\",\"link\":\"/src/Unit/spawnunit_spawnprojectile\"},{\"text\":\"-------------------------\",\"link\":\"\"}]}],\"socialLinks\":[{\"icon\":\"github\",\"link\":\"https://github.com/LingASDJ/RW-API-Code/\"}],\"footer\":{\"message\":\"Rosy-Code Ling Web Stuido\",\"copyright\":\"Copyright © 2023-RW-API-Code\"},\"search\":{\"provider\":\"local\",\"options\":{\"locales\":{\"zh\":{\"translations\":{\"button\":{\"buttonText\":\"搜索文档\",\"buttonAriaLabel\":\"搜索文档\"},\"modal\":{\"noResultsText\":\"你干嘛~哎呦~无法找到相关结果\",\"resetButtonTitle\":\"清除查询条件\",\"footer\":{\"selectText\":\"选择\",\"navigateText\":\"切换\",\"closeText\":\"关闭\",\"closeKeyAriaLabel\":\"关闭\",\"selectKeyAriaLabel\":\"选择\",\"navigateUpKeyAriaLabel\":\"上一个\",\"navigateDownKeyAriaLabel\":\"下一个\"},\"backButtonTitle\":\"返回上一级\",\"displayDetails\":\"显示详情\"}}}},\"translations\":{\"button\":{\"buttonText\":\"搜索文档\",\"buttonAriaLabel\":\"搜索文档\"},\"modal\":{\"noResultsText\":\"无法找到相关结果\",\"resetButtonTitle\":\"清除查询条件\",\"footer\":{\"selectText\":\"选择\",\"navigateText\":\"切换\",\"closeText\":\"关闭\",\"closeKeyAriaLabel\":\"关闭\",\"selectKeyAriaLabel\":\"选择\",\"navigateUpKeyAriaLabel\":\"上一个\",\"navigateDownKeyAriaLabel\":\"下一个\"},\"backButtonTitle\":\"返回上一级\",\"displayDetails\":\"显示详情\"}}}}},\"locales\":{},\"scrollOffset\":90,\"cleanUrls\":true}");</script>
|
||||
|
||||
</body>
|
||||
</html>
|
File diff suppressed because one or more lines are too long
|
@ -5,7 +5,7 @@
|
|||
<meta name="viewport" content="width=device-width,initial-scale=1">
|
||||
<title>[turret]组 | RW-API_Code</title>
|
||||
<meta name="description" content="Easy Code">
|
||||
<link rel="preload stylesheet" href="/assets/style.64b61861.css" as="style">
|
||||
<link rel="preload stylesheet" href="/assets/style.60fd59ec.css" as="style">
|
||||
|
||||
<script type="module" src="/assets/app.c8b52d8b.js"></script>
|
||||
<link rel="preload" href="/assets/inter-roman-latin.2ed14f66.woff2" as="font" type="font/woff2" crossorigin="">
|
||||
|
@ -92,7 +92,7 @@
|
|||
<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></div></div></main><footer class="VPDocFooter" data-v-6b87e69f data-v-37656e44><!--[--><!--]--><!----><nav class="prev-next" data-v-37656e44><div class="pager" data-v-37656e44><a class="pager-link prev" href="/src/Unit/graphics" data-v-37656e44><span class="desc" data-v-37656e44>上一篇文章</span><span class="title" data-v-37656e44>图像-GRAPHICS</span></a></div><div class="pager" data-v-37656e44><a class="pager-link next" href="/src/Unit/attack" data-v-37656e44><span class="desc" data-v-37656e44>下一篇文章</span><span class="title" data-v-37656e44>攻击-ATTACK</span></a></div></nav></footer><!--[--><!--]--></div></div></div><!--[--><!--]--></div></div><footer class="VPFooter has-sidebar" data-v-255ec12d data-v-e03eb2e1><div class="container" data-v-e03eb2e1><p class="message" data-v-e03eb2e1>Rosy-Code Ling Web Stuido</p><p class="copyright" data-v-e03eb2e1>Copyright © 2023-RW-API-Code</p></div></footer><!--[--><!--]--></div></div>
|
||||
<script>window.__VP_HASH_MAP__=JSON.parse("{\"src_rw-engine_quick-start.md\":\"921da213\",\"index.md\":\"f503aa80\",\"src_unit_attack.md\":\"ee8c1683\",\"src_unit_canbuild.md\":\"6c0f0f7c\",\"src_map_tsada.md\":\"a63d0bb5\",\"src_unit_core.md\":\"80041c56\",\"src_unit_graphics.md\":\"8ae7ad98\",\"src_debug_test.md\":\"5eb6a57a\",\"src_unit_spawnunit_spawnprojectile.md\":\"d50999f9\",\"src_unit_loginboolean.md\":\"cf27db17\",\"api-dev.md\":\"8b5f2e0b\",\"src_unit_movement.md\":\"1a6a3764\",\"src_unit_turret.md\":\"d370e296\"}");window.__VP_SITE_DATA__=JSON.parse("{\"lang\":\"en-US\",\"dir\":\"ltr\",\"title\":\"RW-API_Code\",\"description\":\"Easy Code\",\"base\":\"/\",\"head\":[],\"appearance\":true,\"themeConfig\":{\"nav\":[{\"text\":\"主页\",\"link\":\"/\"},{\"text\":\"单位API\",\"link\":\"/src/Unit/core\"},{\"text\":\"地图API\",\"link\":\"/src/Map/teada\"},{\"text\":\"调试API\",\"link\":\"/src/Debug/test\"},{\"text\":\"编写指南\",\"link\":\"/api-dev\"},{\"text\":\"RW-Engine指南\",\"link\":\"/src/RW-Engine/quick-start\"}],\"docFooter\":{\"prev\":\"上一篇文章\",\"next\":\"下一篇文章\"},\"sidebar\":[{\"text\":\"RW-API-Code\",\"items\":[{\"text\":\"主页-Home\",\"link\":\"/\"},{\"text\":\"-------------------------\",\"link\":\"\"},{\"text\":\"[API-单位组-Unit]\",\"link\":\"\"},{\"text\":\"核心-CORE\",\"link\":\"/src/Unit/core\"},{\"text\":\"可建造-CANBUILD\",\"link\":\"/src/Unit/canbuild\"},{\"text\":\"图像-GRAPHICS\",\"link\":\"/src/Unit/graphics\"},{\"text\":\"炮塔-TURRET\",\"link\":\"/src/Unit/turret\"},{\"text\":\"攻击-ATTACK\",\"link\":\"/src/Unit/attack\"},{\"text\":\"运动-MOVEMENT\",\"link\":\"/src/Unit/movement\"},{\"text\":\"逻辑-LOGIC\",\"link\":\"/src/Unit/loginboolean\"},{\"text\":\"刷兵/刷单位-SPAWN\",\"link\":\"/src/Unit/spawnunit_spawnprojectile\"},{\"text\":\"-------------------------\",\"link\":\"\"}]}],\"socialLinks\":[{\"icon\":\"github\",\"link\":\"https://github.com/LingASDJ/RW-API-Code/\"}],\"footer\":{\"message\":\"Rosy-Code Ling Web Stuido\",\"copyright\":\"Copyright © 2023-RW-API-Code\"},\"search\":{\"provider\":\"local\",\"options\":{\"locales\":{\"zh\":{\"translations\":{\"button\":{\"buttonText\":\"搜索文档\",\"buttonAriaLabel\":\"搜索文档\"},\"modal\":{\"noResultsText\":\"你干嘛~哎呦~无法找到相关结果\",\"resetButtonTitle\":\"清除查询条件\",\"footer\":{\"selectText\":\"选择\",\"navigateText\":\"切换\",\"closeText\":\"关闭\",\"closeKeyAriaLabel\":\"关闭\",\"selectKeyAriaLabel\":\"选择\",\"navigateUpKeyAriaLabel\":\"上一个\",\"navigateDownKeyAriaLabel\":\"下一个\"},\"backButtonTitle\":\"返回上一级\",\"displayDetails\":\"显示详情\"}}}},\"translations\":{\"button\":{\"buttonText\":\"搜索文档\",\"buttonAriaLabel\":\"搜索文档\"},\"modal\":{\"noResultsText\":\"无法找到相关结果\",\"resetButtonTitle\":\"清除查询条件\",\"footer\":{\"selectText\":\"选择\",\"navigateText\":\"切换\",\"closeText\":\"关闭\",\"closeKeyAriaLabel\":\"关闭\",\"selectKeyAriaLabel\":\"选择\",\"navigateUpKeyAriaLabel\":\"上一个\",\"navigateDownKeyAriaLabel\":\"下一个\"},\"backButtonTitle\":\"返回上一级\",\"displayDetails\":\"显示详情\"}}}}},\"locales\":{},\"scrollOffset\":90,\"cleanUrls\":true}");</script>
|
||||
<script>window.__VP_HASH_MAP__=JSON.parse("{\"src_debug_test.md\":\"5eb6a57a\",\"index.md\":\"f503aa80\",\"src_map_tsada.md\":\"a63d0bb5\",\"src_unit_loginboolean.md\":\"3d5e1a82\",\"src_unit_movement.md\":\"3a7d833a\",\"src_unit_spawnunit_spawnprojectile.md\":\"d50999f9\",\"src_unit_turret.md\":\"d370e296\",\"api-dev.md\":\"8b5f2e0b\",\"src_unit_attack.md\":\"edc0ab14\",\"src_rw-engine_quick-start.md\":\"921da213\",\"src_unit_core.md\":\"256fd341\",\"src_unit_canbuild.md\":\"7116106c\",\"src_unit_graphics.md\":\"8ae7ad98\"}");window.__VP_SITE_DATA__=JSON.parse("{\"lang\":\"en-US\",\"dir\":\"ltr\",\"title\":\"RW-API_Code\",\"description\":\"Easy Code\",\"base\":\"/\",\"head\":[],\"appearance\":true,\"themeConfig\":{\"nav\":[{\"text\":\"主页\",\"link\":\"/\"},{\"text\":\"单位API\",\"link\":\"/src/Unit/core\"},{\"text\":\"地图API\",\"link\":\"/src/Map/teada\"},{\"text\":\"调试API\",\"link\":\"/src/Debug/test\"},{\"text\":\"编写指南\",\"link\":\"/api-dev\"},{\"text\":\"RW-Engine指南\",\"link\":\"/src/RW-Engine/quick-start\"}],\"docFooter\":{\"prev\":\"上一篇文章\",\"next\":\"下一篇文章\"},\"sidebar\":[{\"text\":\"RW-API-Code\",\"items\":[{\"text\":\"主页-Home\",\"link\":\"/\"},{\"text\":\"-------------------------\",\"link\":\"\"},{\"text\":\"[API-单位组-Unit]\",\"link\":\"\"},{\"text\":\"核心-CORE\",\"link\":\"/src/Unit/core\"},{\"text\":\"可建造-CANBUILD\",\"link\":\"/src/Unit/canbuild\"},{\"text\":\"图像-GRAPHICS\",\"link\":\"/src/Unit/graphics\"},{\"text\":\"炮塔-TURRET\",\"link\":\"/src/Unit/turret\"},{\"text\":\"攻击-ATTACK\",\"link\":\"/src/Unit/attack\"},{\"text\":\"运动-MOVEMENT\",\"link\":\"/src/Unit/movement\"},{\"text\":\"逻辑-LOGIC\",\"link\":\"/src/Unit/loginboolean\"},{\"text\":\"刷兵/刷单位-SPAWN\",\"link\":\"/src/Unit/spawnunit_spawnprojectile\"},{\"text\":\"-------------------------\",\"link\":\"\"}]}],\"socialLinks\":[{\"icon\":\"github\",\"link\":\"https://github.com/LingASDJ/RW-API-Code/\"}],\"footer\":{\"message\":\"Rosy-Code Ling Web Stuido\",\"copyright\":\"Copyright © 2023-RW-API-Code\"},\"search\":{\"provider\":\"local\",\"options\":{\"locales\":{\"zh\":{\"translations\":{\"button\":{\"buttonText\":\"搜索文档\",\"buttonAriaLabel\":\"搜索文档\"},\"modal\":{\"noResultsText\":\"你干嘛~哎呦~无法找到相关结果\",\"resetButtonTitle\":\"清除查询条件\",\"footer\":{\"selectText\":\"选择\",\"navigateText\":\"切换\",\"closeText\":\"关闭\",\"closeKeyAriaLabel\":\"关闭\",\"selectKeyAriaLabel\":\"选择\",\"navigateUpKeyAriaLabel\":\"上一个\",\"navigateDownKeyAriaLabel\":\"下一个\"},\"backButtonTitle\":\"返回上一级\",\"displayDetails\":\"显示详情\"}}}},\"translations\":{\"button\":{\"buttonText\":\"搜索文档\",\"buttonAriaLabel\":\"搜索文档\"},\"modal\":{\"noResultsText\":\"无法找到相关结果\",\"resetButtonTitle\":\"清除查询条件\",\"footer\":{\"selectText\":\"选择\",\"navigateText\":\"切换\",\"closeText\":\"关闭\",\"closeKeyAriaLabel\":\"关闭\",\"selectKeyAriaLabel\":\"选择\",\"navigateUpKeyAriaLabel\":\"上一个\",\"navigateDownKeyAriaLabel\":\"下一个\"},\"backButtonTitle\":\"返回上一级\",\"displayDetails\":\"显示详情\"}}}}},\"locales\":{},\"scrollOffset\":90,\"cleanUrls\":true}");</script>
|
||||
|
||||
</body>
|
||||
</html>
|
Loading…
Reference in New Issue
Block a user