QtCraft API C++ classes QML types Handbook

QcVillageStyle::Blueprint Struct

struct QcVillageStyle::Blueprint

One blueprint of a kind of building, with its variation (decision E-404). More...

Public Functions

const std::shared_ptr<const QcStructure> &structure() const

Public Variables

std::optional<QcBlockPos> bell
bool fields
QList<QcVillageSpot> spots
QcPieceVariation variation
int weight

Detailed Description

Member Function Documentation

const std::shared_ptr<const QcStructure> &Blueprint::structure() const

Returns the structure as written, without parts (QcPieceVariation::base()).

Member Variable Documentation

std::optional<QcBlockPos> Blueprint::bell

The meeting point block (QcVillageSettings::bell) inside it, if any.

bool Blueprint::fields

Crop cells in it or its parts: the style's crops are planted there (decision E-406).

QList<QcVillageSpot> Blueprint::spots

Beds and workstations inside the structure as written, in local cells.

QcPieceVariation Blueprint::variation

The structure with its choices and parts.

int Blueprint::weight

The relative chance against the other blueprints of the kind.