QtCraft API C++ classes QML types Handbook

QcContentPackInfo Struct

Manifest of a content pack (base game or mod): pack.json in the pack directory. More...

Header: #include <common/content/loader/QcContentPackLoader.h>

Public Variables

QStringList dependencies
QString description
QString directory
QString id
QHash<QString, QVersionNumber> minimumVersions
QString name
QString version

Detailed Description

Member Variable Documentation

QStringList QcContentPackInfo::dependencies

Pack ids this pack needs; they are loaded first.

QString QcContentPackInfo::description

The description ("description", optional; at most 4096 characters).

QString QcContentPackInfo::directory

The directory the manifest was read from.

QString QcContentPackInfo::id

The pack id ("id", see isValidPackId()); also the namespace of its unqualified names.

QHash<QString, QVersionNumber> QcContentPackInfo::minimumVersions

Optional lowest accepted version per dependency.

QString QcContentPackInfo::name

The display name ("name", the id when missing; at most 256 characters).

QString QcContentPackInfo::version

The version text ("version", required; see parseVersion()).