1
0
Fork 0
mirror of https://github.com/Reuh/ubiquitousse.git synced 2025-10-27 17:19:31 +00:00

ecs: add System:onUpdateEnd, System:onDrawEnd

This commit is contained in:
Étienne Fildadut 2021-12-27 14:12:08 +01:00
parent f78499e891
commit ce7e54fb69
12 changed files with 154 additions and 34 deletions

View file

@ -224,6 +224,14 @@ end
<td class="name" nowrap><a href="#System:render">System:render (e, c) <sup><em>[callback]</em></sup></a></td>
<td class="summary">Called when drawing the system, for every entity the system contains.</td>
</tr>
<tr>
<td class="name" nowrap><a href="#System:onUpdateEnd">System:onUpdateEnd (dt) <sup><em>[callback]</em></sup></a></td>
<td class="summary">Called after updating the system.</td>
</tr>
<tr>
<td class="name" nowrap><a href="#System:onDrawEnd">System:onDrawEnd () <sup><em>[callback]</em></sup></a></td>
<td class="summary">Called after drawing the system.</td>
</tr>
</table>
<h3 class="doc-title"><a href="#System.ro">Read-only fields.</a></h3>
<table class="function_list">
@ -1002,6 +1010,7 @@ avoid repeating your filters or allow controlling several system from a single p
</dt>
<dd>
Called when updating the system.
Called before any call to <a href="../modules/ecs.html#System:process">System:process</a> or call to subsystems.
</ul>
</ul>
@ -1027,6 +1036,7 @@ avoid repeating your filters or allow controlling several system from a single p
</dt>
<dd>
Called when drawing the system.
Called before any call to <a href="../modules/ecs.html#System:draw">System:draw</a> or call to subsystems.
</ul>
</ul>
@ -1044,7 +1054,8 @@ avoid repeating your filters or allow controlling several system from a single p
<strong>System:process (e, c, dt) <sup><em>[callback]</em></sup></strong>
</dt>
<dd>
Called when updating the system, for every entity the system contains. Called after <a href="../modules/ecs.html#System:onUpdate">System:onUpdate</a> was called on the system.
Called when updating the system, for every entity the system contains.
Called after <a href="../modules/ecs.html#System:onUpdate">System:onUpdate</a> was called on the system, and before any call to subsystems.
</ul>
</ul>
@ -1077,7 +1088,8 @@ avoid repeating your filters or allow controlling several system from a single p
<strong>System:render (e, c) <sup><em>[callback]</em></sup></strong>
</dt>
<dd>
Called when drawing the system, for every entity the system contains. Called after <a href="../modules/ecs.html#System:onDraw">System:onDraw</a> was called on the system.
Called when drawing the system, for every entity the system contains.
Called after <a href="../modules/ecs.html#System:onDraw">System:onDraw</a> was called on the system, and before any call to subsystems.
</ul>
</ul>
@ -1100,6 +1112,51 @@ avoid repeating your filters or allow controlling several system from a single p
</dd>
<dt>
<a name = "System:onUpdateEnd"></a>
<strong>System:onUpdateEnd (dt) <sup><em>[callback]</em></sup></strong>
</dt>
<dd>
Called after updating the system.
Called after <a href="../modules/ecs.html#System:onDraw">System:onDraw</a>, <a href="../modules/ecs.html#System:process">System:process</a> and calls to subsystems.
</ul>
</ul>
</ul>
</ul>
<h3>Parameters:</h3>
<ul>
<li><span class="parameter">dt</span>
<span class="types"><span class="type">number</span></span>
delta-time since last update
</li>
</ul>
</dd>
<dt>
<a name = "System:onDrawEnd"></a>
<strong>System:onDrawEnd () <sup><em>[callback]</em></sup></strong>
</dt>
<dd>
Called after drawing the system.
Called after <a href="../modules/ecs.html#System:onUpdate">System:onUpdate</a>, <a href="../modules/ecs.html#System:render">System:render</a> and calls to subsystems.
</ul>
</ul>
</ul>
</ul>
</dd>
</dl>
<h3 class="doc-title"><a name = "System.ro"></a>Read-only fields.</h3>
@ -1626,7 +1683,7 @@ its sibling systems (i.e. completely stop the propagation of the event).</li>
</div> <!-- id="main" -->
<div id="about">
<i>generated by <a href="http://github.com/stevedonovan/LDoc">LDoc 1.4.6</a></i>
<i style="float:right;">Last updated 2021-12-27 13:22:21 </i>
<i style="float:right;">Last updated 2021-12-27 14:09:51 </i>
</div> <!-- id="about" -->
</div> <!-- id="container" -->
</body>