QcWorldOptionTargets Namespace
The generator values a world option may set (decision E-917): one row each, with what it reads from the content as the default and how it writes a world's value into that world's copy of the content. More...
| Header: | #include <worldgen/generators/QcWorldOptionTargets.h> |
Classes
| struct | Target |
Types
| enum class | Kind { Number, Switch } |
Functions
| std::span<const QcWorldOptionTargets::Target> | all() |
| const QcWorldOptionTargets::Target * | find(QStringView name) |
Detailed Description
A new option on an existing target needs only worldgen/options.json; a new target is one row here.
Type Documentation
enum class QcWorldOptionTargets::Kind
What values a target takes.
| Constant | Value | Description |
|---|---|---|
QcWorldOptionTargets::Kind::Number | 0 | A number within [low, high]. |
QcWorldOptionTargets::Kind::Switch | 1 | On (1) or off (0). |
Function Documentation
std::span<const QcWorldOptionTargets::Target> QcWorldOptionTargets::all()
Returns every target.
const QcWorldOptionTargets::Target *QcWorldOptionTargets::find(QStringView name)
Returns the target named name; null when there is none.