QcCookingParser Namespace
Parses the cooking fields of a block: "machine" (furnaces, smokers, blast furnaces; decision E-770), "campfire" (decision E-772) and "bites" (cake, decision E-773). More...
| Header: | #include <common/content/recipes/QcCookingParser.h> |
Functions
| QcBitesDefinition | parseBites(const QcBlockDefinition &block, QcJsonFieldReader &reader) |
| QcCampfireDefinition | parseCampfire(const QJsonObject &json, QcJsonFieldReader &reader, const QString &packNamespace) |
| QcMachineDefinition | parseMachine(const QJsonObject &json, QcJsonFieldReader &reader, const QString &packNamespace) |
Detailed Description
Function Documentation
QcBitesDefinition QcCookingParser::parseBites(const QcBlockDefinition &block, QcJsonFieldReader &reader)
Returns the "bites" object read by reader; block (read so far) needs the state bites with at least two values. Failures go to reader.
QcCampfireDefinition QcCookingParser::parseCampfire(const QJsonObject &json, QcJsonFieldReader &reader, const QString &packNamespace)
Returns the "campfire" object json read by reader, block names qualified with packNamespace; it needs "slots" or "lightsInto". Failures go to reader.
QcMachineDefinition QcCookingParser::parseMachine(const QJsonObject &json, QcJsonFieldReader &reader, const QString &packNamespace)
Returns the "machine" object json read by reader: its recipe category, speed, sound (qualified with packNamespace, default the machine sound) and kinds. Failures go to reader.