QtCraft API C++ classes QML types Handbook

QcSoundParser Namespace

Parses synthesized sound definitions of content packs. More...

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

Functions

QcResult<QcSoundDefinition> parseSound(const QJsonObject &json, const QString &packNamespace)

Detailed Description

Function Documentation

QcResult<QcSoundDefinition> QcSoundParser::parseSound(const QJsonObject &json, const QString &packNamespace)

Returns the sound described by json, with an unqualified name in packNamespace, or the first problem found (including any QcSoundDefinition::problem()).