mirror of
https://github.com/PHIDIAS0303/ExpCluster.git
synced 2025-12-28 20:05:22 +09:00
Many Changes To Doc
This commit is contained in:
@@ -53,9 +53,9 @@
|
||||
<li><a href="../modules/ExpGamingLib.html">ExpGamingLib</a></li>
|
||||
<li><strong>Color</strong></li>
|
||||
<li><a href="../modules/Game.html">Game</a></li>
|
||||
<li><a href="../modules/string.html">string</a></li>
|
||||
<li><a href="../modules/table.html">table</a></li>
|
||||
<li><a href="../modules/defines.time.html">defines.time</a></li>
|
||||
<li><a href="../modules/String.html">String</a></li>
|
||||
<li><a href="../modules/Table.html">Table</a></li>
|
||||
<li><a href="../modules/Time.html">Time</a></li>
|
||||
</ul>
|
||||
<h2>Scripts</h2>
|
||||
<ul class="nowrap">
|
||||
@@ -111,6 +111,10 @@
|
||||
<td class="name" nowrap><a href="#defines.lightcolor">defines.lightcolor</a></td>
|
||||
<td class="summary">Returns a lighter color of a named color.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="name" nowrap><a href="#defines.textcolor">defines.textcolor</a></td>
|
||||
<td class="summary">Returns a lighter color of a named color.</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<br/>
|
||||
@@ -151,8 +155,8 @@
|
||||
<h3>Returns:</h3>
|
||||
<ol>
|
||||
|
||||
<span class="types"><span class="type">Concepts.Color</span></span>
|
||||
a color table that has the specified value for the alpha channel
|
||||
<span class="types"><span class="type">a</span></span>
|
||||
color table that has the specified value for the alpha channel
|
||||
</ol>
|
||||
|
||||
|
||||
@@ -178,8 +182,8 @@
|
||||
<h3>Returns:</h3>
|
||||
<ol>
|
||||
|
||||
<span class="types"><span class="type">Concepts.Color</span></span>
|
||||
a converted color — { r = c\_arr[1], g = c\_arr[2], b = c\_arr[3], a = c\_arr[4] }
|
||||
<span class="types"><span class="type">a</span></span>
|
||||
converted color — { r = c\_arr[1], g = c\_arr[2], b = c\_arr[3], a = c\_arr[4] }
|
||||
</ol>
|
||||
|
||||
|
||||
@@ -254,8 +258,8 @@
|
||||
<h3>Returns:</h3>
|
||||
<ol>
|
||||
|
||||
<span class="types"><span class="type">Concepts.Color</span></span>
|
||||
a color table with RGB converted from Hex and with alpha
|
||||
<span class="types"><span class="type">a</span></span>
|
||||
color table with RGB converted from Hex and with alpha
|
||||
</ol>
|
||||
|
||||
|
||||
@@ -277,90 +281,67 @@
|
||||
<h3>Fields:</h3>
|
||||
<ul>
|
||||
<li><span class="parameter">white</span>
|
||||
<span class="types"><span class="type">Concepts.Color</span></span>
|
||||
|
||||
{r=1.00,g=1.00,b=1.00}
|
||||
</li>
|
||||
<li><span class="parameter">black</span>
|
||||
<span class="types"><span class="type">Concepts.Color</span></span>
|
||||
|
||||
{r=0.00,g=0.00,b=0.00}
|
||||
</li>
|
||||
<li><span class="parameter">darkgrey</span>
|
||||
<span class="types"><span class="type">Concepts.Color</span></span>
|
||||
|
||||
{r=0.25,g=0.25,b=0.25}
|
||||
</li>
|
||||
<li><span class="parameter">grey</span>
|
||||
<span class="types"><span class="type">Concepts.Color</span></span>
|
||||
|
||||
{r=0.50,g=0.50,b=0.50}
|
||||
</li>
|
||||
<li><span class="parameter">lightgrey</span>
|
||||
<span class="types"><span class="type">Concepts.Color</span></span>
|
||||
|
||||
{r=0.75,g=0.75,b=0.75}
|
||||
</li>
|
||||
<li><span class="parameter">red</span>
|
||||
<span class="types"><span class="type">Concepts.Color</span></span>
|
||||
|
||||
{r=1.00,g=0.00,b=0.00}
|
||||
</li>
|
||||
<li><span class="parameter">darkred</span>
|
||||
<span class="types"><span class="type">Concepts.Color</span></span>
|
||||
|
||||
{r=0.50,g=0.00,b=0.00}
|
||||
</li>
|
||||
<li><span class="parameter">lightred</span>
|
||||
<span class="types"><span class="type">Concepts.Color</span></span>
|
||||
|
||||
{r=1.00,g=0.50,b=0.50}
|
||||
</li>
|
||||
<li><span class="parameter">green</span>
|
||||
<span class="types"><span class="type">Concepts.Color</span></span>
|
||||
|
||||
{r=0.00,g=1.00,b=0.00}
|
||||
</li>
|
||||
<li><span class="parameter">darkgreen</span>
|
||||
<span class="types"><span class="type">Concepts.Color</span></span>
|
||||
|
||||
{r=0.00,g=0.50,b=0.00}
|
||||
</li>
|
||||
<li><span class="parameter">lightgreen</span>
|
||||
<span class="types"><span class="type">Concepts.Color</span></span>
|
||||
|
||||
{r=0.50,g=1.00,b=0.50}
|
||||
</li>
|
||||
<li><span class="parameter">blue</span>
|
||||
<span class="types"><span class="type">Concepts.Color</span></span>
|
||||
|
||||
{r=0.00,g=0.00,b=1.00}
|
||||
</li>
|
||||
<li><span class="parameter">darkblue</span>
|
||||
<span class="types"><span class="type">Concepts.Color</span></span>
|
||||
|
||||
{r=0.00,g=0.00,b=0.50}
|
||||
</li>
|
||||
<li><span class="parameter">lightblue</span>
|
||||
<span class="types"><span class="type">Concepts.Color</span></span>
|
||||
|
||||
{r=0.50,g=0.50,b=1.00}
|
||||
</li>
|
||||
<li><span class="parameter">orange</span>
|
||||
<span class="types"><span class="type">Concepts.Color</span></span>
|
||||
|
||||
{r=1.00,g=0.55,b=0.10}
|
||||
</li>
|
||||
<li><span class="parameter">yellow</span>
|
||||
<span class="types"><span class="type">Concepts.Color</span></span>
|
||||
|
||||
{r=1.00,g=1.00,b=0.00}
|
||||
</li>
|
||||
<li><span class="parameter">pink</span>
|
||||
<span class="types"><span class="type">Concepts.Color</span></span>
|
||||
|
||||
{r=1.00,g=0.00,b=1.00}
|
||||
</li>
|
||||
<li><span class="parameter">purple</span>
|
||||
<span class="types"><span class="type">Concepts.Color</span></span>
|
||||
|
||||
{r=0.60,g=0.10,b=0.60}
|
||||
</li>
|
||||
<li><span class="parameter">brown</span>
|
||||
<span class="types"><span class="type">Concepts.Color</span></span>
|
||||
|
||||
{r=0.60,g=0.40,b=0.10}
|
||||
</li>
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
<h3>Usage:</h3>
|
||||
<ul>
|
||||
<pre class="example">color = defines.color.red</pre>
|
||||
</ul>
|
||||
|
||||
</dd>
|
||||
<dt>
|
||||
@@ -374,80 +355,61 @@
|
||||
<h3>Fields:</h3>
|
||||
<ul>
|
||||
<li><span class="parameter">green</span>
|
||||
<span class="types"><span class="type">Concepts.Color</span></span>
|
||||
defines.color.black
|
||||
defines.color.black
|
||||
</li>
|
||||
<li><span class="parameter">grey</span>
|
||||
<span class="types"><span class="type">Concepts.Color</span></span>
|
||||
defines.color.black
|
||||
defines.color.black
|
||||
</li>
|
||||
<li><span class="parameter">lightblue</span>
|
||||
<span class="types"><span class="type">Concepts.Color</span></span>
|
||||
defines.color.black
|
||||
defines.color.black
|
||||
</li>
|
||||
<li><span class="parameter">lightgreen</span>
|
||||
<span class="types"><span class="type">Concepts.Color</span></span>
|
||||
defines.color.black
|
||||
defines.color.black
|
||||
</li>
|
||||
<li><span class="parameter">lightgrey</span>
|
||||
<span class="types"><span class="type">Concepts.Color</span></span>
|
||||
defines.color.black
|
||||
defines.color.black
|
||||
</li>
|
||||
<li><span class="parameter">lightred</span>
|
||||
<span class="types"><span class="type">Concepts.Color</span></span>
|
||||
defines.color.black
|
||||
defines.color.black
|
||||
</li>
|
||||
<li><span class="parameter">orange</span>
|
||||
<span class="types"><span class="type">Concepts.Color</span></span>
|
||||
defines.color.black
|
||||
defines.color.black
|
||||
</li>
|
||||
<li><span class="parameter">white</span>
|
||||
<span class="types"><span class="type">Concepts.Color</span></span>
|
||||
defines.color.black
|
||||
defines.color.black
|
||||
</li>
|
||||
<li><span class="parameter">yellow</span>
|
||||
<span class="types"><span class="type">Concepts.Color</span></span>
|
||||
defines.color.black
|
||||
defines.color.black
|
||||
</li>
|
||||
<li><span class="parameter">black</span>
|
||||
<span class="types"><span class="type">Concepts.Color</span></span>
|
||||
defines.color.white
|
||||
defines.color.white
|
||||
</li>
|
||||
<li><span class="parameter">blue</span>
|
||||
<span class="types"><span class="type">Concepts.Color</span></span>
|
||||
defines.color.white
|
||||
defines.color.white
|
||||
</li>
|
||||
<li><span class="parameter">brown</span>
|
||||
<span class="types"><span class="type">Concepts.Color</span></span>
|
||||
defines.color.white
|
||||
defines.color.white
|
||||
</li>
|
||||
<li><span class="parameter">darkblue</span>
|
||||
<span class="types"><span class="type">Concepts.Color</span></span>
|
||||
defines.color.white
|
||||
defines.color.white
|
||||
</li>
|
||||
<li><span class="parameter">darkgreen</span>
|
||||
<span class="types"><span class="type">Concepts.Color</span></span>
|
||||
defines.color.white
|
||||
defines.color.white
|
||||
</li>
|
||||
<li><span class="parameter">darkgrey</span>
|
||||
<span class="types"><span class="type">Concepts.Color</span></span>
|
||||
defines.color.white
|
||||
defines.color.white
|
||||
</li>
|
||||
<li><span class="parameter">darkred</span>
|
||||
<span class="types"><span class="type">Concepts.Color</span></span>
|
||||
defines.color.white
|
||||
defines.color.white
|
||||
</li>
|
||||
<li><span class="parameter">pink</span>
|
||||
<span class="types"><span class="type">Concepts.Color</span></span>
|
||||
defines.color.white
|
||||
defines.color.white
|
||||
</li>
|
||||
<li><span class="parameter">purple</span>
|
||||
<span class="types"><span class="type">Concepts.Color</span></span>
|
||||
defines.color.white
|
||||
defines.color.white
|
||||
</li>
|
||||
<li><span class="parameter">red</span>
|
||||
<span class="types"><span class="type">Concepts.Color</span></span>
|
||||
defines.color.white
|
||||
defines.color.white
|
||||
</li>
|
||||
</ul>
|
||||
|
||||
@@ -467,36 +429,63 @@
|
||||
<h3>Fields:</h3>
|
||||
<ul>
|
||||
<li><span class="parameter">white</span>
|
||||
<span class="types"><span class="type">Concepts.Color</span></span>
|
||||
defines.color.lightgrey
|
||||
defines.color.lightgrey
|
||||
</li>
|
||||
<li><span class="parameter">grey</span>
|
||||
<span class="types"><span class="type">Concepts.Color</span></span>
|
||||
defines.color.darkgrey
|
||||
defines.color.darkgrey
|
||||
</li>
|
||||
<li><span class="parameter">lightgrey</span>
|
||||
<span class="types"><span class="type">Concepts.Color</span></span>
|
||||
defines.color.grey
|
||||
defines.color.grey
|
||||
</li>
|
||||
<li><span class="parameter">red</span>
|
||||
<span class="types"><span class="type">Concepts.Color</span></span>
|
||||
defines.color.lightred
|
||||
defines.color.lightred
|
||||
</li>
|
||||
<li><span class="parameter">green</span>
|
||||
<span class="types"><span class="type">Concepts.Color</span></span>
|
||||
defines.color.lightgreen
|
||||
defines.color.lightgreen
|
||||
</li>
|
||||
<li><span class="parameter">blue</span>
|
||||
<span class="types"><span class="type">Concepts.Color</span></span>
|
||||
defines.color.lightblue
|
||||
defines.color.lightblue
|
||||
</li>
|
||||
<li><span class="parameter">yellow</span>
|
||||
<span class="types"><span class="type">Concepts.Color</span></span>
|
||||
defines.color.orange
|
||||
defines.color.orange
|
||||
</li>
|
||||
<li><span class="parameter">pink</span>
|
||||
<span class="types"><span class="type">Concepts.Color</span></span>
|
||||
defines.color.purple
|
||||
defines.color.purple
|
||||
</li>
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</dd>
|
||||
<dt>
|
||||
<a name = "defines.textcolor"></a>
|
||||
<strong>defines.textcolor</strong>
|
||||
</dt>
|
||||
<dd>
|
||||
Returns a lighter color of a named color.
|
||||
|
||||
|
||||
<h3>Fields:</h3>
|
||||
<ul>
|
||||
<li><span class="parameter">info</span>
|
||||
{r=0.21,g=0.95,b=1.00}
|
||||
</li>
|
||||
<li><span class="parameter">bg</span>
|
||||
{r=0.00,g=0.00,b=0.00}
|
||||
</li>
|
||||
<li><span class="parameter">low</span>
|
||||
{r=0.18,g=0.77,b=0.18}
|
||||
</li>
|
||||
<li><span class="parameter">med</span>
|
||||
{r=1.00,g=0.89,b=0.26}
|
||||
</li>
|
||||
<li><span class="parameter">high</span>
|
||||
{r=1.00,g=0.33,b=0.00}
|
||||
</li>
|
||||
<li><span class="parameter">crit</span>
|
||||
{r=1.00,g=0.00,b=0.00}
|
||||
</li>
|
||||
</ul>
|
||||
|
||||
@@ -512,7 +501,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 2018-05-29 20:54:20 </i>
|
||||
<i style="float:right;">Last updated 2018-05-29 22:53:53 </i>
|
||||
</div> <!-- id="about" -->
|
||||
</div> <!-- id="container" -->
|
||||
</body>
|
||||
|
||||
@@ -52,9 +52,9 @@
|
||||
<li><strong>ExpGamingLib</strong></li>
|
||||
<li><a href="../modules/Color.html">Color</a></li>
|
||||
<li><a href="../modules/Game.html">Game</a></li>
|
||||
<li><a href="../modules/string.html">string</a></li>
|
||||
<li><a href="../modules/table.html">table</a></li>
|
||||
<li><a href="../modules/defines.time.html">defines.time</a></li>
|
||||
<li><a href="../modules/String.html">String</a></li>
|
||||
<li><a href="../modules/Table.html">Table</a></li>
|
||||
<li><a href="../modules/Time.html">Time</a></li>
|
||||
</ul>
|
||||
<h2>Scripts</h2>
|
||||
<ul class="nowrap">
|
||||
@@ -371,7 +371,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 2018-05-29 20:54:20 </i>
|
||||
<i style="float:right;">Last updated 2018-05-29 22:53:53 </i>
|
||||
</div> <!-- id="about" -->
|
||||
</div> <!-- id="container" -->
|
||||
</body>
|
||||
|
||||
@@ -53,9 +53,9 @@
|
||||
<li><a href="../modules/ExpGamingLib.html">ExpGamingLib</a></li>
|
||||
<li><a href="../modules/Color.html">Color</a></li>
|
||||
<li><a href="../modules/Game.html">Game</a></li>
|
||||
<li><a href="../modules/string.html">string</a></li>
|
||||
<li><a href="../modules/table.html">table</a></li>
|
||||
<li><a href="../modules/defines.time.html">defines.time</a></li>
|
||||
<li><a href="../modules/String.html">String</a></li>
|
||||
<li><a href="../modules/Table.html">Table</a></li>
|
||||
<li><a href="../modules/Time.html">Time</a></li>
|
||||
</ul>
|
||||
<h2>Scripts</h2>
|
||||
<ul class="nowrap">
|
||||
@@ -114,6 +114,10 @@
|
||||
</table>
|
||||
<h2><a href="#Tables">Tables</a></h2>
|
||||
<table class="function_list">
|
||||
<tr>
|
||||
<td class="name" nowrap><a href="#verboseSettings">verboseSettings</a></td>
|
||||
<td class="summary">Different verbose settings used for setVerbose</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="name" nowrap><a href="#Manager.event.names">Manager.event.names</a></td>
|
||||
<td class="summary">Sub set to Manger.event and acts as a coverter between event_name and event_id</td>
|
||||
@@ -335,6 +339,54 @@
|
||||
<h2 class="section-header "><a name="Tables"></a>Tables</h2>
|
||||
|
||||
<dl class="function">
|
||||
<dt>
|
||||
<a name = "verboseSettings"></a>
|
||||
<strong>verboseSettings</strong>
|
||||
</dt>
|
||||
<dd>
|
||||
Different verbose settings used for setVerbose
|
||||
|
||||
|
||||
<h3>Fields:</h3>
|
||||
<ul>
|
||||
<li><span class="parameter">selfInit</span>
|
||||
<span class="types"><span class="type">boolean</span></span>
|
||||
called while the manager is being set up
|
||||
</li>
|
||||
<li><span class="parameter">moduleLoad</span>
|
||||
<span class="types"><span class="type">boolean</span></span>
|
||||
when a module is required by the manager
|
||||
</li>
|
||||
<li><span class="parameter">moduleInit</span>
|
||||
<span class="types"><span class="type">boolean</span></span>
|
||||
when and within the initation of a module
|
||||
</li>
|
||||
<li><span class="parameter">moduleEnv</span>
|
||||
<span class="types"><span class="type">boolean</span></span>
|
||||
during module runtime, this is a global option set within each module(module_verbose=true ln:1) for fine control
|
||||
</li>
|
||||
<li><span class="parameter">eventRegistered</span>
|
||||
<span class="types"><span class="type">boolean</span></span>
|
||||
when a module registers its event handlers
|
||||
</li>
|
||||
<li><span class="parameter">errorCaught</span>
|
||||
<span class="types"><span class="type">boolean</span></span>
|
||||
when an error is caught during runtime
|
||||
</li>
|
||||
<li><span class="parameter">output</span>
|
||||
<span class="types"><span class="type">function</span></span>
|
||||
can be: print || log || or other function
|
||||
</li>
|
||||
<li><span class="parameter">_output</span>
|
||||
a constant value that can used to store output data
|
||||
</li>
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</dd>
|
||||
<dt>
|
||||
<a name = "Manager.event.names"></a>
|
||||
<strong>Manager.event.names</strong>
|
||||
@@ -346,9 +398,6 @@
|
||||
|
||||
|
||||
|
||||
<h3>See also:</h3>
|
||||
<ul>
|
||||
</ul>
|
||||
|
||||
<h3>Usage:</h3>
|
||||
<ul>
|
||||
@@ -363,7 +412,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 2018-05-29 20:54:20 </i>
|
||||
<i style="float:right;">Last updated 2018-05-29 22:53:53 </i>
|
||||
</div> <!-- id="about" -->
|
||||
</div> <!-- id="container" -->
|
||||
</body>
|
||||
|
||||
@@ -52,9 +52,9 @@
|
||||
<li><a href="../modules/ExpGamingLib.html">ExpGamingLib</a></li>
|
||||
<li><a href="../modules/Color.html">Color</a></li>
|
||||
<li><strong>Game</strong></li>
|
||||
<li><a href="../modules/string.html">string</a></li>
|
||||
<li><a href="../modules/table.html">table</a></li>
|
||||
<li><a href="../modules/defines.time.html">defines.time</a></li>
|
||||
<li><a href="../modules/String.html">String</a></li>
|
||||
<li><a href="../modules/Table.html">Table</a></li>
|
||||
<li><a href="../modules/Time.html">Time</a></li>
|
||||
</ul>
|
||||
<h2>Scripts</h2>
|
||||
<ul class="nowrap">
|
||||
@@ -224,7 +224,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 2018-05-29 20:54:20 </i>
|
||||
<i style="float:right;">Last updated 2018-05-29 22:53:53 </i>
|
||||
</div> <!-- id="about" -->
|
||||
</div> <!-- id="container" -->
|
||||
</body>
|
||||
|
||||
166
doc/modules/Time.html
Normal file
166
doc/modules/Time.html
Normal file
@@ -0,0 +1,166 @@
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
|
||||
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||
<html>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
|
||||
<head>
|
||||
<title>Reference</title>
|
||||
<link rel="stylesheet" href="../ldoc.css" type="text/css" />
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<div id="container">
|
||||
|
||||
<div id="product">
|
||||
<div id="product_logo"></div>
|
||||
<div id="product_name"><big><b></b></big></div>
|
||||
<div id="product_description"></div>
|
||||
</div> <!-- id="product" -->
|
||||
|
||||
|
||||
<div id="main">
|
||||
|
||||
|
||||
<!-- Menu -->
|
||||
|
||||
<div id="navigation">
|
||||
<br/>
|
||||
<h1>ldoc</h1>
|
||||
|
||||
<ul>
|
||||
<li><a href="../index.html">Index</a></li>
|
||||
</ul>
|
||||
|
||||
<h2>Contents</h2>
|
||||
<ul>
|
||||
<li><a href="#Tables">Tables</a></li>
|
||||
</ul>
|
||||
|
||||
|
||||
<h2>Modules</h2>
|
||||
<ul class="nowrap">
|
||||
<li><a href="../modules/expcore.guiparts.center.html">expcore.guiparts.center</a></li>
|
||||
<li><a href="../modules/expcore.guiparts.inputs.html">expcore.guiparts.inputs</a></li>
|
||||
<li><a href="../modules/expcore.guiparts.left.html">expcore.guiparts.left</a></li>
|
||||
<li><a href="../modules/expcore.guiparts.popup.html">expcore.guiparts.popup</a></li>
|
||||
<li><a href="../modules/expcore.guiparts.toolbar.html">expcore.guiparts.toolbar</a></li>
|
||||
<li><a href="../modules/expcore.commands.html">expcore.commands</a></li>
|
||||
<li><a href="../modules/expcore.gui.html">expcore.gui</a></li>
|
||||
<li><a href="../modules/expcore.ranking.html">expcore.ranking</a></li>
|
||||
<li><a href="../modules/expcore.server.html">expcore.server</a></li>
|
||||
<li><a href="../modules/expcore.sync.html">expcore.sync</a></li>
|
||||
<li><a href="../modules/FSM.html">FSM</a></li>
|
||||
<li><a href="../modules/ExpGamingLib.html">ExpGamingLib</a></li>
|
||||
<li><a href="../modules/Color.html">Color</a></li>
|
||||
<li><a href="../modules/Game.html">Game</a></li>
|
||||
<li><a href="../modules/String.html">String</a></li>
|
||||
<li><a href="../modules/Table.html">Table</a></li>
|
||||
<li><strong>Time</strong></li>
|
||||
</ul>
|
||||
<h2>Scripts</h2>
|
||||
<ul class="nowrap">
|
||||
<li><a href="../scripts/control.lua.html">control.lua</a></li>
|
||||
<li><a href="../scripts/index.lua.html">index.lua</a></li>
|
||||
</ul>
|
||||
|
||||
</div>
|
||||
|
||||
<div id="content">
|
||||
|
||||
<h1>Module <code>Time</code></h1>
|
||||
<p>A defines module for retrieving the number of ticks in 1 unit of time.</p>
|
||||
<p>
|
||||
Extends the Factorio defines table.</p>
|
||||
<h3>Usage:</h3>
|
||||
<ul>
|
||||
<pre class="example">require('stdlib/defines/time')
|
||||
</pre>
|
||||
</ul>
|
||||
|
||||
|
||||
<h2><a href="#Tables">Tables</a></h2>
|
||||
<table class="function_list">
|
||||
<tr>
|
||||
<td class="name" nowrap><a href="#defines.time">defines.time</a></td>
|
||||
<td class="summary">Returns the number of ticks in a second, minute, hour, day, week, month, or year.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="name" nowrap><a href="#Time">Time</a></td>
|
||||
<td class="summary">Allows index to deines.time though the Time module</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<br/>
|
||||
<br/>
|
||||
|
||||
|
||||
<h2 class="section-header "><a name="Tables"></a>Tables</h2>
|
||||
|
||||
<dl class="function">
|
||||
<dt>
|
||||
<a name = "defines.time"></a>
|
||||
<strong>defines.time</strong>
|
||||
</dt>
|
||||
<dd>
|
||||
Returns the number of ticks in a second, minute, hour, day, week, month, or year.
|
||||
|
||||
|
||||
<h3>Fields:</h3>
|
||||
<ul>
|
||||
<li><span class="parameter">second</span>
|
||||
the number of Factorio ticks in a second
|
||||
</li>
|
||||
<li><span class="parameter">minute</span>
|
||||
the number of Factorio ticks in a second
|
||||
</li>
|
||||
<li><span class="parameter">hour</span>
|
||||
the number of Factorio ticks in an hour
|
||||
</li>
|
||||
<li><span class="parameter">day</span>
|
||||
the number of Factorio ticks in an day
|
||||
</li>
|
||||
<li><span class="parameter">week</span>
|
||||
the number of Factorio ticks in a week
|
||||
</li>
|
||||
<li><span class="parameter">month</span>
|
||||
the number of Factorio ticks in a month (30 days)
|
||||
</li>
|
||||
<li><span class="parameter">year</span>
|
||||
the number of Factorio ticks in a year (365 days)
|
||||
</li>
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
<h3>Usage:</h3>
|
||||
<ul>
|
||||
<pre class="example"><span class="keyword">local</span> ten_seconds = defines.time.second * <span class="number">10</span></pre>
|
||||
</ul>
|
||||
|
||||
</dd>
|
||||
<dt>
|
||||
<a name = "Time"></a>
|
||||
<strong>Time</strong>
|
||||
</dt>
|
||||
<dd>
|
||||
Allows index to deines.time though the Time module
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</dd>
|
||||
</dl>
|
||||
|
||||
|
||||
</div> <!-- id="content" -->
|
||||
</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 2018-05-29 22:53:53 </i>
|
||||
</div> <!-- id="about" -->
|
||||
</div> <!-- id="container" -->
|
||||
</body>
|
||||
</html>
|
||||
@@ -52,9 +52,9 @@
|
||||
<li><a href="../modules/ExpGamingLib.html">ExpGamingLib</a></li>
|
||||
<li><a href="../modules/Color.html">Color</a></li>
|
||||
<li><a href="../modules/Game.html">Game</a></li>
|
||||
<li><a href="../modules/string.html">string</a></li>
|
||||
<li><a href="../modules/table.html">table</a></li>
|
||||
<li><a href="../modules/defines.time.html">defines.time</a></li>
|
||||
<li><a href="../modules/String.html">String</a></li>
|
||||
<li><a href="../modules/Table.html">Table</a></li>
|
||||
<li><a href="../modules/Time.html">Time</a></li>
|
||||
</ul>
|
||||
<h2>Scripts</h2>
|
||||
<ul class="nowrap">
|
||||
@@ -129,7 +129,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 2018-05-29 20:54:20 </i>
|
||||
<i style="float:right;">Last updated 2018-05-29 22:53:53 </i>
|
||||
</div> <!-- id="about" -->
|
||||
</div> <!-- id="container" -->
|
||||
</body>
|
||||
|
||||
@@ -52,9 +52,9 @@
|
||||
<li><a href="../modules/ExpGamingLib.html">ExpGamingLib</a></li>
|
||||
<li><a href="../modules/Color.html">Color</a></li>
|
||||
<li><a href="../modules/Game.html">Game</a></li>
|
||||
<li><a href="../modules/string.html">string</a></li>
|
||||
<li><a href="../modules/table.html">table</a></li>
|
||||
<li><a href="../modules/defines.time.html">defines.time</a></li>
|
||||
<li><a href="../modules/String.html">String</a></li>
|
||||
<li><a href="../modules/Table.html">Table</a></li>
|
||||
<li><a href="../modules/Time.html">Time</a></li>
|
||||
</ul>
|
||||
<h2>Scripts</h2>
|
||||
<ul class="nowrap">
|
||||
@@ -165,7 +165,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 2018-05-29 20:54:20 </i>
|
||||
<i style="float:right;">Last updated 2018-05-29 22:53:53 </i>
|
||||
</div> <!-- id="about" -->
|
||||
</div> <!-- id="container" -->
|
||||
</body>
|
||||
|
||||
@@ -52,9 +52,9 @@
|
||||
<li><a href="../modules/ExpGamingLib.html">ExpGamingLib</a></li>
|
||||
<li><a href="../modules/Color.html">Color</a></li>
|
||||
<li><a href="../modules/Game.html">Game</a></li>
|
||||
<li><a href="../modules/string.html">string</a></li>
|
||||
<li><a href="../modules/table.html">table</a></li>
|
||||
<li><a href="../modules/defines.time.html">defines.time</a></li>
|
||||
<li><a href="../modules/String.html">String</a></li>
|
||||
<li><a href="../modules/Table.html">Table</a></li>
|
||||
<li><a href="../modules/Time.html">Time</a></li>
|
||||
</ul>
|
||||
<h2>Scripts</h2>
|
||||
<ul class="nowrap">
|
||||
@@ -283,7 +283,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 2018-05-29 20:54:20 </i>
|
||||
<i style="float:right;">Last updated 2018-05-29 22:53:53 </i>
|
||||
</div> <!-- id="about" -->
|
||||
</div> <!-- id="container" -->
|
||||
</body>
|
||||
|
||||
@@ -52,9 +52,9 @@
|
||||
<li><a href="../modules/ExpGamingLib.html">ExpGamingLib</a></li>
|
||||
<li><a href="../modules/Color.html">Color</a></li>
|
||||
<li><a href="../modules/Game.html">Game</a></li>
|
||||
<li><a href="../modules/string.html">string</a></li>
|
||||
<li><a href="../modules/table.html">table</a></li>
|
||||
<li><a href="../modules/defines.time.html">defines.time</a></li>
|
||||
<li><a href="../modules/String.html">String</a></li>
|
||||
<li><a href="../modules/Table.html">Table</a></li>
|
||||
<li><a href="../modules/Time.html">Time</a></li>
|
||||
</ul>
|
||||
<h2>Scripts</h2>
|
||||
<ul class="nowrap">
|
||||
@@ -439,7 +439,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 2018-05-29 20:54:20 </i>
|
||||
<i style="float:right;">Last updated 2018-05-29 22:53:53 </i>
|
||||
</div> <!-- id="about" -->
|
||||
</div> <!-- id="container" -->
|
||||
</body>
|
||||
|
||||
@@ -52,9 +52,9 @@
|
||||
<li><a href="../modules/ExpGamingLib.html">ExpGamingLib</a></li>
|
||||
<li><a href="../modules/Color.html">Color</a></li>
|
||||
<li><a href="../modules/Game.html">Game</a></li>
|
||||
<li><a href="../modules/string.html">string</a></li>
|
||||
<li><a href="../modules/table.html">table</a></li>
|
||||
<li><a href="../modules/defines.time.html">defines.time</a></li>
|
||||
<li><a href="../modules/String.html">String</a></li>
|
||||
<li><a href="../modules/Table.html">Table</a></li>
|
||||
<li><a href="../modules/Time.html">Time</a></li>
|
||||
</ul>
|
||||
<h2>Scripts</h2>
|
||||
<ul class="nowrap">
|
||||
@@ -186,7 +186,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 2018-05-29 20:54:20 </i>
|
||||
<i style="float:right;">Last updated 2018-05-29 22:53:53 </i>
|
||||
</div> <!-- id="about" -->
|
||||
</div> <!-- id="container" -->
|
||||
</body>
|
||||
|
||||
@@ -52,9 +52,9 @@
|
||||
<li><a href="../modules/ExpGamingLib.html">ExpGamingLib</a></li>
|
||||
<li><a href="../modules/Color.html">Color</a></li>
|
||||
<li><a href="../modules/Game.html">Game</a></li>
|
||||
<li><a href="../modules/string.html">string</a></li>
|
||||
<li><a href="../modules/table.html">table</a></li>
|
||||
<li><a href="../modules/defines.time.html">defines.time</a></li>
|
||||
<li><a href="../modules/String.html">String</a></li>
|
||||
<li><a href="../modules/Table.html">Table</a></li>
|
||||
<li><a href="../modules/Time.html">Time</a></li>
|
||||
</ul>
|
||||
<h2>Scripts</h2>
|
||||
<ul class="nowrap">
|
||||
@@ -131,7 +131,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 2018-05-29 20:54:20 </i>
|
||||
<i style="float:right;">Last updated 2018-05-29 22:53:53 </i>
|
||||
</div> <!-- id="about" -->
|
||||
</div> <!-- id="container" -->
|
||||
</body>
|
||||
|
||||
@@ -52,9 +52,9 @@
|
||||
<li><a href="../modules/ExpGamingLib.html">ExpGamingLib</a></li>
|
||||
<li><a href="../modules/Color.html">Color</a></li>
|
||||
<li><a href="../modules/Game.html">Game</a></li>
|
||||
<li><a href="../modules/string.html">string</a></li>
|
||||
<li><a href="../modules/table.html">table</a></li>
|
||||
<li><a href="../modules/defines.time.html">defines.time</a></li>
|
||||
<li><a href="../modules/String.html">String</a></li>
|
||||
<li><a href="../modules/Table.html">Table</a></li>
|
||||
<li><a href="../modules/Time.html">Time</a></li>
|
||||
</ul>
|
||||
<h2>Scripts</h2>
|
||||
<ul class="nowrap">
|
||||
@@ -122,7 +122,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 2018-05-29 20:54:20 </i>
|
||||
<i style="float:right;">Last updated 2018-05-29 22:53:53 </i>
|
||||
</div> <!-- id="about" -->
|
||||
</div> <!-- id="container" -->
|
||||
</body>
|
||||
|
||||
@@ -52,9 +52,9 @@
|
||||
<li><a href="../modules/ExpGamingLib.html">ExpGamingLib</a></li>
|
||||
<li><a href="../modules/Color.html">Color</a></li>
|
||||
<li><a href="../modules/Game.html">Game</a></li>
|
||||
<li><a href="../modules/string.html">string</a></li>
|
||||
<li><a href="../modules/table.html">table</a></li>
|
||||
<li><a href="../modules/defines.time.html">defines.time</a></li>
|
||||
<li><a href="../modules/String.html">String</a></li>
|
||||
<li><a href="../modules/Table.html">Table</a></li>
|
||||
<li><a href="../modules/Time.html">Time</a></li>
|
||||
</ul>
|
||||
<h2>Scripts</h2>
|
||||
<ul class="nowrap">
|
||||
@@ -379,7 +379,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 2018-05-29 20:54:20 </i>
|
||||
<i style="float:right;">Last updated 2018-05-29 22:53:53 </i>
|
||||
</div> <!-- id="about" -->
|
||||
</div> <!-- id="container" -->
|
||||
</body>
|
||||
|
||||
@@ -52,9 +52,9 @@
|
||||
<li><a href="../modules/ExpGamingLib.html">ExpGamingLib</a></li>
|
||||
<li><a href="../modules/Color.html">Color</a></li>
|
||||
<li><a href="../modules/Game.html">Game</a></li>
|
||||
<li><a href="../modules/string.html">string</a></li>
|
||||
<li><a href="../modules/table.html">table</a></li>
|
||||
<li><a href="../modules/defines.time.html">defines.time</a></li>
|
||||
<li><a href="../modules/String.html">String</a></li>
|
||||
<li><a href="../modules/Table.html">Table</a></li>
|
||||
<li><a href="../modules/Time.html">Time</a></li>
|
||||
</ul>
|
||||
<h2>Scripts</h2>
|
||||
<ul class="nowrap">
|
||||
@@ -564,7 +564,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 2018-05-29 20:54:20 </i>
|
||||
<i style="float:right;">Last updated 2018-05-29 22:53:53 </i>
|
||||
</div> <!-- id="about" -->
|
||||
</div> <!-- id="container" -->
|
||||
</body>
|
||||
|
||||
@@ -52,9 +52,9 @@
|
||||
<li><a href="../modules/ExpGamingLib.html">ExpGamingLib</a></li>
|
||||
<li><a href="../modules/Color.html">Color</a></li>
|
||||
<li><a href="../modules/Game.html">Game</a></li>
|
||||
<li><a href="../modules/string.html">string</a></li>
|
||||
<li><a href="../modules/table.html">table</a></li>
|
||||
<li><a href="../modules/defines.time.html">defines.time</a></li>
|
||||
<li><a href="../modules/String.html">String</a></li>
|
||||
<li><a href="../modules/Table.html">Table</a></li>
|
||||
<li><a href="../modules/Time.html">Time</a></li>
|
||||
</ul>
|
||||
<h2>Scripts</h2>
|
||||
<ul class="nowrap">
|
||||
@@ -535,7 +535,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 2018-05-29 20:54:20 </i>
|
||||
<i style="float:right;">Last updated 2018-05-29 22:53:53 </i>
|
||||
</div> <!-- id="about" -->
|
||||
</div> <!-- id="container" -->
|
||||
</body>
|
||||
|
||||
@@ -52,9 +52,9 @@
|
||||
<li><a href="../modules/ExpGamingLib.html">ExpGamingLib</a></li>
|
||||
<li><a href="../modules/Color.html">Color</a></li>
|
||||
<li><a href="../modules/Game.html">Game</a></li>
|
||||
<li><strong>string</strong></li>
|
||||
<li><a href="../modules/table.html">table</a></li>
|
||||
<li><a href="../modules/defines.time.html">defines.time</a></li>
|
||||
<li><strong>String</strong></li>
|
||||
<li><a href="../modules/Table.html">Table</a></li>
|
||||
<li><a href="../modules/Time.html">Time</a></li>
|
||||
</ul>
|
||||
<h2>Scripts</h2>
|
||||
<ul class="nowrap">
|
||||
@@ -66,13 +66,9 @@
|
||||
|
||||
<div id="content">
|
||||
|
||||
<h1>Module <code>string</code></h1>
|
||||
<h1>Module <code>String</code></h1>
|
||||
<p>Extends Lua 5.2 string.</p>
|
||||
<p></p>
|
||||
<h3>See also:</h3>
|
||||
<ul>
|
||||
<a href="../modules/string.html#">string</a>
|
||||
</ul>
|
||||
|
||||
|
||||
<h2><a href="#Functions">Functions</a></h2>
|
||||
@@ -303,7 +299,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 2018-05-29 20:54:20 </i>
|
||||
<i style="float:right;">Last updated 2018-05-29 22:53:53 </i>
|
||||
</div> <!-- id="about" -->
|
||||
</div> <!-- id="container" -->
|
||||
</body>
|
||||
|
||||
@@ -52,9 +52,9 @@
|
||||
<li><a href="../modules/ExpGamingLib.html">ExpGamingLib</a></li>
|
||||
<li><a href="../modules/Color.html">Color</a></li>
|
||||
<li><a href="../modules/Game.html">Game</a></li>
|
||||
<li><a href="../modules/string.html">string</a></li>
|
||||
<li><strong>table</strong></li>
|
||||
<li><a href="../modules/defines.time.html">defines.time</a></li>
|
||||
<li><a href="../modules/String.html">String</a></li>
|
||||
<li><strong>Table</strong></li>
|
||||
<li><a href="../modules/Time.html">Time</a></li>
|
||||
</ul>
|
||||
<h2>Scripts</h2>
|
||||
<ul class="nowrap">
|
||||
@@ -66,13 +66,9 @@
|
||||
|
||||
<div id="content">
|
||||
|
||||
<h1>Module <code>table</code></h1>
|
||||
<h1>Module <code>Table</code></h1>
|
||||
<p>Extends Lua 5.2 table.</p>
|
||||
<p></p>
|
||||
<h3>See also:</h3>
|
||||
<ul>
|
||||
<a href="../modules/table.html#">table</a>
|
||||
</ul>
|
||||
|
||||
|
||||
<h2><a href="#Functions">Functions</a></h2>
|
||||
@@ -172,7 +168,7 @@
|
||||
<td class="summary">Returns a value in a form able to be read as a key</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="name" nowrap><a href="#to_string">to_string (tbl)</a></td>
|
||||
<td class="name" nowrap><a href="#tostring">tostring (tbl)</a></td>
|
||||
<td class="summary">Returns a table in a form able to be read as a table</td>
|
||||
</tr>
|
||||
<tr>
|
||||
@@ -366,17 +362,11 @@
|
||||
</ol>
|
||||
|
||||
|
||||
<h3>See also:</h3>
|
||||
<ul>
|
||||
<a href="../modules/table.html#find">table.find</a>
|
||||
</ul>
|
||||
|
||||
<h3>Usage:</h3>
|
||||
<ul>
|
||||
<li><pre class="example">a= { <span class="number">1</span>, <span class="number">2</span>, <span class="number">3</span>, <span class="number">4</span>, <span class="number">5</span>}
|
||||
<span class="global">table</span>.any(a, <span class="keyword">function</span>(v) <span class="keyword">return</span> v % <span class="number">2</span> == <span class="number">0</span> <span class="keyword">end</span>) <span class="comment">--produces: true</span></pre></li>
|
||||
<li><pre class="example">a = {<span class="number">1</span>, <span class="number">2</span>, <span class="number">3</span>, <span class="number">4</span>, <span class="number">5</span>}
|
||||
<span class="global">table</span>.any(a, <span class="keyword">function</span>(v, k, x) <span class="keyword">return</span> k % <span class="number">2</span> == <span class="number">1</span> <span class="keyword">end</span>) <span class="comment">--produces: true</span></pre></li>
|
||||
<li><pre class="example">a= { <span class="number">1</span>, <span class="number">2</span>, <span class="number">3</span>, <span class="number">4</span>, <span class="number">5</span>} <span class="global">table</span>.any(a, <span class="keyword">function</span>(v) <span class="keyword">return</span> v % <span class="number">2</span> == <span class="number">0</span> <span class="keyword">end</span>) <span class="comment">--produces: true</span></pre></li>
|
||||
<li><pre class="example">a = {<span class="number">1</span>, <span class="number">2</span>, <span class="number">3</span>, <span class="number">4</span>, <span class="number">5</span>} <span class="global">table</span>.any(a, <span class="keyword">function</span>(v, k, x) <span class="keyword">return</span> k % <span class="number">2</span> == <span class="number">1</span> <span class="keyword">end</span>) <span class="comment">--produces: true</span></pre></li>
|
||||
</ul>
|
||||
|
||||
</dd>
|
||||
@@ -978,8 +968,8 @@ some_func(<span class="number">1</span>,<span class="number">2</span>) <span cla
|
||||
|
||||
</dd>
|
||||
<dt>
|
||||
<a name = "to_string"></a>
|
||||
<strong>to_string (tbl)</strong>
|
||||
<a name = "tostring"></a>
|
||||
<strong>tostring (tbl)</strong>
|
||||
</dt>
|
||||
<dd>
|
||||
Returns a table in a form able to be read as a table
|
||||
@@ -1138,7 +1128,7 @@ some_func(<span class="number">1</span>,<span class="number">2</span>) <span cla
|
||||
</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 2018-05-29 20:54:20 </i>
|
||||
<i style="float:right;">Last updated 2018-05-29 22:53:53 </i>
|
||||
</div> <!-- id="about" -->
|
||||
</div> <!-- id="container" -->
|
||||
</body>
|
||||
|
||||
Reference in New Issue
Block a user