# HG changeset patch # User Wuzzy # Date 1525299285 -3600 # Node ID a09a11ea67b4a504fc84e98b22cd2805f5ae1392 # Parent 7cdf5df9dfc15a4279cddef3d05cefa67191e6a1 LuaLibraryUtils: add fillMap and eraseMap diff -r 7cdf5df9dfc1 -r a09a11ea67b4 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