QcVillagerProfession Struct
A profession (professions/<name>.json, decision E-411, E-421): the blocks it works at (its workstation kind is then its own name, the kind QcVillagePlan and QcVillage keep for a workstation; no blocks: the unemployed), layers laid over the style's outfit (an apron on the torso; QcVillagerOutfits joins them), headwear in place of the style's hair (a hair-kind appearance; empty keeps the style's), whether it tends the crops of the village fields (farmers), and optionally its own routine and number of offers per level in place of its species'. More...
| Header: | #include <common/content/villages/QcVillagerDefinitions.h> |
Public Variables
| QString | hat |
| QList<QcAppearanceLayer> | layers |
| QString | name |
| int | offersPerLevel |
| QList<QcVillagerRoutineStep> | routine |
| bool | tendsCrops |
| QString | translationKey |
| QString | workstation |
| QStringList | workstationBlocks |
Static Public Members
| const int | maxWorkstationBlocks |
Detailed Description
Member Variable Documentation
QString QcVillagerProfession::hat
Headwear in place of the style's hair ("hat"); empty keeps the style's hair.
QList<QcAppearanceLayer> QcVillagerProfession::layers
Layers laid over the style's outfit ("layers", read like an outfit's).
const int QcVillagerProfession::maxWorkstationBlocks
Most workstation blocks of a profession.
QString QcVillagerProfession::name
Content name of the profession ("name").
int QcVillagerProfession::offersPerLevel
Offers of each level a villager draws; 0: QcTradingSettings::offersPerLevel of its species.
QList<QcVillagerRoutineStep> QcVillagerProfession::routine
Sorted by from; empty: the routine of the villager's species.
bool QcVillagerProfession::tendsCrops
It tends the crops of the village fields ("tendsCrops").
QString QcVillagerProfession::translationKey
Translation key of its name ("translation", else derived from the name).
QString QcVillagerProfession::workstation
The workstation kind (the profession's name) when it has blocks; empty otherwise.
QStringList QcVillagerProfession::workstationBlocks
The blocks it works at ("workstations"), at most maxWorkstationBlocks.