QtCraft API C++ classes QML types Handbook

QcNewWorld Struct

What a new world starts with besides its name and seed (QcWorldLibrary::create). More...

Header: #include <worlds/QcWorldLibrary.h>

Public Variables

QcGameMode gameMode
QString generator
int generatorVersion
bool keepInventory
QString options
QJsonObject worldOptions

Detailed Description

Member Variable Documentation

QcGameMode QcNewWorld::gameMode

Game mode of players who join for the first time (decision E-282).

int QcNewWorld::generatorVersion

The version of the world generator the world is generated with for good (decision E-922).

bool QcNewWorld::keepInventory

Game rule: players keep their inventory when they die.

QJsonObject QcNewWorld::worldOptions

World generation options of a terrain world (decision E-917, QcWorldOptions::valuesToStore).