QtCraft API C++ classes QML types Handbook

QcShowcasePlanner Class

Lays out the showcase world from the content (decision E-220), the same for every seed: north of the spawn the demos from structure data, the trees, the creatures, a podium area per block category and the items, in rows from west to east; each area gets a title and a lookout in front of its south west corner, which is also a tour stop. More...

Header: #include <worldgen/showcase/QcShowcasePlanner.h>

Public Functions

QcShowcasePlanner(const QcContentRegistry &content)
QcShowcasePlan build()
const QStringList &warnings() const

Static Public Members

const int areaGap
const int firstAreaX
const int firstRowFront
const int rowGap

Detailed Description

Blocks, creatures and items of mods appear without any extra data.

Member Function Documentation

[explicit] QcShowcasePlanner::QcShowcasePlanner(const QcContentRegistry &content)

Prepares the layout of the showcase world of content.

QcShowcasePlan QcShowcasePlanner::build()

Returns the finished layout.

const QStringList &QcShowcasePlanner::warnings() const

Returns what the planner left out (unknown structures, labels beyond a chunk's limit).

Member Variable Documentation

const int QcShowcasePlanner::areaGap

Distance between areas in a row.

const int QcShowcasePlanner::firstAreaX

West edge of the first area.

const int QcShowcasePlanner::firstRowFront

South edge of the first row.

const int QcShowcasePlanner::rowGap

Distance between rows.