QtCraft API C++ classes QML types Handbook

QcMobParser Namespace

Parses mobs and the skeleton models and appearances that characters are drawn with. More...

Header: #include <common/content/mobs/QcMobParser.h>

Functions

QcResult<QcAppearanceDefinition> parseAppearance(const QJsonObject &json, const QString &packNamespace)
QcResult<QcMobDefinition> parseMob(const QJsonObject &json, const QString &packNamespace)
QcResult<QcModelDefinition> parseModel(const QJsonObject &json, const QString &packNamespace)

Detailed Description

Function Documentation

QcResult<QcAppearanceDefinition> QcMobParser::parseAppearance(const QJsonObject &json, const QString &packNamespace)

Returns the outfit, hair style or cape defined by json (a file in appearance), names qualified with packNamespace, or the first error.

QcResult<QcMobDefinition> QcMobParser::parseMob(const QJsonObject &json, const QString &packNamespace)

Returns the creature defined by json (a file in mobs), names qualified with packNamespace, or the first error (QcMobReader).

QcResult<QcModelDefinition> QcMobParser::parseModel(const QJsonObject &json, const QString &packNamespace)

Returns the skeleton model defined by json (a file in models), names qualified with packNamespace, or the first error.