Move features into features.lua
parent
ae6f63d1f3
commit
e05a654b22
|
@ -33,6 +33,7 @@
|
|||
<h2>Modules</h2>
|
||||
<ul class="nowrap">
|
||||
<li><a href="modules/common.lua.html">common.lua</a></li>
|
||||
<li><a href="modules/features.lua.html">features.lua</a></li>
|
||||
<li><a href="modules/register.lua.html">register.lua</a></li>
|
||||
<li><a href="modules/settings.lua.html">settings.lua</a></li>
|
||||
</ul>
|
||||
|
@ -51,6 +52,10 @@
|
|||
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="name" ><a href="modules/features.lua.html">features.lua</a></td>
|
||||
<td class="summary">Flags for features in current version.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="name" ><a href="modules/register.lua.html">register.lua</a></td>
|
||||
<td class="summary">MOB Registration</td>
|
||||
|
@ -65,7 +70,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-05-24 00:02:25 </i>
|
||||
<i style="float:right;">Last updated 2021-05-24 18:20:07 </i>
|
||||
</div> <!-- id="about" -->
|
||||
</div> <!-- id="container" -->
|
||||
</body>
|
||||
|
|
|
@ -8,6 +8,7 @@ boilerplate = true
|
|||
file = {"register.lua", "common.lua"}
|
||||
|
||||
new_type("setting", "Settings")
|
||||
new_type("feature", "Features")
|
||||
|
||||
custom_tags = {
|
||||
{
|
||||
|
|
|
@ -40,6 +40,7 @@
|
|||
<h2>Modules</h2>
|
||||
<ul class="nowrap">
|
||||
<li><strong>common.lua</strong></li>
|
||||
<li><a href="../modules/features.lua.html">features.lua</a></li>
|
||||
<li><a href="../modules/register.lua.html">register.lua</a></li>
|
||||
<li><a href="../modules/settings.lua.html">settings.lua</a></li>
|
||||
</ul>
|
||||
|
@ -243,7 +244,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-05-24 00:02:25 </i>
|
||||
<i style="float:right;">Last updated 2021-05-24 18:20:07 </i>
|
||||
</div> <!-- id="about" -->
|
||||
</div> <!-- id="container" -->
|
||||
</body>
|
||||
|
|
|
@ -0,0 +1,101 @@
|
|||
<!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>Creatures Revived</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>cmer</h1>
|
||||
|
||||
|
||||
<ul>
|
||||
<li><a href="../api.html">Index</a></li>
|
||||
</ul>
|
||||
|
||||
<h2>Contents</h2>
|
||||
<ul>
|
||||
<li><a href="#Features">Features</a></li>
|
||||
</ul>
|
||||
|
||||
|
||||
<h2>Modules</h2>
|
||||
<ul class="nowrap">
|
||||
<li><a href="../modules/common.lua.html">common.lua</a></li>
|
||||
<li><strong>features.lua</strong></li>
|
||||
<li><a href="../modules/register.lua.html">register.lua</a></li>
|
||||
<li><a href="../modules/settings.lua.html">settings.lua</a></li>
|
||||
</ul>
|
||||
|
||||
</div>
|
||||
|
||||
<div id="content">
|
||||
|
||||
<h1>Module <code>features.lua</code></h1>
|
||||
<p>Flags for features in current version.</p>
|
||||
<p>
|
||||
|
||||
</p>
|
||||
|
||||
|
||||
<h2><a href="#Features">Features</a></h2>
|
||||
<table class="function_list">
|
||||
<tr>
|
||||
<td class="name" ><a href="#cmer.feature_nametags">cmer.feature_nametags</a></td>
|
||||
<td class="summary">Showing nametags above mobs.</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<br/>
|
||||
<br/>
|
||||
|
||||
|
||||
<h2 class="section-header "><a name="Features"></a>Features</h2>
|
||||
|
||||
<dl class="function">
|
||||
<dt>
|
||||
<a name = "cmer.feature_nametags"></a>
|
||||
<strong>cmer.feature_nametags</strong>
|
||||
</dt>
|
||||
<dd>
|
||||
Showing nametags above mobs.
|
||||
|
||||
</ul>
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</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 2021-05-24 18:20:07 </i>
|
||||
</div> <!-- id="about" -->
|
||||
</div> <!-- id="container" -->
|
||||
</body>
|
||||
</html>
|
|
@ -43,6 +43,7 @@
|
|||
<h2>Modules</h2>
|
||||
<ul class="nowrap">
|
||||
<li><a href="../modules/common.lua.html">common.lua</a></li>
|
||||
<li><a href="../modules/features.lua.html">features.lua</a></li>
|
||||
<li><strong>register.lua</strong></li>
|
||||
<li><a href="../modules/settings.lua.html">settings.lua</a></li>
|
||||
</ul>
|
||||
|
@ -207,9 +208,15 @@
|
|||
<span class="types"><a class="type" href="https://www.lua.org/manual/5.3/manual.html#6.4">string</a></span>
|
||||
E.g. "creatures:sheep".
|
||||
</li>
|
||||
<li><span class="parameter">nametag</span>
|
||||
<span class="types"><a class="type" href="https://www.lua.org/manual/5.3/manual.html#6.4">string</a></span>
|
||||
String to be displayed in entity's nametag.
|
||||
(<em>optional</em>)
|
||||
</li>
|
||||
<li><span class="parameter">ownable</span>
|
||||
<span class="types"><span class="type">bool</span></span>
|
||||
Flag for defining if entity is ownable by players (default: <em>false</em>).
|
||||
(<em>optional</em>)
|
||||
</li>
|
||||
<li><span class="parameter">stats</span>
|
||||
<span class="types"><a class="type" href="../modules/register.lua.html#StatsDef">StatsDef</a></span>
|
||||
|
@ -1112,7 +1119,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-05-24 00:02:25 </i>
|
||||
<i style="float:right;">Last updated 2021-05-24 18:20:07 </i>
|
||||
</div> <!-- id="about" -->
|
||||
</div> <!-- id="container" -->
|
||||
</body>
|
||||
|
|
|
@ -40,6 +40,7 @@
|
|||
<h2>Modules</h2>
|
||||
<ul class="nowrap">
|
||||
<li><a href="../modules/common.lua.html">common.lua</a></li>
|
||||
<li><a href="../modules/features.lua.html">features.lua</a></li>
|
||||
<li><a href="../modules/register.lua.html">register.lua</a></li>
|
||||
<li><strong>settings.lua</strong></li>
|
||||
</ul>
|
||||
|
@ -73,6 +74,10 @@
|
|||
<td class="name" ><a href="#creative_mode">creative_mode</a></td>
|
||||
<td class="summary">Enables creative mode.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="name" ><a href="#enable_mob_nametags">enable_mob_nametags</a></td>
|
||||
<td class="summary">Displays nametags above mobs.</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<br/>
|
||||
|
@ -173,6 +178,28 @@
|
|||
|
||||
|
||||
|
||||
</dd>
|
||||
<dt>
|
||||
<a name = "enable_mob_nametags"></a>
|
||||
<strong>enable_mob_nametags</strong>
|
||||
</dt>
|
||||
<dd>
|
||||
Displays nametags above mobs.
|
||||
|
||||
<h3>Type:</h3>
|
||||
<ul>
|
||||
bool
|
||||
</ul>
|
||||
<h3>Default value:</h3>
|
||||
<ul>
|
||||
false
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</dd>
|
||||
</dl>
|
||||
|
||||
|
@ -181,7 +208,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-05-24 00:02:25 </i>
|
||||
<i style="float:right;">Last updated 2021-05-24 18:20:07 </i>
|
||||
</div> <!-- id="about" -->
|
||||
</div> <!-- id="container" -->
|
||||
</body>
|
||||
|
|
|
@ -0,0 +1,13 @@
|
|||
--
|
||||
--
|
||||
|
||||
--- Flags for features in current version.
|
||||
--
|
||||
-- @module features.lua
|
||||
|
||||
|
||||
--- Showing nametags above mobs.
|
||||
--
|
||||
-- @feature cmer.feature_nametags
|
||||
cmer.feature_nametags = true
|
||||
cmer.feature_nametag = cmer.feature_nametags
|
Loading…
Reference in New Issue