QtCraft API C++ classes QML types Handbook

QcProjectileParser Namespace

Parses a kind of projectile (projectiles/<name>.json, decision E-425). More...

Header: #include <common/content/items/QcProjectileParser.h>

Functions

QcResult<QcProjectileDefinition> parseProjectile(const QJsonObject &json, const QString &packNamespace)

Detailed Description

All input is untrusted.

Function Documentation

QcResult<QcProjectileDefinition> QcProjectileParser::parseProjectile(const QJsonObject &json, const QString &packNamespace)

Returns the projectile kind read from json, its names qualified with packNamespace, or the first failure.