QcWorldOptionTargets::Target Struct
struct QcWorldOptionTargets::TargetOne generator value a world option may set. More...
| Header: | #include <worldgen/generators/QcWorldOptionTargets.h> |
Public Variables
| double | high |
| QcWorldOptionTargets::Kind | kind |
| double | low |
| QStringView | name |
| bool | needsSubject |
| std::optional<double> (*)(const QcContentRegistry &, const QString &) | read |
| void (*)(QcContentRegistry &, const QString &, double) | write |
Detailed Description
Member Variable Documentation
QcWorldOptionTargets::Kind Target::kind
What values the target takes.
QStringView Target::name
The name options use for the target ("villages.spacing").
bool Target::needsSubject
The target is about one definition (an ore), named by the option's subject.
std::optional<double> (*)(const QcContentRegistry &, const QString &) Target::read
The value in content; empty when the subject is unknown. Factors read 1.
void (*)(QcContentRegistry &, const QString &, double) Target::write
Sets value (within [low, high]) in content.