QtCraft API C++ classes QML types Handbook

QcCoastalTowerParser Namespace

Parses the coastal towers of the terrain ("coastalTowers" in worldgen/terrain.json, decision E-605); the structures and the foundation block are checked by the generator. More...

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

Functions

QcCoastalTowerSettings parseCoastalTowers(const QJsonObject &json, QcJsonFieldReader &reader, const QString &packNamespace)

Detailed Description

Function Documentation

QcCoastalTowerSettings QcCoastalTowerParser::parseCoastalTowers(const QJsonObject &json, QcJsonFieldReader &reader, const QString &packNamespace)

Returns the coastal tower settings read from json, the "coastalTowers" object, through reader. Block and structure names are qualified with packNamespace. A missing "foundation" or empty "structures" fails reader.