LuaLibraryUtils.wiki
 changeset 1394 607ff7beea3d parent 1373 2eedf1c53951 child 1651 c1a5d8894bd0
equal inserted replaced
1393:0b22af910c31 1394:607ff7beea3d
11
11
12 == `gearIsInCircle(gear, x, y, r, useRadius)` ==
12 == `gearIsInCircle(gear, x, y, r, useRadius)` ==
13
13
14 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.
14 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.
15
15
16 == `fillMap(flush)` ==
16 == `fillMap([flush])` ==
17 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`.
17 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`.
18
18
19 == `eraseMap(flush)` ==
19 == `eraseMap([flush])` ==
20 Completely erase all land from current map. Requires `MapGen` to be set to `mgDrawn`. `FlushPoints()` will be called at the end, unless `flush` is set to `false`.
20 Completely erase all land from current map. Requires `MapGen` to be set to `mgDrawn`. `FlushPoints()` will be called at the end, unless `flush` is set to `false`.