QcWorldgenParser Namespace
Parses the world generation definitions of content packs: biomes, features, ores and terrain. More...
| Header: | #include <common/content/worldgen/QcWorldgenParser.h> |
Functions
| QcResult<QcBiomeDefinition> | parseBiome(const QJsonObject &json, const QString &packNamespace) |
| QcResult<QcFeatureDefinition> | parseFeature(const QJsonObject &json, const QString &packNamespace) |
| QcResult<QcOreDefinition> | parseOre(const QJsonObject &json, const QString &packNamespace) |
| QcResult<QcTerrainSettings> | parseTerrainSettings(const QJsonObject &json, const QString &packNamespace) |
Detailed Description
Function Documentation
QcResult<QcBiomeDefinition> QcWorldgenParser::parseBiome(const QJsonObject &json, const QString &packNamespace)
Returns the biome read from json, or the first error. Names are qualified with packNamespace.
QcResult<QcFeatureDefinition> QcWorldgenParser::parseFeature(const QJsonObject &json, const QString &packNamespace)
Returns the feature read from json, or the first error. Names are qualified with packNamespace.
QcResult<QcOreDefinition> QcWorldgenParser::parseOre(const QJsonObject &json, const QString &packNamespace)
Returns the ore read from json, or the first error. Names are qualified with packNamespace.
QcResult<QcTerrainSettings> QcWorldgenParser::parseTerrainSettings(const QJsonObject &json, const QString &packNamespace)
Returns the terrain settings read from json (worldgen/terrain.json) with its dungeons, mine shafts, coastal towers and freezing, or the first error. Names are qualified with packNamespace.