QtCraft API C++ classes QML types Handbook

QcWeatherParser Namespace

Parses what the weather does to the world (weather.json of a pack, decision E-396). More...

Header: #include <common/content/worldgen/QcWeatherParser.h>

Functions

QcResult<QcWeatherDefinition> parseWeather(const QJsonObject &json, const QString &packNamespace)

Detailed Description

Function Documentation

QcResult<QcWeatherDefinition> QcWeatherParser::parseWeather(const QJsonObject &json, const QString &packNamespace)

Returns the weather definition read from json, or the first error; missing fields keep their defaults. The snow layer block is qualified with packNamespace.