QtCraft API C++ classes QML types Handbook

QcDedicatedServer::Options Struct

struct QcDedicatedServer::Options

What start() runs the server with. More...

Public Variables

bool console
QString dataDirectory
QString generatorOptions
int healthSeconds
QcServerSettings settings
bool stopAtEndOfInput
int timeLimit

Detailed Description

Member Variable Documentation

bool Options::console

Whether a server console reads standard input.

QString Options::dataDirectory

The data directory: worlds below <data>/worlds, the certificate and diagnostics.

QString Options::generatorOptions

Generator options of a world the server creates.

int Options::healthSeconds

Seconds between health lines in the log; 0 for none (decision E-834).

QcServerSettings Options::settings

The server's settings (server.json and the command line).

bool Options::stopAtEndOfInput

Whether the end of standard input stops the server (with the console).

int Options::timeLimit

Seconds until the server stops with exit code 2; 0 for none.