QtCraft API C++ classes QML types Handbook

QcCommandMacroParser Namespace

Parses command macros (commands/*.json, decision E-248). More...

Header: #include <common/content/registry/QcCommandMacroParser.h>

Functions

QcResult<QcCommandMacroDefinition> parseCommandMacro(const QJsonObject &json, const QString &packNamespace)

Detailed Description

Function Documentation

QcResult<QcCommandMacroDefinition> QcCommandMacroParser::parseCommandMacro(const QJsonObject &json, const QString &packNamespace)

Returns the macro described by json, or the first problem found. packNamespace is not used: players type the bare name, and a later pack replaces an earlier macro of that name.