PolygonPlacer lets you get an area from a non convex polygon.
DunePainter generates the height of procedural dunes given an area.
PerlinPainter generates the height of perlin noise given an area.
Perlin_noise.js defines the perlin fucntion for PerlinPainter .
disableGarrisonHolder.xml is a special filter to make a buildings ungarrisonable.
Details
The map Dune uses DunePainter.
The map Fert and Fert Mountain uses PerlinPainter.
Diff Detail
- Lint
Lint Skipped - Unit
Unit Tests Skipped
Event Timeline
binaries/data/mods/public/maps/random/rmgen/placer/noncentered/PolygonPlacer.js | ||
---|---|---|
27 | a named function gives information for what it does |
Improved PolygonPlacer efficiency and fixed artifacts.
Improved style and readability of code.
This patch contains several things that are not really related to each other.
Do you want to have this functions in for your maps?
Because if so I'd suggest you focus to improve your maps and try to get one or more into the main repository.
Then the needed painters are likely to get in, too.
To work on your maps and show us your progress the forum is likely better suited and, if the maps are close to ready, you may add a new diff for that specific map.
To make it more clear: I won't except this patch in it's current state without a pressing reason why to commit it.