QcWorldOptionDefinition Struct
One option of the world generation a player sets when creating a world (an entry of "options" in worldgen/options.json of a pack, decision E-917). More...
| Header: | #include <common/content/worldgen/QcWorldOptionDefinitions.h> |
Public Variables
| std::optional<double> | defaultValue |
| QString | group |
| double | max |
| double | min |
| QString | name |
| double | step |
| QString | subject |
| QString | target |
| QString | translationKey |
| QcWorldOptionUnit | unit |
Detailed Description
The option sets one target of the generator's content values (QcWorldOptionTargets: the village spacing, the ore amount, caves on or off …) for that world, in place of the value the content gives. Server side only.
Member Variable Documentation
std::optional<double> QcWorldOptionDefinition::defaultValue
The value a new world starts with; missing: the target's value in the content (1 for factors), so that a world with every option at its default generates as the content alone would.
QString QcWorldOptionDefinition::group
The qualified name of its group (QcWorldOptionGroup).
QString QcWorldOptionDefinition::name
Qualified name ("name").
QString QcWorldOptionDefinition::translationKey
The label, made from the name with the prefix world_option (QcContentFields::translationKey()); "<translationKey>.help" is the help line below it.
QcWorldOptionUnit QcWorldOptionDefinition::unit
How the value reads in the menu ("unit": plain, blocks, percent or factor).