QcFarmingParser Namespace
Parses the farming fields of blocks (decisions E-289 and E-290): "crop" (stages, pace, light, fruit of stems) and "soil" (moisture, water reach, what it reverts to). More...
| Header: | #include <common/content/recipes/QcFarmingParser.h> |
Functions
| QcCropDefinition | parseCrop(const QcBlockDefinition &block, QcJsonFieldReader &cropReader, const QString &packNamespace) |
| QcSoilDefinition | parseSoil(const QcBlockDefinition &block, QcJsonFieldReader &soilReader, const QString &packNamespace) |
Detailed Description
Function Documentation
QcCropDefinition QcFarmingParser::parseCrop(const QcBlockDefinition &block, QcJsonFieldReader &cropReader, const QString &packNamespace)
Returns the "crop" object read by cropReader, block names qualified with packNamespace. block (read so far) must have the stage property with at least two values, need support from below and not be solid. Failures go to cropReader.
QcSoilDefinition QcFarmingParser::parseSoil(const QcBlockDefinition &block, QcJsonFieldReader &soilReader, const QString &packNamespace)
Returns the "soil" object read by soilReader, block names qualified with packNamespace. block (read so far) must have the moisture property with at least two values, and revertsTo must name another block. Failures go to soilReader.