QtCraft API C++ classes QML types Handbook

QcHangingDefinition Struct

The field "hangs" of an item (decision E-790): used on a block face, the item hangs an entity of type there that drops the item again. More...

Header: #include <common/content/blockbehaviour/QcHangingDefinition.h>

Public Variables

QString back
QList<QcPaintingMotif> motifs
QcHangingType type

Static Public Members

const int maxMotifs

Detailed Description

Member Variable Documentation

QString QcHangingDefinition::back

Paintings only: the texture of its back and edges.

const int QcHangingDefinition::maxMotifs

Motifs one painting item offers at most.

QList<QcPaintingMotif> QcHangingDefinition::motifs

Paintings only: the motifs to choose from on placement.

QcHangingType QcHangingDefinition::type

What the item hangs ("type": "item_frame" or "painting").