QcWorldTypeRules Struct
Rules a world type sets once when a world of it is created (decision E-223): a time of day that stands still (seconds after sunrise) or the running day, and whether creatures spawn by themselves. More...
| Header: | #include <common/content/worldgen/QcWorldTypeDefinitions.h> |
Public Variables
| bool | daylightCycle |
| bool | mobSpawning |
| std::optional<double> | timeOfDay |
Detailed Description
Member Variable Documentation
bool QcWorldTypeRules::daylightCycle
Whether the day runs ("daylightCycle").
bool QcWorldTypeRules::mobSpawning
Whether creatures spawn by themselves ("mobSpawning").
std::optional<double> QcWorldTypeRules::timeOfDay
Time of day in seconds after sunrise ("timeOfDay"); none: the world's time is left as it is. Setting it turns daylightCycle off unless the JSON sets that too.