Task List Updated

This commit is contained in:
Cooldude2606
2019-10-24 01:44:41 +01:00
parent 886fb2c226
commit f7cff8b236
98 changed files with 1849 additions and 488 deletions

View File

@@ -262,7 +262,7 @@ Store.set(scenario_diffculty,<span class="string">'hard'</span>) <span class="co
<span class="keyword">end</span>)
<span class="comment">-- When any key in the store is changed this function will trigger
</span>Store.watch(player_scores,<span class="keyword">function</span>(value,key)
</span>Store.watch(player_scores,<span class="keyword">function</span>(value,key,old_value)
game.<span class="global">print</span>(key..<span class="string">' now has a score of '</span>..value)
<span class="keyword">end</span>)
@@ -370,7 +370,7 @@ Store.set(player_scores,game.player,<span class="number">10</span>) <span class=
<td class="summary">Used to trigger watcher functions, this may be used to trigger them if you did not use Store.update or Store.set</td>
</tr>
<tr>
<td class="name"><a href="#raw_trigger">raw_trigger(store[, key][, value])</a></td>
<td class="name"><a href="#raw_trigger">raw_trigger(store[, key][, value][, old_value])</a></td>
<td class="summary">Used to trigger watcher functions, the value and key are passed directly to the watchers regardless if the value is correct</td>
</tr>
</tbody>
@@ -791,7 +791,7 @@ Store.set(player_scores,game.player,<span class="number">10</span>) <span class=
<span class="keyword">end</span>)
<span class="comment">-- Register the watcher so that when we change the value the message is printed
</span>Store.watch(player_scores,<span class="keyword">function</span>(value,key)
</span>Store.watch(player_scores,<span class="keyword">function</span>(value,key,old_value)
game.<span class="global">print</span>(key..<span class="string">' now has a score of '</span>..value)
<span class="keyword">end</span>)
@@ -1361,7 +1361,7 @@ Store.set(player_scores,game.player,<span class="number">10</span>) <span class=
<div class="divider divider-custom"></div>
<div class="block section-item-header">
<a href="#raw_trigger" class="fragment-hashtag">#</a>
<span class="section-item-title" id="raw_trigger">raw_trigger(store[, key][, value])</span>
<span class="section-item-title" id="raw_trigger">raw_trigger(store[, key][, value][, old_value])</span>
</div>
</dt>
<dd>
@@ -1426,6 +1426,23 @@ Store.set(player_scores,game.player,<span class="number">10</span>) <span class=
</li>
<li class="section-subitem-li">
<strong><em>old_value</em></strong>
<strong> : </strong>
(<span class="types"><span class="type">any</span></span>)
the old value that was at this key or store often the same if value is a table, passed directly to the watcher
(<em>optional</em>)
</li>
</ul>
<!-- parameters end -->
@@ -1445,7 +1462,7 @@ Store.set(player_scores,game.player,<span class="number">10</span>) <span class=
<span class="comment">-- Trigger the watchers with a fake change of diffculty
</span><span class="comment">-- This is mostly used internally but it can be useful in other cases
</span>Store.raw_trigger(scenario_diffculty,<span class="keyword">nil</span>,<span class="string">'normal'</span>)</code></pre>
</span>Store.raw_trigger(scenario_diffculty,<span class="keyword">nil</span>,<span class="string">'normal'</span>,<span class="string">'normal'</span>)</code></pre>
<!-- usage end -->
</dd>
@@ -1464,7 +1481,7 @@ Store.set(player_scores,game.player,<span class="number">10</span>) <span class=
<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-10-21 22:17:42 UTC</i>
<i>Last updated 2019-10-24 01:44:32 UTC</i>
</div>
</div>
</div>