mirror of
https://gitee.com/dgflash/oops-plugin-framework.git
synced 2026-05-30 18:39:18 +08:00
ECS文档中补充例子
This commit is contained in:
@@ -19,6 +19,9 @@
|
||||
<li class="tsd-signature tsd-anchor-link" id="query">query<span class="tsd-signature-symbol"><</span><span class="tsd-signature-type" data-tsd-kind="Type parameter">E</span><span class="tsd-signature-symbol">></span><span class="tsd-signature-symbol">(</span>matcher<span class="tsd-signature-symbol">: </span><a href="../interfaces/ecs.IMatcher.html" class="tsd-signature-type" data-tsd-kind="Interface">IMatcher</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type" data-tsd-kind="Type parameter">E</span><span class="tsd-signature-symbol">[]</span><a href="#query" aria-label="Permalink" class="tsd-anchor-icon"><svg class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none" id="icon-anchor-a"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5" id="icon-anchor-b"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5" id="icon-anchor-c"></path></svg></a></li>
|
||||
<li class="tsd-description">
|
||||
<div class="tsd-comment tsd-typography"><p>动态查询实体</p>
|
||||
|
||||
<h3>Example</h3><pre><code class="language-ts"><span class="hl-0">ecs</span><span class="hl-1">.</span><span class="hl-7">query</span><span class="hl-1">(</span><span class="hl-0">ecs</span><span class="hl-1">.</span><span class="hl-7">allOf</span><span class="hl-1">(</span><span class="hl-0">Comp1</span><span class="hl-1">, </span><span class="hl-0">Comp2</span><span class="hl-1">));</span>
|
||||
</code></pre>
|
||||
</div>
|
||||
<div class="tsd-type-parameters">
|
||||
<h4 class="tsd-type-parameters-title">Type Parameters</h4>
|
||||
@@ -36,7 +39,7 @@
|
||||
</div></li></ul></div>
|
||||
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type" data-tsd-kind="Type parameter">E</span><span class="tsd-signature-symbol">[]</span></h4><aside class="tsd-sources">
|
||||
<ul>
|
||||
<li>Defined in assets/libs/ecs/ECS.ts:213</li></ul></aside></li></ul></section></div>
|
||||
<li>Defined in assets/libs/ecs/ECS.ts:215</li></ul></aside></li></ul></section></div>
|
||||
<div class="col-4 col-menu menu-sticky-wrap menu-highlight">
|
||||
<div class="tsd-navigation settings">
|
||||
<details class="tsd-index-accordion"><summary class="tsd-accordion-summary">
|
||||
|
||||
Reference in New Issue
Block a user