QtCraft API C++ classes QML types Handbook

QcMsg::AdminStatus Struct

struct QcMsg::AdminStatus

Server -> client, about once a second while the operator follows the status. More...

Header: #include <common/protocol/QcAdminMessages.h>

Public Variables

std::array<quint32, QcEntityKinds::count> entities
QString generator
float peakMemoryMb
std::array<float, QcTickPhases::count> phaseMeanMs
quint32 protocol
QcMsg::AdminSample sample
qint64 seed
quint64 skippedTicks
quint64 tick
quint64 uptimeMs
QString version
QString worldName

Detailed Description

Member Variable Documentation

std::array<quint32, QcEntityKinds::count> AdminStatus::entities

Entities in the world by kind (QcEntityKind).

QString AdminStatus::generator

The name of the world's generator.

float AdminStatus::peakMemoryMb

Peak resident memory of the server process in MiB (QcProcessMemory::peakMb).

std::array<float, QcTickPhases::count> AdminStatus::phaseMeanMs

Mean time per tick phase over the latest ticks (QcTickPhaseTimer window).

QcMsg::AdminSample AdminStatus::sample

The latest sample.

qint64 AdminStatus::seed

The world's seed.

quint64 AdminStatus::skippedTicks

Ticks the server dropped so far (QcTickStats::skipped).

quint64 AdminStatus::tick

The current tick of the world clock.

quint64 AdminStatus::uptimeMs

Milliseconds since the server was created.

QString AdminStatus::worldName

The world's name.