QtCraft API C++ classes QML types Handbook

QcWorldStats Namespace

Development aid: numbers that describe a generated world, used to tune the world-generation data without playing. More...

Header: #include <headless/QcWorldStats.h>

Functions

QStringList report(const QcTerrainGenerator &generator, const QcContentRegistry &content, int chunkRadius, int biomeRadius)

Detailed Description

Generates the chunks around the origin and reports the share of each block below ground (ores against stone), what stands on grass (flowers, grass, nothing), the share and size of biome regions, slopes and cliffs, and heights.

Function Documentation

QStringList QcWorldStats::report(const QcTerrainGenerator &generator, const QcContentRegistry &content, int chunkRadius, int biomeRadius)

Reports on the world generator makes with content: chunkRadius chunks around the origin are generated; biome regions are sampled over biomeRadius blocks. Returns the report as lines of text.