Added some structor concepts

This commit is contained in:
Cooldude2606
2019-09-17 21:09:15 +01:00
parent d40f0f142f
commit 1f204c6dac
114 changed files with 880 additions and 153 deletions

View File

@@ -290,12 +290,12 @@
because this uses math.random, it cannot be used outside of events</td>
</tr>
<tr>
<td class="name"><a href="#get_random_weighted">get_random_weighted(weight_table, item_index, weight_index)</a></td>
<td class="name"><a href="#get_random_weighted">get_random_weighted(weighted_table, item_index, weight_index)</a></td>
<td class="summary">Chooses a random entry from a weighted table
because this uses math.random, it cannot be used outside of events</td>
</tr>
<tr>
<td class="name"><a href="#shuffle_table">shuffle_table(t)</a></td>
<td class="name"><a href="#shuffle_table">shuffle_table(t, rng)</a></td>
<td class="summary">Creates a fisher-yates shuffle of a sequential number-indexed table
because this uses math.random, it cannot be used outside of events if no rng is supplied
from: http://www.sdknews.com/cross-platform/corona/tutorial-how-to-shuffle-table-items</td>
@@ -552,6 +552,12 @@
<!-- parameters end -->
<!-- returns start -->
<strong>Returns:</strong>
<ul>
<li>
<span class="return-text"><any> the index of the element or nil</span>
</li>
</ul>
<!-- returns end -->
@@ -616,6 +622,12 @@
<!-- parameters end -->
<!-- returns start -->
<strong>Returns:</strong>
<ul>
<li>
<span class="return-text"><number|nil> the index of the element or nil</span>
</li>
</ul>
<!-- returns end -->
@@ -680,6 +692,12 @@
<!-- parameters end -->
<!-- returns start -->
<strong>Returns:</strong>
<ul>
<li>
<span class="return-text"><boolean> indicating success</span>
</li>
</ul>
<!-- returns end -->
@@ -744,6 +762,12 @@
<!-- parameters end -->
<!-- returns start -->
<strong>Returns:</strong>
<ul>
<li>
<span class="return-text"><boolean> indicating success</span>
</li>
</ul>
<!-- returns end -->
@@ -908,7 +932,7 @@
<div class="divider divider-custom"></div>
<div class="block section-item-header">
<a href="#get_random_weighted" class="fragment-hashtag">#</a>
<span class="section-item-title" id="get_random_weighted">get_random_weighted(weight_table, item_index, weight_index)</span>
<span class="section-item-title" id="get_random_weighted">get_random_weighted(weighted_table, item_index, weight_index)</span>
</div>
</dt>
<dd>
@@ -929,7 +953,7 @@
<li class="section-subitem-li">
<strong><em>weight_table</em></strong>
<strong><em>weighted_table</em></strong>
<strong> : </strong>
@@ -984,9 +1008,6 @@
<!-- see also start -->
<strong>See also:</strong>
<ul>
</ul>
<!-- see also end -->
<!-- usage start -->
@@ -997,7 +1018,7 @@
<div class="divider divider-custom"></div>
<div class="block section-item-header">
<a href="#shuffle_table" class="fragment-hashtag">#</a>
<span class="section-item-title" id="shuffle_table">shuffle_table(t)</span>
<span class="section-item-title" id="shuffle_table">shuffle_table(t, rng)</span>
</div>
</dt>
<dd>
@@ -1029,6 +1050,21 @@
</li>
<li class="section-subitem-li">
<strong><em>rng</em></strong>
<strong> : </strong>
<function> to provide random numbers
</li>
</ul>
<!-- parameters end -->
@@ -1383,7 +1419,7 @@
<i>generated by <a href="http://github.com/stevedonovan/LDoc">LDoc </a></i>
</div>
<div class="content-footer column col-9 col-sm-12">
<i>Last updated 2019-09-06 21:12:05 UTC</i>
<i>Last updated 2019-09-17 21:04:13 UTC</i>
</div>
</div>
</div>