QcVegetationPatches Struct
Patches the generator lays out of one plant of the table (flower patches): a patch cell of patchCell × patchCell blocks holds one with chance, centred at a random spot of the cell; it tries tries columns at most radius blocks from its centre on each axis and plants one kind, chosen by weight, on every free one. Read from the "patches" object. More...
| Header: | #include <common/content/worldgen/QcVegetationDefinition.h> |
Public Variables
Static Public Members
Detailed Description
Member Variable Documentation
double QcVegetationPatches::chance
Chance that a patch cell holds a patch ("chance", 0 to 1).
const int QcVegetationPatches::maxRadius
Largest accepted radius.
const int QcVegetationPatches::patchCell
Side in blocks of a patch cell, aligned with the chunks.
int QcVegetationPatches::radius
Largest distance of a tried column from the centre on each axis ("radius", 1 to maxRadius).
int QcVegetationPatches::tries
Columns tried per patch ("tries", 1 to 128).