QtCraft API C++ classes QML types Handbook

QcMsg::AdminPlayers::Entry Struct

struct QcMsg::AdminPlayers::Entry

One player as the server sees him. More...

Public Variables

QString address
qint64 connectedMs
quint32 entityId
QcGameMode gameMode
bool local
QString name
bool operatorRights
qint32 pingMs
QcVec3 position

Detailed Description

Member Variable Documentation

QString Entry::address

The network address the player connected from.

qint64 Entry::connectedMs

Milliseconds since the player connected.

quint32 Entry::entityId

The player's entity.

QcGameMode Entry::gameMode

The player's game mode.

bool Entry::local

Whether the player plays in the server's own process (single player host).

QString Entry::name

The player's name.

bool Entry::operatorRights

Whether the player has operator rights.

qint32 Entry::pingMs

Round trip of the latest ping; -1 before the first answer.

QcVec3 Entry::position

Where the player stands.