mirror of
https://github.com/Reuh/ubiquitousse.git
synced 2025-10-27 17:19:31 +00:00
Improve documentation
This commit is contained in:
parent
489d0b4ba7
commit
af3bd51cb3
25 changed files with 1468 additions and 725 deletions
|
|
@ -60,8 +60,14 @@
|
|||
<div id="content">
|
||||
|
||||
<h1>Module <code>signal</code></h1>
|
||||
<p>Signal management.</p>
|
||||
<p> No dependency.</p>
|
||||
<p>Signal management for Lua.</p>
|
||||
<p> No dependency.
|
||||
Optional dependency: LÖVE to hook into LÖVE events.</p>
|
||||
<h3>Usage:</h3>
|
||||
<ul>
|
||||
<pre class="example">TODO
|
||||
</pre>
|
||||
</ul>
|
||||
|
||||
|
||||
<h2><a href="#Module">Module </a></h2>
|
||||
|
|
@ -72,7 +78,7 @@
|
|||
</tr>
|
||||
<tr>
|
||||
<td class="name" nowrap><a href="#event">event</a></td>
|
||||
<td class="summary">SignalRegistry which will be used to bind signals that need to be called on game engine event; other ubiquitousse modules may bind to this registry
|
||||
<td class="summary"><a href="../modules/signal.html#SignalRegistry_objects">SignalRegistry</a> which will be used to bind signals that need to be called on game engine event; other ubiquitousse modules may bind to this registry
|
||||
if avaible.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
|
|
@ -149,7 +155,7 @@
|
|||
<strong>event</strong>
|
||||
</dt>
|
||||
<dd>
|
||||
<p>SignalRegistry which will be used to bind signals that need to be called on game engine event; other ubiquitousse modules may bind to this registry
|
||||
<p><a href="../modules/signal.html#SignalRegistry_objects">SignalRegistry</a> which will be used to bind signals that need to be called on game engine event; other ubiquitousse modules may bind to this registry
|
||||
if avaible. </p>
|
||||
|
||||
<p> For example, every ubiquitousse module with a “update” function will bind it to the “update” signal in the registry;
|
||||
|
|
@ -166,6 +172,9 @@
|
|||
|
||||
|
||||
</ul>
|
||||
<h3>Type:</h3>
|
||||
<ul>
|
||||
<code>SignalRegistry</code>
|
||||
</ul>
|
||||
</ul>
|
||||
</ul>
|
||||
|
|
@ -215,6 +224,9 @@
|
|||
Map of signals to list of listeners.
|
||||
|
||||
</ul>
|
||||
<h3>Type:</h3>
|
||||
<ul>
|
||||
<code>{["name"]={fn,...}}</code>
|
||||
</ul>
|
||||
</ul>
|
||||
</ul>
|
||||
|
|
@ -240,16 +252,16 @@
|
|||
<h3>Parameters:</h3>
|
||||
<ul>
|
||||
<li><span class="parameter">name</span>
|
||||
|
||||
|
||||
<span class="types"><a class="type" href="https://www.lua.org/manual/5.1/manual.html#5.4">string</a></span>
|
||||
the name of the signal
|
||||
</li>
|
||||
<li><span class="parameter">fn</span>
|
||||
|
||||
|
||||
<span class="types"><span class="type">function</span></span>
|
||||
the function to bind to the signal
|
||||
</li>
|
||||
<li><span class="parameter">...</span>
|
||||
|
||||
|
||||
<span class="types"><span class="type">function,...</span></span>
|
||||
other function to bind to the signal
|
||||
</li>
|
||||
</ul>
|
||||
|
||||
|
|
@ -273,16 +285,16 @@
|
|||
<h3>Parameters:</h3>
|
||||
<ul>
|
||||
<li><span class="parameter">name</span>
|
||||
|
||||
|
||||
<span class="types"><a class="type" href="https://www.lua.org/manual/5.1/manual.html#5.4">string</a></span>
|
||||
the name of the signal
|
||||
</li>
|
||||
<li><span class="parameter">fn</span>
|
||||
|
||||
|
||||
<span class="types"><span class="type">function</span></span>
|
||||
the function to unbind to the signal
|
||||
</li>
|
||||
<li><span class="parameter">...</span>
|
||||
|
||||
|
||||
<span class="types"><span class="type">function,...</span></span>
|
||||
other function to unbind to the signal
|
||||
</li>
|
||||
</ul>
|
||||
|
||||
|
|
@ -306,8 +318,8 @@
|
|||
<h3>Parameters:</h3>
|
||||
<ul>
|
||||
<li><span class="parameter">name</span>
|
||||
|
||||
|
||||
<span class="types"><a class="type" href="https://www.lua.org/manual/5.1/manual.html#5.4">string</a></span>
|
||||
the name of the signal
|
||||
</li>
|
||||
</ul>
|
||||
|
||||
|
|
@ -331,16 +343,16 @@
|
|||
<h3>Parameters:</h3>
|
||||
<ul>
|
||||
<li><span class="parameter">name</span>
|
||||
|
||||
|
||||
<span class="types"><a class="type" href="https://www.lua.org/manual/5.1/manual.html#5.4">string</a></span>
|
||||
the name of the signal
|
||||
</li>
|
||||
<li><span class="parameter">sourceFn</span>
|
||||
|
||||
|
||||
<span class="types"><span class="type">function</span></span>
|
||||
the function currently bound to the signal
|
||||
</li>
|
||||
<li><span class="parameter">destFn</span>
|
||||
|
||||
|
||||
<span class="types"><span class="type">function</span></span>
|
||||
the function that will replace the previous one
|
||||
</li>
|
||||
</ul>
|
||||
|
||||
|
|
@ -382,12 +394,11 @@
|
|||
<h3>Parameters:</h3>
|
||||
<ul>
|
||||
<li><span class="parameter">name</span>
|
||||
|
||||
|
||||
<span class="types"><a class="type" href="https://www.lua.org/manual/5.1/manual.html#5.4">string</a></span>
|
||||
the name of the signal
|
||||
</li>
|
||||
<li><span class="parameter">...</span>
|
||||
|
||||
|
||||
arguments to pass to the functions bound to this signal
|
||||
</li>
|
||||
</ul>
|
||||
|
||||
|
|
@ -403,7 +414,7 @@
|
|||
</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-25 23:19:42 </i>
|
||||
<i style="float:right;">Last updated 2021-12-26 18:13:01 </i>
|
||||
</div> <!-- id="about" -->
|
||||
</div> <!-- id="container" -->
|
||||
</body>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue