QtCraft API C++ classes QML types Handbook

QcVillageStyle Struct

A style resolved against the registry: its pieces as structures with the style's palette applied. More...

Header: #include <worldgen/villages/QcVillageStyles.h>

Public Types

struct Blueprint
struct Bridge
struct Crop
struct Piece
struct Road
struct Stilts
struct Wetland

Public Variables

QList<QcVillageStyle::Road> branchRoads
QcVillageStyle::Bridge bridge
QcVillageStyle::Piece centre
QList<QcVillageStyle::Crop> crops
QcBlockId foundation
QcVillageStyle::Piece lamp
QList<QcVillageLayout> layouts
QString name
bool overWater
QList<QcVillageStyle::Piece> pieces
QcVillageStyle::Piece rareCentre
QList<QcVillageStyle::Road> roads
QcVillageStyle::Stilts stilts
QcVillageStyle::Wetland wetland

Detailed Description

Member Variable Documentation

QcVillageStyle::Bridge QcVillageStyle::bridge

On land: the bridges over rivers.

QcVillageStyle::Piece QcVillageStyle::centre

The centre piece, one blueprint.

QList<QcVillageStyle::Crop> QcVillageStyle::crops

Empty: the pieces keep their crops as written.

QcBlockId QcVillageStyle::foundation

The block that fills the ground below the pieces.

QcVillageStyle::Piece QcVillageStyle::lamp

No blueprints: no lamps.

QList<QcVillageLayout> QcVillageStyle::layouts

Street plans by weight (decision E-408), never empty; over water without diagonals and winding.

QString QcVillageStyle::name

The style's name.

bool QcVillageStyle::overWater

Pieces and roads stand over water on stilts (decision E-407): floors and boardwalks at one height above the water surface instead of on the ground.

QList<QcVillageStyle::Piece> QcVillageStyle::pieces

The kinds of buildings.

QcVillageStyle::Piece QcVillageStyle::rareCentre

Taken instead of the centre with its chance (decision E-592); no blueprints: none.

QcVillageStyle::Stilts QcVillageStyle::stilts

Over water: the posts and stairs.

QcVillageStyle::Wetland QcVillageStyle::wetland

Over water: the ground the village shapes around itself (bottom air: none).