LuaLibraryUtils: add fillMap and eraseMap
authorWuzzy
Wed, 02 May 2018 23:14:45 +0100
changeset 1358 a09a11ea67b4
parent 1357 7cdf5df9dfc1
child 1359 d886660be4d0
LuaLibraryUtils: add fillMap and eraseMap
LuaLibraryUtils.wiki
--- a/LuaLibraryUtils.wiki	Wed May 02 23:11:29 2018 +0100
+++ b/LuaLibraryUtils.wiki	Wed May 02 23:14:45 2018 +0100
@@ -2,8 +2,6 @@
 #labels !LuaLibrary
 = Lua library: `Utils` =
 
-**NOTE: Documentation of this library is incomplete, some functions are still undocumented.**
-
 This library includes miscellaneous functions to use, they are all independent of each other and can be used everywhere.
 
 == `gearIsInBox(gear, x, y, w, h)` ==
@@ -13,4 +11,10 @@
 
 == `gearIsInCircle(gear, x, y, r, useRadius)` ==
 
-Returns whether the gear is inside a circle with x and y being the centre point and r being the radius of the circle. The boolean useRadius determine whether only the centre point of the gear will be used or the radius of the gear will be checked too.
\ No newline at end of file
+Returns whether the gear is inside a circle with x and y being the centre point and r being the radius of the circle. The boolean useRadius determine whether only the centre point of the gear will be used or the radius of the gear will be checked too.
+
+== `fillMap(flush)` ==
+Completely fill the current map with land. Requires `MapGen` to be set to `mgDrawn`. `FlushPoints()` will be called at the end, unless `flush` is set to `false`.
+
+== `eraseMap(flush)` ==
+Completely erase all land from drawn maps. Requires `MapGen` to be set to `mgDrawn`. `FlushPoints()` will be called at the end, unless `flush` is set to `false`.
\ No newline at end of file