QtCraft API C++ classes QML types Handbook

QcModStatus Struct

Outcome of one mod directory after discovery and loading. More...

Header: #include <worlds/QcModStatus.h>

Public Types

enum class State { Loaded, Disabled, Failed }

Public Variables

QcContentPackInfo info
QString reason
QcModStatus::State state
QStringList warnings

Detailed Description

Member Type Documentation

enum class QcModStatus::State

Whether the mod was loaded.

ConstantValueDescription
QcModStatus::State::Loaded0Its content is part of the registry.
QcModStatus::State::Disabled1On the disabled list of the mods directory; not loaded.
QcModStatus::State::Failed2Could not be loaded; reason says why.

Member Variable Documentation

QcContentPackInfo QcModStatus::info

info.id may be empty when the manifest could not be read; info.directory is always set.

QString QcModStatus::reason

Why the mod was not loaded (Failed only), in English in every interface language: it names files, keys and identifiers of the mod (decision E-973).

QcModStatus::State QcModStatus::state

Whether the mod was loaded, switched off or failed.

QStringList QcModStatus::warnings

Entries of a loaded mod that were skipped.