QtCraft API C++ classes QML types Handbook

QcHoldDefaults Struct

The defaults of every category (held.json); a later pack's file overrides the fields it sets. More...

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

Public Functions

QcHoldDefaults merged(const QcHoldDefaults &later) const
const QcHoldDisplay &of(QcHoldCategory category) const

Public Variables

std::array<QcHoldDisplay, qcHoldCategoryCount> categories

Detailed Description

Member Function Documentation

QcHoldDefaults QcHoldDefaults::merged(const QcHoldDefaults &later) const

Returns these defaults with every field later sets taken from it.

const QcHoldDisplay &QcHoldDefaults::of(QcHoldCategory category) const

Returns the defaults of category.

Member Variable Documentation

std::array<QcHoldDisplay, qcHoldCategoryCount> QcHoldDefaults::categories

The defaults of each category, indexed by QcHoldCategory.