58 lines
35 KiB
HTML
58 lines
35 KiB
HTML
<!DOCTYPE html>
|
||
<html lang="en-US" dir="ltr">
|
||
<head>
|
||
<meta charset="utf-8">
|
||
<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.281671c4.css" as="style">
|
||
<script type="module" src="/assets/app.9ee7a110.js"></script>
|
||
<link rel="preload" href="/assets/inter-roman-latin.2ed14f66.woff2" as="font" type="font/woff2" crossorigin="">
|
||
<link rel="modulepreload" href="/assets/chunks/framework.fcc0bf38.js">
|
||
<link rel="modulepreload" href="/assets/chunks/theme.9136979b.js">
|
||
<link rel="modulepreload" href="/assets/api-dev.md.447d3fe1.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>
|
||
<div id="app"><div class="Layout" data-v-fd8ce0a8 data-v-3c244f5c><!--[--><!--]--><!--[--><span tabindex="-1" data-v-73b6253a></span><a href="#VPContent" class="VPSkipLink visually-hidden" data-v-73b6253a> Skip to content </a><!--]--><!----><header class="VPNav" data-v-3c244f5c data-v-33cc23ee><div class="VPNavBar has-sidebar" data-v-33cc23ee data-v-36d3d8dd><div class="container" data-v-36d3d8dd><div class="title" data-v-36d3d8dd><div class="VPNavBarTitle has-sidebar" data-v-36d3d8dd data-v-d81da18f><a class="title" href="/" data-v-d81da18f><!--[--><!--]--><!----><!--[-->RW-API_Code<!--]--><!--[--><!--]--></a></div></div><div class="content" data-v-36d3d8dd><div class="curtain" data-v-36d3d8dd></div><div class="content-body" data-v-36d3d8dd><!--[--><!--]--><div class="VPNavBarSearch search" style="--vp-meta-key:'Meta';" data-v-36d3d8dd><!--[--><!----><div id="local-search"><button type="button" class="DocSearch DocSearch-Button" aria-label="Search"><span class="DocSearch-Button-Container"><svg class="DocSearch-Search-Icon" width="20" height="20" viewBox="0 0 20 20" aria-label="search icon"><path d="M14.386 14.386l4.0877 4.0877-4.0877-4.0877c-2.9418 2.9419-7.7115 2.9419-10.6533 0-2.9419-2.9418-2.9419-7.7115 0-10.6533 2.9418-2.9419 7.7115-2.9419 10.6533 0 2.9419 2.9418 2.9419 7.7115 0 10.6533z" stroke="currentColor" fill="none" fill-rule="evenodd" stroke-linecap="round" stroke-linejoin="round"></path></svg><span class="DocSearch-Button-Placeholder">搜索文档</span></span><span class="DocSearch-Button-Keys"><kbd class="DocSearch-Button-Key"></kbd><kbd class="DocSearch-Button-Key">K</kbd></span></button></div><!--]--></div><nav aria-labelledby="main-nav-aria-label" class="VPNavBarMenu menu" data-v-36d3d8dd data-v-daa24931><span id="main-nav-aria-label" class="visually-hidden" data-v-daa24931>Main Navigation</span><!--[--><!--[--><a class="VPLink link VPNavBarMenuLink" href="/" tabindex="0" data-v-daa24931 data-v-b351ab4d data-v-bd3e4450><!--[-->主页<!--]--><!----></a><!--]--><!--[--><a class="VPLink link VPNavBarMenuLink" href="/src/Unit/core" tabindex="0" data-v-daa24931 data-v-b351ab4d data-v-bd3e4450><!--[-->单位API<!--]--><!----></a><!--]--><!--[--><a class="VPLink link VPNavBarMenuLink" href="/src/Map/teada" tabindex="0" data-v-daa24931 data-v-b351ab4d data-v-bd3e4450><!--[-->地图API<!--]--><!----></a><!--]--><!--[--><a class="VPLink link VPNavBarMenuLink" href="/src/Debug/test" tabindex="0" data-v-daa24931 data-v-b351ab4d data-v-bd3e4450><!--[-->调试API<!--]--><!----></a><!--]--><!--[--><a class="VPLink link VPNavBarMenuLink active" href="/api-dev" tabindex="0" data-v-daa24931 data-v-b351ab4d data-v-bd3e4450><!--[-->编写指南<!--]--><!----></a><!--]--><!--[--><a class="VPLink link VPNavBarMenuLink" href="/src/RW-Engine/quick-start" tabindex="0" data-v-daa24931 data-v-b351ab4d data-v-bd3e4450><!--[-->RW-Engine指南<!--]--><!----></a><!--]--><!--[--><a class="VPLink link VPNavBarMenuLink" href="/cos" tabindex="0" data-v-daa24931 data-v-b351ab4d data-v-bd3e4450><!--[-->感谢名单<!--]--><!----></a><!--]--><!--]--></nav><!----><div class="VPNavBarAppearance appearance" data-v-36d3d8dd data-v-f16e3c43><label title="toggle dark mode" data-v-f16e3c43 data-v-156688fc><button class="VPSwitch VPSwitchAppearance" type="button" role="switch" aria-checked="false" data-v-156688fc data-v-32a8e9f6><span class="check" data-v-32a8e9f6><span class="icon" data-v-32a8e9f6><!--[--><svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false" viewbox="0 0 24 24" class="sun" data-v-156688fc><path d="M12,18c-3.3,0-6-2.7-6-6s2.7-6,6-6s6,2.7,6,6S15.3,18,12,18zM12,8c-2.2,0-4,1.8-4,4c0,2.2,1.8,4,4,4c2.2,0,4-1.8,4-4C16,9.8,14.2,8,12,8z"></path><path d="M12,4c-0.6,0-1-0.4-1-1V1c0-0.6,0.4-1,1-1s1,0.4,1,1v2C13,3.6,12.6,4,12,4z"></path><path d="M12,24c-0.6,0-1-0.4-1-1v-2c0-0.6,0.4-1,1-1s1,0.4,1,1v2C13,23.6,12.6,24,12,24z"></path><path d="M5.6,6.6c-0.3,0-0.5-0.1-0.7-0.3L3.5,4.9c-0.4-0.4-0.4-1,0-1.4s1-0.4,1.4,0l1.4,1.4c0.4,0.4,0.4,1,0,1.4C6.2,6.5,5.9,6.6,5.6,6.6z"></path><path d="M19.8,20.8c-0.3,0-0.5-0.1-0.7-0.3l-1.4-1.4c-0.4-0.4-0.4-1,0-1.4s1-0.4,1.4,0l1.4,1.4c0.4,0.4,0.4,1,0,1.4C20.3,20.7,20,20.8,19.8,20.8z"></path><path d="M3,13H1c-0.6,0-1-0.4-1-1s0.4-1,1-1h2c0.6,0,1,0.4,1,1S3.6,13,3,13z"></path><path d="M23,13h-2c-0.6,0-1-0.4-1-1s0.4-1,1-1h2c0.6,0,1,0.4,1,1S23.6,13,23,13z"></path><path d="M4.2,20.8c-0.3,0-0.5-0.1-0.7-0.3c-0.4-0.4-0.4-1,0-1.4l1.4-1.4c0.4-0.4,1-0.4,1.4,0s0.4,1,0,1.4l-1.4,1.4C4.7,20.7,4.5,20.8,4.2,20.8z"></path><path d="M18.4,6.6c-0.3,0-0.5-0.1-0.7-0.3c-0.4-0.4-0.4-1,0-1.4l1.4-1.4c0.4-0.4,1-0.4,1.4,0s0.4,1,0,1.4l-1.4,1.4C18.9,6.5,18.6,6.6,18.4,6.6z"></path></svg><svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false" viewbox="0 0 24 24" class="moon" data-v-156688fc><path d="M12.1,22c-0.3,0-0.6,0-0.9,0c-5.5-0.5-9.5-5.4-9-10.9c0.4-4.8,4.2-8.6,9-9c0.4,0,0.8,0.2,1,0.5c0.2,0.3,0.2,0.8-0.1,1.1c-2,2.7-1.4,6.4,1.3,8.4c2.1,1.6,5,1.6,7.1,0c0.3-0.2,0.7-0.3,1.1-0.1c0.3,0.2,0.5,0.6,0.5,1c-0.2,2.7-1.5,5.1-3.6,6.8C16.6,21.2,14.4,22,12.1,22zM9.3,4.4c-2.9,1-5,3.6-5.2,6.8c-0.4,4.4,2.8,8.3,7.2,8.7c2.1,0.2,4.2-0.4,5.8-1.8c1.1-0.9,1.9-2.1,2.4-3.4c-2.5,0.9-5.3,0.5-7.5-1.1C9.2,11.4,8.1,7.7,9.3,4.4z"></path></svg><!--]--></span></span></button></label></div><div class="VPSocialLinks VPNavBarSocialLinks social-links" data-v-36d3d8dd data-v-a5e6cbec data-v-37c7ef71><!--[--><a class="VPSocialLink" href="https://github.com/LingASDJ/RW-API-Code/" aria-label="github" target="_blank" rel="noopener" data-v-37c7ef71 data-v-7f013ed2><svg role="img" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><title>GitHub</title><path d="M12 .297c-6.63 0-12 5.373-12 12 0 5.303 3.438 9.8 8.205 11.385.6.113.82-.258.82-.577 0-.285-.01-1.04-.015-2.04-3.338.724-4.042-1.61-4.042-1.61C4.422 18.07 3.633 17.7 3.633 17.7c-1.087-.744.084-.729.084-.729 1.205.084 1.838 1.236 1.838 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3-5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523.105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873.12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92.42.36.81 1.096.81 2.22 0 1.606-.015 2.896-.015 3.286 0 .315.21.69.825.57C20.565 22.092 24 17.592 24 12.297c0-6.627-5.373-12-12-12"/></svg></a><!--]--></div><div class="VPFlyout VPNavBarExtra extra" data-v-36d3d8dd data-v-cfbeb720 data-v-b3146a5c><button type="button" class="button" aria-haspopup="true" aria-expanded="false" aria-label="extra navigation" data-v-b3146a5c><svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false" viewbox="0 0 24 24" class="icon" data-v-b3146a5c><circle cx="12" cy="12" r="2"></circle><circle cx="19" cy="12" r="2"></circle><circle cx="5" cy="12" r="2"></circle></svg></button><div class="menu" data-v-b3146a5c><div class="VPMenu" data-v-b3146a5c data-v-749602e2><!----><!--[--><!--[--><!----><div class="group" data-v-cfbeb720><div class="item appearance" data-v-cfbeb720><p class="label" data-v-cfbeb720>Appearance</p><div class="appearance-action" data-v-cfbeb720><label title="toggle dark mode" data-v-cfbeb720 data-v-156688fc><button class="VPSwitch VPSwitchAppearance" type="button" role="switch" aria-checked="false" data-v-156688fc data-v-32a8e9f6><span class="check" data-v-32a8e9f6><span class="icon" data-v-32a8e9f6><!--[--><svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false" viewbox="0 0 24 24" class="sun" data-v-156688fc><path d="M12,18c-3.3,0-6-2.7-6-6s2.7-6,6-6s6,2.7,6,6S15.3,18,12,18zM12,8c-2.2,0-4,1.8-4,4c0,2.2,1.8,4,4,4c2.2,0,4-1.8,4-4C16,9.8,14.2,8,12,8z"></path><path d="M12,4c-0.6,0-1-0.4-1-1V1c0-0.6,0.4-1,1-1s1,0.4,1,1v2C13,3.6,12.6,4,12,4z"></path><path d="M12,24c-0.6,0-1-0.4-1-1v-2c0-0.6,0.4-1,1-1s1,0.4,1,1v2C13,23.6,12.6,24,12,24z"></path><path d="M5.6,6.6c-0.3,0-0.5-0.1-0.7-0.3L3.5,4.9c-0.4-0.4-0.4-1,0-1.4s1-0.4,1.4,0l1.4,1.4c0.4,0.4,0.4,1,0,1.4C6.2,6.5,5.9,6.6,5.6,6.6z"></path><path d="M19.8,20.8c-0.3,0-0.5-0.1-0.7-0.3l-1.4-1.4c-0.4-0.4-0.4-1,0-1.4s1-0.4,1.4,0l1.4,1.4c0.4,0.4,0.4,1,0,1.4C20.3,20.7,20,20.8,19.8,20.8z"></path><path d="M3,13H1c-0.6,0-1-0.4-1-1s0.4-1,1-1h2c0.6,0,1,0.4,1,1S3.6,13,3,13z"></path><path d="M23,13h-2c-0.6,0-1-0.4-1-1s0.4-1,1-1h2c0.6,0,1,0.4,1,1S23.6,13,23,13z"></path><path d="M4.2,20.8c-0.3,0-0.5-0.1-0.7-0.3c-0.4-0.4-0.4-1,0-1.4l1.4-1.4c0.4-0.4,1-0.4,1.4,0s0.4,1,0,1.4l-1.4,1.4C4.7,20.7,4.5,20.8,4.2,20.8z"></path><path d="M18.4,6.6c-0.3,0-0.5-0.1-0.7-0.3c-0.4-0.4-0.4-1,0-1.4l1.4-1.4c0.4-0.4,1-0.4,1.4,0s0.4,1,0,1.4l-1.4,1.4C18.9,6.5,18.6,6.6,18.4,6.6z"></path></svg><svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false" viewbox="0 0 24 24" class="moon" data-v-156688fc><path d="M12.1,22c-0.3,0-0.6,0-0.9,0c-5.5-0.5-9.5-5.4-9-10.9c0.4-4.8,4.2-8.6,9-9c0.4,0,0.8,0.2,1,0.5c0.2,0.3,0.2,0.8-0.1,1.1c-2,2.7-1.4,6.4,1.3,8.4c2.1,1.6,5,1.6,7.1,0c0.3-0.2,0.7-0.3,1.1-0.1c0.3,0.2,0.5,0.6,0.5,1c-0.2,2.7-1.5,5.1-3.6,6.8C16.6,21.2,14.4,22,12.1,22zM9.3,4.4c-2.9,1-5,3.6-5.2,6.8c-0.4,4.4,2.8,8.3,7.2,8.7c2.1,0.2,4.2-0.4,5.8-1.8c1.1-0.9,1.9-2.1,2.4-3.4c-2.5,0.9-5.3,0.5-7.5-1.1C9.2,11.4,8.1,7.7,9.3,4.4z"></path></svg><!--]--></span></span></button></label></div></div></div><div class="group" data-v-cfbeb720><div class="item social-links" data-v-cfbeb720><div class="VPSocialLinks social-links-list" data-v-cfbeb720 data-v-37c7ef71><!--[--><a class="VPSocialLink" href="https://github.com/LingASDJ/RW-API-Code/" aria-label="github" target="_blank" rel="noopener" data-v-37c7ef71 data-v-7f013ed2><svg role="img" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><title>GitHub</title><path d="M12 .297c-6.63 0-12 5.373-12 12 0 5.303 3.438 9.8 8.205 11.385.6.113.82-.258.82-.577 0-.285-.01-1.04-.015-2.04-3.338.724-4.042-1.61-4.042-1.61C4.422 18.07 3.633 17.7 3.633 17.7c-1.087-.744.084-.729.084-.729 1.205.084 1.838 1.236 1.838 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3-5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523.105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873.12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92.42.36.81 1.096.81 2.22 0 1.606-.015 2.896-.015 3.286 0 .315.21.69.825.57C20.565 22.092 24 17.592 24 12.297c0-6.627-5.373-12-12-12"/></svg></a><!--]--></div></div></div><!--]--><!--]--></div></div></div><!--[--><!--]--><button type="button" class="VPNavBarHamburger hamburger" aria-label="mobile navigation" aria-expanded="false" aria-controls="VPNavScreen" data-v-36d3d8dd data-v-1f5b9239><span class="container" data-v-1f5b9239><span class="top" data-v-1f5b9239></span><span class="middle" data-v-1f5b9239></span><span class="bottom" data-v-1f5b9239></span></span></button></div></div></div></div><!----></header><div class="VPLocalNav" data-v-3c244f5c data-v-941c9869><button class="menu" aria-expanded="false" aria-controls="VPSidebarNav" data-v-941c9869><svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false" viewbox="0 0 24 24" class="menu-icon" data-v-941c9869><path d="M17,11H3c-0.6,0-1-0.4-1-1s0.4-1,1-1h14c0.6,0,1,0.4,1,1S17.6,11,17,11z"></path><path d="M21,7H3C2.4,7,2,6.6,2,6s0.4-1,1-1h18c0.6,0,1,0.4,1,1S21.6,7,21,7z"></path><path d="M21,15H3c-0.6,0-1-0.4-1-1s0.4-1,1-1h18c0.6,0,1,0.4,1,1S21.6,15,21,15z"></path><path d="M17,19H3c-0.6,0-1-0.4-1-1s0.4-1,1-1h14c0.6,0,1,0.4,1,1S17.6,19,17,19z"></path></svg><span class="menu-text" data-v-941c9869>Menu</span></button><div class="VPLocalNavOutlineDropdown" style="--vp-vh:0px;" data-v-941c9869 data-v-f3e2f9e9><button data-v-f3e2f9e9>Return to top</button><!----></div></div><aside class="VPSidebar" data-v-3c244f5c data-v-fa5a060d><div class="curtain" data-v-fa5a060d></div><nav class="nav" id="VPSidebarNav" aria-labelledby="sidebar-aria-label" tabindex="-1" data-v-fa5a060d><span class="visually-hidden" id="sidebar-aria-label" data-v-fa5a060d> Sidebar Navigation </span><!--[--><!--]--><!--[--><div class="group" data-v-fa5a060d><section class="VPSidebarItem level-0" data-v-fa5a060d data-v-67aa516f><div class="item" role="button" tabindex="0" data-v-67aa516f><div class="indicator" data-v-67aa516f></div><h2 class="text" data-v-67aa516f>RW-API-Code</h2><!----></div><div class="items" data-v-67aa516f><!--[--><div class="VPSidebarItem level-1 is-link" data-v-67aa516f data-v-67aa516f><div class="item" data-v-67aa516f><div class="indicator" data-v-67aa516f></div><a class="VPLink link link" href="/" data-v-67aa516f data-v-bd3e4450><!--[--><p class="text" data-v-67aa516f>主页-Home</p><!--]--><!----></a><!----></div><!----></div><div class="VPSidebarItem level-1" data-v-67aa516f data-v-67aa516f><div class="item" role="button" data-v-67aa516f><div class="indicator" data-v-67aa516f></div><p class="text" data-v-67aa516f>-------------------------</p><!----></div><!----></div><div class="VPSidebarItem level-1" data-v-67aa516f data-v-67aa516f><div class="item" role="button" data-v-67aa516f><div class="indicator" data-v-67aa516f></div><p class="text" data-v-67aa516f>[API-单位组-Unit]</p><!----></div><!----></div><div class="VPSidebarItem level-1 is-link" data-v-67aa516f data-v-67aa516f><div class="item" data-v-67aa516f><div class="indicator" data-v-67aa516f></div><a class="VPLink link link" href="/src/Unit/core" data-v-67aa516f data-v-bd3e4450><!--[--><p class="text" data-v-67aa516f>核心-CORE</p><!--]--><!----></a><!----></div><!----></div><div class="VPSidebarItem level-1 is-link" data-v-67aa516f data-v-67aa516f><div class="item" data-v-67aa516f><div class="indicator" data-v-67aa516f></div><a class="VPLink link link" href="/src/Unit/canbuild" data-v-67aa516f data-v-bd3e4450><!--[--><p class="text" data-v-67aa516f>可建造-CANBUILD</p><!--]--><!----></a><!----></div><!----></div><div class="VPSidebarItem level-1 is-link" data-v-67aa516f data-v-67aa516f><div class="item" data-v-67aa516f><div class="indicator" data-v-67aa516f></div><a class="VPLink link link" href="/src/Unit/attachment" data-v-67aa516f data-v-bd3e4450><!--[--><p class="text" data-v-67aa516f>附属-ATTACHMENT</p><!--]--><!----></a><!----></div><!----></div><div class="VPSidebarItem level-1 is-link" data-v-67aa516f data-v-67aa516f><div class="item" data-v-67aa516f><div class="indicator" data-v-67aa516f></div><a class="VPLink link link" href="/src/Unit/graphics" data-v-67aa516f data-v-bd3e4450><!--[--><p class="text" data-v-67aa516f>图像-GRAPHICS</p><!--]--><!----></a><!----></div><!----></div><div class="VPSidebarItem level-1 is-link" data-v-67aa516f data-v-67aa516f><div class="item" data-v-67aa516f><div class="indicator" data-v-67aa516f></div><a class="VPLink link link" href="/src/Unit/turret" data-v-67aa516f data-v-bd3e4450><!--[--><p class="text" data-v-67aa516f>炮塔-TURRET</p><!--]--><!----></a><!----></div><!----></div><div class="VPSidebarItem level-1 is-link" data-v-67aa516f data-v-67aa516f><div class="item" data-v-67aa516f><div class="indicator" data-v-67aa516f></div><a class="VPLink link link" href="/src/Unit/attack" data-v-67aa516f data-v-bd3e4450><!--[--><p class="text" data-v-67aa516f>攻击-ATTACK</p><!--]--><!----></a><!----></div><!----></div><div class="VPSidebarItem level-1 is-link" data-v-67aa516f data-v-67aa516f><div class="item" data-v-67aa516f><div class="indicator" data-v-67aa516f></div><a class="VPLink link link" href="/src/Unit/movement" data-v-67aa516f data-v-bd3e4450><!--[--><p class="text" data-v-67aa516f>运动-MOVEMENT</p><!--]--><!----></a><!----></div><!----></div><div class="VPSidebarItem level-1 is-link" data-v-67aa516f data-v-67aa516f><div class="item" data-v-67aa516f><div class="indicator" data-v-67aa516f></div><a class="VPLink link link" href="/src/Unit/loginboolean" data-v-67aa516f data-v-bd3e4450><!--[--><p class="text" data-v-67aa516f>逻辑-LOGIC</p><!--]--><!----></a><!----></div><!----></div><div class="VPSidebarItem level-1 is-link" data-v-67aa516f data-v-67aa516f><div class="item" data-v-67aa516f><div class="indicator" data-v-67aa516f></div><a class="VPLink link link" href="/src/Unit/spawnunit_spawnprojectile" data-v-67aa516f data-v-bd3e4450><!--[--><p class="text" data-v-67aa516f>刷兵/刷单位-SPAWN</p><!--]--><!----></a><!----></div><!----></div><div class="VPSidebarItem level-1" data-v-67aa516f data-v-67aa516f><div class="item" role="button" data-v-67aa516f><div class="indicator" data-v-67aa516f></div><p class="text" data-v-67aa516f>-------------------------</p><!----></div><!----></div><!--]--></div></section></div><!--]--><!--[--><!--]--></nav></aside><div class="VPContent has-sidebar" id="VPContent" data-v-3c244f5c data-v-d3267ac1><div class="VPDoc has-sidebar has-aside" data-v-d3267ac1 data-v-9bdf3917><!--[--><!--]--><div class="container" data-v-9bdf3917><div class="aside" data-v-9bdf3917><div class="aside-curtain" data-v-9bdf3917></div><div class="aside-container" data-v-9bdf3917><div class="aside-content" data-v-9bdf3917><div class="VPDocAside" data-v-9bdf3917 data-v-797432cd><!--[--><!--]--><!--[--><!--]--><div class="VPDocAsideOutline" data-v-797432cd data-v-a4be07ea><div class="content" data-v-a4be07ea><div class="outline-marker" data-v-a4be07ea></div><div class="outline-title" data-v-a4be07ea>On this page</div><nav aria-labelledby="doc-outline-aria-label" data-v-a4be07ea><span class="visually-hidden" id="doc-outline-aria-label" data-v-a4be07ea> Table of Contents for current page </span><ul class="root" data-v-a4be07ea data-v-b267a4d5><!--[--><!--]--></ul></nav></div></div><!--[--><!--]--><div class="spacer" data-v-797432cd></div><!--[--><!--]--><!----><!--[--><!--]--><!--[--><!--]--></div></div></div></div><div class="content" data-v-9bdf3917><div class="content-container" data-v-9bdf3917><!--[--><!--]--><!----><main class="main" data-v-9bdf3917><div style="position:relative;" class="vp-doc _api-dev" data-v-9bdf3917><div><div style="display:flex;align-content:flex-start;flex-wrap:nowrap;flex-direction:row;justify-content:center;"><h1>RTS-Code-API---开发规范</h1></div><div style="display:flex;align-content:flex-start;flex-wrap:nowrap;flex-direction:row;justify-content:center;"><img src="https://rust.coldmint.top/ftp/ling/cdnpng/logo.png"></div><div class="tip custom-block"><p class="custom-block-title">TIP</p><p>0.如果你确定你想<!---->,<br> 就可以点击右上角的Github按钮,<!---->,<br> 编写代码并进行PR申请,我非常感谢你的帮忙,感谢各位的支持与帮助。<br></p><blockquote><p>1.确保代码的解释通俗易懂,能让新手迅速入门<br>2.编写的代码应该以以下格式进行:</p><h3>代码的格式编写规范:</h3>1.代码的英文名和附属信息(参考站点已添加的代码例子)<br></blockquote><p>2.代码的简介<br> 3.代码的要点指示<br> 4.代码的演示例子<br> 5.代码的扩展例子(可选)<br> 6.GIF演示/视频演示(可选)</p></div><div class="tip custom-block"><p class="custom-block-title">TIP</p><p>使用外部资源时,请使用支持HTTPS协议的资源地址传输。<br> 否则在<!---->上会因为强制替换HTTPS导致资源无法打开。</p></div><div class="warning custom-block"><p class="custom-block-title">WARNING</p><p>不能使用过于高深的说明,严禁出现谜语人话语,无用话语,任何玩梗, 夹带私货等一系列与本站无关的东西,违者将不能通过<!----></p></div><div class="warning custom-block"><p class="custom-block-title">WARNING</p><p>有一些代码或许有一些新的写法,或该写法可能已经废弃,如果遇到这些代码,编写者需要注明,并提供推荐代码。</p></div><div class="info custom-block"><p class="custom-block-title">INFO</p><p>为了更好的方便一起编写站点的贡献者,本站点提供了以下的<!----></p></div><h4 id="其他说明" tabindex="-1">其他说明: <a class="header-anchor" href="#其他说明" aria-label="Permalink to "其他说明:""></a></h4><p>有关于MarkDown的其他书写格式,请参考MD书写规范<br><a href="https://docs.github.com/zh/get-started/writing-on-github/getting-started-with-writing-and-formatting-on-github/basic-writing-and-formatting-syntax" target="_blank" rel="noreferrer">MD文档参考--点我立刻学习</a></p><h4 id="附加说明" tabindex="-1">附加说明: <a class="header-anchor" href="#附加说明" aria-label="Permalink to "附加说明:""></a></h4><div class="language-txt"><button title="Copy Code" class="copy"></button><span class="lang">txt</span><pre class="shiki material-theme-palenight"><code><span class="line"><span style="color:#A6ACCD;">由于插件众多,为避免MD格式冲突,换行建议最好使用<br>进行换行,</span></span>
|
||
<span class="line"><span style="color:#A6ACCD;">如果要在一些扩展格式渲染演示,请使用<font>标签,</span></span></code></pre></div><h4 id="部署策略" tabindex="-1">部署策略: <a class="header-anchor" href="#部署策略" aria-label="Permalink to "部署策略:""></a></h4><div class="info custom-block"><p class="custom-block-title">INFO</p><p>1.本地部署</p></div><div class="tip custom-block"><p class="custom-block-title">TIP</p><p>如果要本地测试,请确保设备有<!----> 并在项目根目录使用以下命令:<br></p><blockquote><p>npm i docsify-cli -g<br>docsify serve docs</p></blockquote></div><div class="info custom-block"><p class="custom-block-title">INFO</p><p>2.Netlify部署</p></div><div class="tip custom-block"><p class="custom-block-title">TIP</p><p>如果你已经发送了PR请求,可以通过我的Netlify预览站点进行预览,<br> Netlify会在你的PR请求下面显示你的预览页面地址。<br> 点击<b><!----></b>即可看见效果<br> 由于某些原因,TX会拦截Netlify的站点,请使用浏览器预览。</p></div><h4 id="_1-md扩展格式" tabindex="-1">1.MD扩展格式: <a class="header-anchor" href="#_1-md扩展格式" aria-label="Permalink to "1.MD扩展格式:""></a></h4><div class="language-"><button title="Copy Code" class="copy"></button><span class="lang"></span><pre class="shiki material-theme-palenight"><code><span class="line"><span style="color:#A6ACCD;">::: info</span></span>
|
||
<span class="line"><span style="color:#A6ACCD;">信息文本</span></span>
|
||
<span class="line"><span style="color:#A6ACCD;">:::</span></span>
|
||
<span class="line"><span style="color:#A6ACCD;"></span></span>
|
||
<span class="line"><span style="color:#A6ACCD;">::: tip</span></span>
|
||
<span class="line"><span style="color:#A6ACCD;">小提示文本</span></span>
|
||
<span class="line"><span style="color:#A6ACCD;">:::</span></span>
|
||
<span class="line"><span style="color:#A6ACCD;"></span></span>
|
||
<span class="line"><span style="color:#A6ACCD;">::: warning</span></span>
|
||
<span class="line"><span style="color:#A6ACCD;">警告文本</span></span>
|
||
<span class="line"><span style="color:#A6ACCD;">:::</span></span>
|
||
<span class="line"><span style="color:#A6ACCD;"></span></span>
|
||
<span class="line"><span style="color:#A6ACCD;">::: danger</span></span>
|
||
<span class="line"><span style="color:#A6ACCD;">危险文本</span></span>
|
||
<span class="line"><span style="color:#A6ACCD;">:::</span></span>
|
||
<span class="line"><span style="color:#A6ACCD;"></span></span>
|
||
<span class="line"><span style="color:#A6ACCD;">::: details</span></span>
|
||
<span class="line"><span style="color:#A6ACCD;">这是一个折叠框</span></span>
|
||
<span class="line"><span style="color:#A6ACCD;">:::</span></span>
|
||
<span class="line"><span style="color:#A6ACCD;"></span></span>
|
||
<span class="line"><span style="color:#A6ACCD;">#### 代码突出显示</span></span>
|
||
<span class="line"><span style="color:#A6ACCD;">::: code-group</span></span>
|
||
<span class="line"><span style="color:#A6ACCD;">```ini{2} [演示例子]</span></span>
|
||
<span class="line"><span style="color:#A6ACCD;">[action_copyArry]</span></span>
|
||
<span class="line"><span style="color:#A6ACCD;">RTS-APICODE</span></span>
|
||
<span class="line"><span style="color:#A6ACCD;"></span></span>
|
||
<span class="line"><span style="color:#A6ACCD;">可以通过1-4来让1到4行突出显示,</span></span>
|
||
<span class="line"><span style="color:#A6ACCD;">也可以通过1,4,5来指定行数突出显示</span></span></code></pre></div><h4 id="实际格式演示" tabindex="-1">实际格式演示: <a class="header-anchor" href="#实际格式演示" aria-label="Permalink to "实际格式演示:""></a></h4><div class="tip custom-block"><p class="custom-block-title">TIP</p><p>注意文本</p></div><div class="info custom-block"><p class="custom-block-title">INFO</p><p>信息文本</p></div><div class="tip custom-block"><p class="custom-block-title">TIP</p><p>小提示文本</p></div><div class="warning custom-block"><p class="custom-block-title">WARNING</p><p>警告文本</p></div><div class="danger custom-block"><p class="custom-block-title">DANGER</p><p>危险文本</p></div><details class="details custom-block"><summary>Details</summary><p>这是一个折叠框</p></details><div class="language-ini"><button title="Copy Code" class="copy"></button><span class="lang">ini</span><pre class="shiki material-theme-palenight has-highlighted-lines"><code><span class="line"><span style="color:#89DDFF;">[action_copyArry]</span></span>
|
||
<span class="line highlighted"><span style="color:#A6ACCD;">RTS-APICODE</span></span>
|
||
<span class="line"><span style="color:#A6ACCD;">//代码突出演示</span></span>
|
||
<span class="line"><span style="color:#A6ACCD;">可以通过1-4来让1到4行突出显示,</span></span>
|
||
<span class="line"><span style="color:#A6ACCD;">也可以通过1,4,5来指定行数突出显示</span></span></code></pre></div><h3 id="_2-媒体插入" tabindex="-1">2.媒体插入 <a class="header-anchor" href="#_2-媒体插入" aria-label="Permalink to "2.媒体插入""></a></h3><h4 id="_1-视频演示-可选" tabindex="-1">1.视频演示---(可选) <a class="header-anchor" href="#_1-视频演示-可选" aria-label="Permalink to "1.视频演示---(可选)""></a></h4><iframe src="https://vdse.bdstatic.com//192d9a98d782d9c74c96f09db9378d93.mp4" scrolling="no" border="0" frameborder="no" framespacing="0" allowfullscreen="true" width="100%" height="400">
|
||
</iframe><div class="language-html"><button title="Copy Code" class="copy"></button><span class="lang">html</span><pre class="shiki material-theme-palenight"><code><span class="line"><span style="color:#89DDFF;"><</span><span style="color:#F07178;">iframe</span><span style="color:#89DDFF;"> </span><span style="color:#C792EA;">src</span><span style="color:#89DDFF;">=</span><span style="color:#89DDFF;">"</span><span style="color:#C3E88D;">视频地址</span><span style="color:#89DDFF;">"</span><span style="color:#89DDFF;"> </span><span style="color:#C792EA;">scrolling</span><span style="color:#89DDFF;">=</span><span style="color:#89DDFF;">"</span><span style="color:#C3E88D;">no</span><span style="color:#89DDFF;">"</span><span style="color:#89DDFF;"> border=</span><span style="color:#89DDFF;">"</span><span style="color:#C3E88D;">0</span><span style="color:#89DDFF;">"</span><span style="color:#89DDFF;"> </span><span style="color:#C792EA;">frameborder</span><span style="color:#89DDFF;">=</span><span style="color:#89DDFF;">"</span><span style="color:#C3E88D;">no</span><span style="color:#89DDFF;">"</span><span style="color:#89DDFF;"> </span><span style="color:#C792EA;">framespacing</span><span style="color:#89DDFF;">=</span><span style="color:#89DDFF;">"</span><span style="color:#C3E88D;">0</span><span style="color:#89DDFF;">"</span><span style="color:#89DDFF;"> </span><span style="color:#C792EA;">allowfullscreen</span><span style="color:#89DDFF;">=</span><span style="color:#89DDFF;">"</span><span style="color:#C3E88D;">true</span><span style="color:#89DDFF;">"</span><span style="color:#89DDFF;"> </span><span style="color:#C792EA;">width</span><span style="color:#89DDFF;">=</span><span style="color:#89DDFF;">"</span><span style="color:#C3E88D;">100%</span><span style="color:#89DDFF;">"</span><span style="color:#89DDFF;"> </span><span style="color:#C792EA;">height</span><span style="color:#89DDFF;">=</span><span style="color:#89DDFF;">"</span><span style="color:#C3E88D;">400</span><span style="color:#89DDFF;">"</span><span style="color:#89DDFF;">></span></span>
|
||
<span class="line"><span style="color:#89DDFF;"></</span><span style="color:#F07178;">iframe</span><span style="color:#89DDFF;">></span></span></code></pre></div><h4 id="_3-插入表格" tabindex="-1">3.插入表格 <a class="header-anchor" href="#_3-插入表格" aria-label="Permalink to "3.插入表格""></a></h4><h3 id="代码演示" tabindex="-1">代码演示: <a class="header-anchor" href="#代码演示" aria-label="Permalink to "代码演示:""></a></h3><table><thead><tr><th>A</th><th>B</th><th>C</th></tr></thead><tbody><tr><td>1</td><td>2</td><td>3</td></tr></tbody></table><h3 id="代码例子" tabindex="-1">代码例子: <a class="header-anchor" href="#代码例子" aria-label="Permalink to "代码例子:""></a></h3><div class="language-markdown"><button title="Copy Code" class="copy"></button><span class="lang">markdown</span><pre class="shiki material-theme-palenight"><code><span class="line"><span style="color:#A6ACCD;">|A|B|C| </span></span>
|
||
<span class="line"><span style="color:#A6ACCD;">|-|-|-</span></span>
|
||
<span class="line"><span style="color:#A6ACCD;">|1|2|3|</span></span></code></pre></div><p>如果你仍然不会Markdown表格写法,这里给你一个链接:</p><h3><a href="https://tableconvert.com/zh-cn/markdown-to-markdown" target="_blank">TableConvert-MD-点击进入</a></h3><h3 id="_4-扩展写法-高级" tabindex="-1">4.扩展写法(高级) <a class="header-anchor" href="#_4-扩展写法-高级" aria-label="Permalink to "4.扩展写法(高级)""></a></h3><p>有一些时候,我们可能需要在已经标记的后面再添加东西, 但Markdown解析方式在标签后面再有一个标签就不会识别了。<br> 所以这里我们必须直接使用原生Html的代码, 通过浏览器的检查元素,你应该能迅速找到模块框架, 将它的模块元素区域复制下来,并调用。</p><div class="tip custom-block"><p class="custom-block-title">TIP</p><p>该文档可能还有很多缺陷,如果你有更好的建议,请发送Issues或者PR给我。</p></div><div class="info custom-block"><p class="custom-block-title">INFO</p><p>编写于2023-5-9 RTS-Code-API[第3版-第3次修订]</p></div></div></div></main><footer class="VPDocFooter" data-v-9bdf3917 data-v-727bbd67><!--[--><!--]--><!----><div class="prev-next" data-v-727bbd67><div class="pager" data-v-727bbd67><!----></div><div class="pager" data-v-727bbd67><a class="pager-link next" href="/" data-v-727bbd67><span class="desc" data-v-727bbd67>下一篇文章</span><span class="title" data-v-727bbd67>主页-Home</span></a></div></div></footer><!--[--><!--]--></div></div></div><!--[--><!--]--></div></div><footer class="VPFooter has-sidebar" data-v-3c244f5c data-v-5d7f02fc><div class="container" data-v-5d7f02fc><p class="message" data-v-5d7f02fc>Rosy-Code Ling Web Stuido</p><p class="copyright" data-v-5d7f02fc>Copyright © 2023-RW-API-Code</p></div></footer><!--[--><!--]--></div></div>
|
||
<script>__VP_HASH_MAP__ = JSON.parse("{\"cos.md\":\"4cc32180\",\"src_debug_test.md\":\"501f237e\",\"src_rw-engine_quick-start.md\":\"a2b4fb07\",\"index.md\":\"7a8a1ce3\",\"src_map_tsada.md\":\"95d6f1dd\",\"api-dev.md\":\"447d3fe1\",\"src_unit_attack.md\":\"9d57709d\",\"src_unit_canbuild.md\":\"4f4f1935\",\"src_unit_movement.md\":\"3ff8232f\",\"src_unit_spawnunit_spawnprojectile.md\":\"5ab9c365\",\"src_unit_graphics.md\":\"6e56c4ad\",\"src_unit_attachment.md\":\"2e3e2a58\",\"src_unit_core.md\":\"9eb125bd\",\"src_unit_turret.md\":\"149ab95e\",\"src_unit_loginboolean.md\":\"33f0931b\"}")
|
||
__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\"},{\"text\":\"感谢名单\",\"link\":\"/cos\"}],\"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\":\"附属-ATTACHMENT\",\"link\":\"/src/Unit/attachment\"},{\"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> |