QtCraft API C++ classes QML types Handbook

QcEntityKinds Namespace

The number of the entity kinds, their protocol values and names. More...

Header: #include <common/world/QcEntityKind.h>

Variables

const int count

Functions

std::optional<QcEntityKind> fromValue(quint8 value)
QLatin1StringView name(QcEntityKind kind)

Detailed Description

Variable Documentation

const int QcEntityKinds::count

The number of kinds.

Function Documentation

std::optional<QcEntityKind> QcEntityKinds::fromValue(quint8 value)

Returns the kind with the protocol value value; nothing for values no kind has.

QLatin1StringView QcEntityKinds::name(QcEntityKind kind)

Returns a short English name of kind for logs and dumps ("player", "creature", ...).