QtCraft API C++ classes QML types Handbook

QcAppearance Struct

A player's chosen look: outfit, hair style and cape by content name, and four colours as 0xRRGGBB. More...

Header: #include <common/content/mobs/QcAppearance.h>

Public Variables

QString cape
QString hair
quint32 hairColor
QString outfit
quint32 pantsColor
quint32 shirtColor
quint32 skinColor

Static Public Members

const qsizetype maxNameLength

Detailed Description

The client keeps it in its settings and sends it to the server, which checks it.

Member Variable Documentation

QString QcAppearance::cape

Empty for no cape (also the look of profiles stored before capes existed).

QString QcAppearance::hair

Empty for no hair.

const qsizetype QcAppearance::maxNameLength

Longest outfit, hair or cape name in UTF-16 code units; the protocol decoder refuses a message with a longer one.

QString QcAppearance::outfit

Content name of the outfit.