256 lines
7.2 KiB
HTML
256 lines
7.2 KiB
HTML
<!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>utils</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>utils</h1>
|
|
|
|
<ul>
|
|
<li><a href="../index.html">Index</a></li>
|
|
</ul>
|
|
|
|
<h2>Contents</h2>
|
|
<ul>
|
|
<li><a href="#Functions">Functions</a></li>
|
|
</ul>
|
|
|
|
|
|
<h2>Modules</h2>
|
|
<ul class="$(kind=='Topics' and '' or 'nowrap'">
|
|
<li><a href="../modules/stringutil.html">stringutil</a></li>
|
|
<li><a href="../modules/random.html">random</a></li>
|
|
<li><a href="../modules/noisemanager.html">noisemanager</a></li>
|
|
<li><a href="../modules/nodeutil.html">nodeutil</a></li>
|
|
<li><a href="../modules/posutil.html">posutil</a></li>
|
|
<li><a href="../modules/objectrefutil.html">objectrefutil</a></li>
|
|
<li><a href="../modules/nodeboxutil.html">nodeboxutil</a></li>
|
|
<li><a href="../modules/mapmanipulator.html">mapmanipulator</a></li>
|
|
<li><a href="../modules/fisheryates.html">fisheryates</a></li>
|
|
<li><a href="../modules/textureutil.html">textureutil</a></li>
|
|
<li><a href="../modules/blockutil.html">blockutil</a></li>
|
|
<li><a href="../modules/tango.html">tango</a></li>
|
|
<li><strong>arraymanipulator</strong></li>
|
|
<li><a href="../modules/inventoryutil.html">inventoryutil</a></li>
|
|
<li><a href="../modules/entityutil.html">entityutil</a></li>
|
|
<li><a href="../modules/scheduler.html">scheduler</a></li>
|
|
<li><a href="../modules/blockedcache.html">blockedcache</a></li>
|
|
<li><a href="../modules/mathutil.html">mathutil</a></li>
|
|
<li><a href="../modules/log.html">log</a></li>
|
|
<li><a href="../modules/arrayutil.html">arrayutil</a></li>
|
|
<li><a href="../modules/directmapmanipulator.html">directmapmanipulator</a></li>
|
|
<li><a href="../modules/rotationutil.html">rotationutil</a></li>
|
|
<li><a href="../modules/settings.html">settings</a></li>
|
|
<li><a href="../modules/pathutil.html">pathutil</a></li>
|
|
<li><a href="../modules/wallmountedutil.html">wallmountedutil</a></li>
|
|
<li><a href="../modules/interpolate.html">interpolate</a></li>
|
|
<li><a href="../modules/transform.html">transform</a></li>
|
|
<li><a href="../modules/numberutil.html">numberutil</a></li>
|
|
<li><a href="../modules/test.html">test</a></li>
|
|
<li><a href="../modules/facedirutil.html">facedirutil</a></li>
|
|
<li><a href="../modules/constants.html">constants</a></li>
|
|
<li><a href="../modules/minetestex.html">minetestex</a></li>
|
|
<li><a href="../modules/list.html">list</a></li>
|
|
<li><a href="../modules/stopwatch.html">stopwatch</a></li>
|
|
<li><a href="../modules/itemutil.html">itemutil</a></li>
|
|
<li><a href="../modules/color.html">color</a></li>
|
|
<li><a href="../modules/tableutil.html">tableutil</a></li>
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
<div id="content">
|
|
|
|
<h1>Module <code>arraymanipulator</code></h1>
|
|
<p>The ArrayManipulator is similiar to the MapManipulator, except that it
|
|
does not use the VoxelManip object, but has an internal array which contains
|
|
all set values.</p>
|
|
<p> It is mostly compatible with MapManipulator, which means you
|
|
can pass it to functions which expect a MapManipulator.</p>
|
|
|
|
|
|
<h2><a href="#Functions">Functions</a></h2>
|
|
<table class="function_list">
|
|
<tr>
|
|
<td class="name" nowrap><a href="#ArrayManipulator:new">ArrayManipulator:new (node_data, param2_data)</a></td>
|
|
<td class="summary">Creates a new instance of ArrayManipulator.</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="name" nowrap><a href="#ArrayManipulator:get_data">ArrayManipulator:get_data ()</a></td>
|
|
<td class="summary">Does nothing, only for compatibility with MapManipulator.</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="name" nowrap><a href="#ArrayManipulator:get_node">ArrayManipulator:get_node (x, z, y)</a></td>
|
|
<td class="summary">Gets the node and param2 at the given location.</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="name" nowrap><a href="#ArrayManipulator:set_data">ArrayManipulator:set_data ()</a></td>
|
|
<td class="summary">Does nothing, only for compatibility with MapManipulator.</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="name" nowrap><a href="#ArrayManipulator:set_node">ArrayManipulator:set_node (x, z, y, node, param2)</a></td>
|
|
<td class="summary">Sets the node at the given location.</td>
|
|
</tr>
|
|
</table>
|
|
|
|
<br/>
|
|
<br/>
|
|
|
|
|
|
<h2><a name="Functions"></a>Functions</h2>
|
|
<dl class="function">
|
|
<dt>
|
|
<a name = "ArrayManipulator:new"></a>
|
|
<strong>ArrayManipulator:new (node_data, param2_data)</strong>
|
|
</dt>
|
|
<dd>
|
|
Creates a new instance of ArrayManipulator.
|
|
|
|
|
|
<h3>Parameters:</h3>
|
|
<ul>
|
|
<li><span class="parameter">node_data</span>
|
|
The array that contains the values for the nodes part. This
|
|
is assumed to be a 3d array with x, z, and y values
|
|
as dimensions.
|
|
</li>
|
|
<li><span class="parameter">param2_data</span>
|
|
The array that contains the values for the param2 part.
|
|
This is assumed to be a 3d array with x, z, and y values
|
|
as dimensions.
|
|
</li>
|
|
</ul>
|
|
|
|
<h3>Returns:</h3>
|
|
<ol>
|
|
|
|
A new instance.
|
|
</ol>
|
|
|
|
|
|
|
|
|
|
</dd>
|
|
<dt>
|
|
<a name = "ArrayManipulator:get_data"></a>
|
|
<strong>ArrayManipulator:get_data ()</strong>
|
|
</dt>
|
|
<dd>
|
|
Does nothing, only for compatibility with MapManipulator.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</dd>
|
|
<dt>
|
|
<a name = "ArrayManipulator:get_node"></a>
|
|
<strong>ArrayManipulator:get_node (x, z, y)</strong>
|
|
</dt>
|
|
<dd>
|
|
Gets the node and param2 at the given location.
|
|
|
|
|
|
<h3>Parameters:</h3>
|
|
<ul>
|
|
<li><span class="parameter">x</span>
|
|
The x coordinate (width).
|
|
</li>
|
|
<li><span class="parameter">z</span>
|
|
the z coordinate (depth).
|
|
</li>
|
|
<li><span class="parameter">y</span>
|
|
The y coordinate (height).
|
|
</li>
|
|
</ul>
|
|
|
|
<h3>Returns:</h3>
|
|
<ol>
|
|
|
|
Two values, the node at the given location and the param2 value.
|
|
</ol>
|
|
|
|
|
|
|
|
|
|
</dd>
|
|
<dt>
|
|
<a name = "ArrayManipulator:set_data"></a>
|
|
<strong>ArrayManipulator:set_data ()</strong>
|
|
</dt>
|
|
<dd>
|
|
Does nothing, only for compatibility with MapManipulator.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</dd>
|
|
<dt>
|
|
<a name = "ArrayManipulator:set_node"></a>
|
|
<strong>ArrayManipulator:set_node (x, z, y, node, param2)</strong>
|
|
</dt>
|
|
<dd>
|
|
Sets the node at the given location.
|
|
|
|
|
|
<h3>Parameters:</h3>
|
|
<ul>
|
|
<li><span class="parameter">x</span>
|
|
The x coordinate (width).
|
|
</li>
|
|
<li><span class="parameter">z</span>
|
|
the z coordinate (depth).
|
|
</li>
|
|
<li><span class="parameter">y</span>
|
|
The y coordinate (height).
|
|
</li>
|
|
<li><span class="parameter">node</span>
|
|
The node to set.
|
|
</li>
|
|
<li><span class="parameter">param2</span>
|
|
Optional. The param2 data to set for this node.
|
|
</li>
|
|
</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.2</a></i>
|
|
</div> <!-- id="about" -->
|
|
</div> <!-- id="container" -->
|
|
</body>
|
|
</html>
|