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

@@ -352,7 +352,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>

View File

@@ -420,7 +420,7 @@ fraction will decide a chance to spawn. 1 alien for 2 spawner's will have 50% on
<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>

View File

@@ -1165,7 +1165,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>

View File

@@ -242,7 +242,7 @@
</thead>
<tbody>
<tr>
<td class="name"><a href="#Debug.print">Debug.print(message, stack_traceback)</a></td>
<td class="name"><a href="#Debug.print">Debug.print(message, trace_levels)</a></td>
<td class="summary">Shows the given message if debug is enabled.</td>
</tr>
<tr>
@@ -281,7 +281,7 @@
<div class="divider divider-custom"></div>
<div class="block section-item-header">
<a href="#Debug.print" class="fragment-hashtag">#</a>
<span class="section-item-title" id="Debug.print">Debug.print(message, stack_traceback)</span>
<span class="section-item-title" id="Debug.print">Debug.print(message, trace_levels)</span>
</div>
</dt>
<dd>
@@ -316,7 +316,7 @@
<li class="section-subitem-li">
<strong><em>stack_traceback</em></strong>
<strong><em>trace_levels</em></strong>
<strong> : </strong>
@@ -655,7 +655,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>

View File

@@ -324,7 +324,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>

View File

@@ -1293,7 +1293,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>

View File

@@ -435,7 +435,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>

View File

@@ -242,7 +242,7 @@
</thead>
<tbody>
<tr>
<td class="name"><a href="#calculate_y_intercept">calculate_y_intercept(x, slope)</a></td>
<td class="name"><a href="#calculate_y_intercept">calculate_y_intercept(x, y, slope)</a></td>
<td class="summary">Calculates the y-intercept of a line</td>
</tr>
</tbody>
@@ -258,7 +258,7 @@
<div class="divider divider-custom"></div>
<div class="block section-item-header">
<a href="#calculate_y_intercept" class="fragment-hashtag">#</a>
<span class="section-item-title" id="calculate_y_intercept">calculate_y_intercept(x, slope)</span>
<span class="section-item-title" id="calculate_y_intercept">calculate_y_intercept(x, y, slope)</span>
</div>
</dt>
<dd>
@@ -283,7 +283,22 @@
<strong> : </strong>
, y numbers - coordinates of point on line
number - coordinates of point on line
</li>
<li class="section-subitem-li">
<strong><em>y</em></strong>
<strong> : </strong>
number - coordinates of point on line
</li>
@@ -339,7 +354,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>

View File

@@ -442,7 +442,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>

View File

@@ -277,7 +277,7 @@
NOTICE: This function will invoke an error if called after init.</td>
</tr>
<tr>
<td class="name"><a href="#Module.register_transition_callback">Module.register_transition_callback(self, state, state, callback)</a></td>
<td class="name"><a href="#Module.register_transition_callback">Module.register_transition_callback(self, old, new, callback)</a></td>
<td class="summary">Register a handler that will be invoked by StateMachine.transition
You may register multiple handlers for the same transition
NOTICE: This function will invoke an error if called after init.</td>
@@ -591,7 +591,7 @@
<div class="divider divider-custom"></div>
<div class="block section-item-header">
<a href="#Module.register_transition_callback" class="fragment-hashtag">#</a>
<span class="section-item-title" id="Module.register_transition_callback">Module.register_transition_callback(self, state, state, callback)</span>
<span class="section-item-title" id="Module.register_transition_callback">Module.register_transition_callback(self, old, new, callback)</span>
</div>
</dt>
<dd>
@@ -628,12 +628,12 @@
<li class="section-subitem-li">
<strong><em>state</em></strong>
<strong><em>old</em></strong>
<strong> : </strong>
number/string entering state
number/string exiting state
</li>
@@ -643,7 +643,7 @@
<li class="section-subitem-li">
<strong><em>state</em></strong>
<strong><em>new</em></strong>
<strong> : </strong>
@@ -753,7 +753,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>

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>

View File

@@ -652,7 +652,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>

View File

@@ -443,7 +443,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>