QcLootTableParser Namespace
Parses a loot table (loot/<name>.json, decision E-521). More...
| Header: | #include <common/content/recipes/QcLootTableParser.h> |
Functions
| QcResult<QcLootTableDefinition> | parseLootTable(const QJsonObject &json, const QString &packNamespace) |
Detailed Description
All input is untrusted; item names are checked when the table is rolled (an unknown item gives nothing).
Function Documentation
QcResult<QcLootTableDefinition> QcLootTableParser::parseLootTable(const QJsonObject &json, const QString &packNamespace)
Returns the loot table read from json, its names qualified with packNamespace, or the first failure.