QtCraft API C++ classes QML types Handbook

QcFlatDefinition Struct

Settings of the flat world type (worldgen/flat.json): the layer preset a new flat world gets unless it names its own, "bedrock,59*stone,3*dirt,grass_block" (bottom up, n* repeats). More...

Header: #include <common/content/worldgen/QcWorldTypeDefinitions.h>

Public Variables

QString preset
QcWorldTypeRules rules

Detailed Description

Member Variable Documentation

QString QcFlatDefinition::preset

The layer preset ("preset", at most 4096 characters).

QcWorldTypeRules QcFlatDefinition::rules

Rules of a new flat world; by default the day runs and no creatures spawn.