QtCraft API C++ classes QML types Handbook

QcAppearanceDefinition Struct

An outfit (textures for the slots of a skeleton model), a hair style (extra boxes on the head, textured through its own layers) or a cape (a plate on the back, textured through its layers). More...

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

Public Types

enum class Kind { Outfit, Hair, Cape }

Public Functions

const QcAppearanceLayer *layer(const QString &slot) const

Public Variables

QList<QcModelBox> boxes
QcCapeShape cape
QcAppearanceDefinition::Kind kind
QList<QcAppearanceLayer> layers
QString name
bool playable
QString translationKey

Static Public Members

const int maxBoxes
const int maxLayers

Detailed Description

Players pick one of each; creatures name an outfit and optionally a cape.

Member Type Documentation

enum class QcAppearanceDefinition::Kind

What it is ("kind": outfit, hair or cape).

ConstantValueDescription
QcAppearanceDefinition::Kind::Outfit0textures for the slots of a skeleton model
QcAppearanceDefinition::Kind::Hair1extra boxes on the head
QcAppearanceDefinition::Kind::Cape2a plate on the back

Member Function Documentation

const QcAppearanceLayer *QcAppearanceDefinition::layer(const QString &slot) const

Returns the layer for slot, or nullptr if it has none.

Member Variable Documentation

QList<QcModelBox> QcAppearanceDefinition::boxes

Hair only: boxes that turn with the head bone; their slots refer to layers.

QcCapeShape QcAppearanceDefinition::cape

Cape only.

QcAppearanceDefinition::Kind QcAppearanceDefinition::kind

What it is.

QList<QcAppearanceLayer> QcAppearanceDefinition::layers

Textures by slot ("layers"), 1 to maxLayers; a cape needs the layer "outside".

const int QcAppearanceDefinition::maxBoxes

Most boxes of a hair style.

const int QcAppearanceDefinition::maxLayers

Most layers of an appearance.

QString QcAppearanceDefinition::name

Content name ("name").

bool QcAppearanceDefinition::playable

False for creature outfits: not offered to players and refused by the server.

QString QcAppearanceDefinition::translationKey

Translation key of its name ("translation", else derived from the name).