QtCraft API C++ classes QML types Handbook

QcArmourDefinition Struct

What makes an item armour: the slot it is worn in, the armour points it gives, the set it belongs to (showcase stands and the handbook group by it) and how it is drawn on a body. More...

Header: #include <common/content/items/QcArmourDefinition.h>

Public Variables

QList<QcArmourLayer> layers
QList<QcArmourPart> parts
int points
QString set
QcEquipmentSlot slot

Static Public Members

const int maxCovers
const double maxInflate
const int maxLayers
const int maxParts
const int maxPoints

Detailed Description

Member Variable Documentation

QList<QcArmourLayer> QcArmourDefinition::layers

Layer boxes copied from the humanoid model ("layers").

const int QcArmourDefinition::maxCovers

Most slot names in QcArmourLayer::covers.

const double QcArmourDefinition::maxInflate

Upper limit of QcArmourLayer::inflate, in metres.

const int QcArmourDefinition::maxLayers

Most entries in layers.

const int QcArmourDefinition::maxParts

Most entries in parts.

const int QcArmourDefinition::maxPoints

Upper limit of points.

QList<QcArmourPart> QcArmourDefinition::parts

Extra boxes on single bones ("parts").

int QcArmourDefinition::points

Armour points it gives ("points", 0 to maxPoints, default 0).

QString QcArmourDefinition::set

Qualified name of the set ("set"); defaults to the item's own name.

QcEquipmentSlot QcArmourDefinition::slot

Slot the item is worn in ("slot", required).