diff options
| author | Alexander Gavrilov | 2012-05-13 13:58:41 +0400 |
|---|---|---|
| committer | Alexander Gavrilov | 2012-05-13 13:58:41 +0400 |
| commit | 87ec1de891625e9dc68924c570ede0fe23b4b6b7 (patch) | |
| tree | bedeb0dbfa1ba179c6ad803ed0c253515d73bdc6 /Lua API.html | |
| parent | c6b52067bd90a2f7832a94a74cfd0e4ec0a8641c (diff) | |
| download | dfhack-87ec1de891625e9dc68924c570ede0fe23b4b6b7.tar.gz dfhack-87ec1de891625e9dc68924c570ede0fe23b4b6b7.tar.bz2 dfhack-87ec1de891625e9dc68924c570ede0fe23b4b6b7.tar.xz | |
Improve lua api for tile biome access.
Diffstat (limited to 'Lua API.html')
| -rw-r--r-- | Lua API.html | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/Lua API.html b/Lua API.html index 846299a3..3e023ebd 100644 --- a/Lua API.html +++ b/Lua API.html @@ -1026,7 +1026,7 @@ Returns <em>false</em> in case of error.</p> <li><p class="first"><tt class="docutils literal">dfhack.maps.getTileBlock(coords)</tt>, or <tt class="docutils literal">getTileBlock(x,y,z)</tt></p> <p>Returns a map block object for given df::coord or x,y,z in local tile coordinates.</p> </li> -<li><p class="first"><tt class="docutils literal">dfhack.maps.getRegionBiome(region_coord2d)</tt></p> +<li><p class="first"><tt class="docutils literal">dfhack.maps.getRegionBiome(region_coord2d)</tt>, or <tt class="docutils literal">getRegionBiome(x,y)</tt></p> <p>Returns the biome info struct for the given global map region.</p> </li> <li><p class="first"><tt class="docutils literal"><span class="pre">dfhack.maps.enableBlockUpdates(block[,flow,temperature])</span></tt></p> @@ -1038,6 +1038,9 @@ Returns <em>false</em> in case of error.</p> <li><p class="first"><tt class="docutils literal">dfhack.maps.getLocalInitFeature(region_coord2d,index)</tt></p> <p>Returns the local feature object with the given region coords and index.</p> </li> +<li><p class="first"><tt class="docutils literal">dfhack.maps.getTileBiomeRgn(coords)</tt>, or <tt class="docutils literal">getTileBiomeRgn(x,y,z)</tt></p> +<p>Returns <em>x, y</em> for use with <tt class="docutils literal">getRegionBiome</tt>.</p> +</li> <li><p class="first"><tt class="docutils literal">dfhack.maps.canWalkBetween(pos1, pos2)</tt></p> <p>Checks if a dwarf may be able to walk between the two tiles, using a pathfinding cache maintained by the game. Note that |
