QtCraft API C++ classes QML types Handbook

QcShowcaseParser Namespace

Parses the showcase settings (worldgen/showcase.json, decision E-220). More...

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

Functions

QcResult<QcShowcaseDefinition> parseShowcase(const QJsonObject &json, const QString &packNamespace)

Detailed Description

Function Documentation

QcResult<QcShowcaseDefinition> QcShowcaseParser::parseShowcase(const QJsonObject &json, const QString &packNamespace)

Returns the showcase settings read from json, or the first error. Block and structure names are qualified with packNamespace.