QtCraft API C++ classes QML types Handbook

QcServerSetup Namespace

Applies a world generator's one-time setup to a world that was just created (decision E-221): time of day and game rules, persistent creatures, contents of chests and machines, block updates (queued like those of a command; they wait for their chunks) and growing saplings. More...

Header: #include <server/core/QcServerSetup.h>

Functions

void apply(QcServerState &state, QcBlockUpdateQueue &updates, const QcWorldSetup &setup)

Detailed Description

Chunks with contents or saplings are generated on the spot. Marks the world as set up.

Function Documentation

void QcServerSetup::apply(QcServerState &state, QcBlockUpdateQueue &updates, const QcWorldSetup &setup)

Applies setup to the world of state; block updates go to updates.