QtCraft API C++ classes QML types Handbook

QcTickCommands Class

/tick (decision E-249): freezing the world, single steps, the tick rate, sprints and a query. More...

Header: #include <server/commands/QcTickCommands.h>

Public Types

struct Parts

Public Functions

void addTo(QcCommandRegistry &registry)
void reportSprintEnd()

Static Public Members

const quint64 maxSprintTicks

Detailed Description

Rate and freezing are not saved; a world always opens at 20 ticks per second, running.

Member Function Documentation

void QcTickCommands::addTo(QcCommandRegistry &registry)

Adds the commands of this group (see the class) to registry.

void QcTickCommands::reportSprintEnd()

Called by the server after its due ticks: reports a sprint that ended to the log and the operators online.

Member Variable Documentation

const quint64 QcTickCommands::maxSprintTicks

Most ticks of one sprint (12 hours of game time).