QcStructureSiteParser Namespace
Parses where the world generator places a structure by itself and what guards it (decisions E-590, E-591): groundLayer, surface (biomes, region spacing, chance, attempts, slope, margin to villages, foundation), guardians (zones whose creatures come back) and spawnArea (the monsters of its footprint, decision E-871). More...
| Header: | #include <common/content/worldgen/QcStructureSiteParser.h> |
Classes
| struct | Site |
Functions
| QcStructureSiteParser::Site | parseSite(const QJsonObject &json, const QcStructureDefinition &structure, QcJsonFieldReader &reader, const QString &packNamespace) |
Detailed Description
Used by QcStructureParser after the layers, so the zones are checked against the structure's size.
Classes
class Site
Where and how a structure is placed by the generator: the fields of QcStructureDefinition of the same names. More...
Function Documentation
QcStructureSiteParser::Site QcStructureSiteParser::parseSite(const QJsonObject &json, const QcStructureDefinition &structure, QcJsonFieldReader &reader, const QString &packNamespace)
Returns the site read from the structure's json through reader, which fails on an invalid entry. structure is the structure read so far (its size bounds the zones and the ground layer); names are qualified with packNamespace.