QtCraft API C++ classes QML types Handbook

QcAdvancementSerializer Namespace

The advancements in the content sync (QcContentSerializer, decision E-923): everything the client shows (tree, icon, texts, frame, handbook link) and the names and requirement groups of the criteria; the triggers and conditions stay on the server (the client gets Impossible). More...

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

Functions

QcStatus read(QDataStream &stream, QcContentRegistry &registry)
void write(QDataStream &stream, const QcAdvancementCatalog &advancements)

Detailed Description

Reading checks the bounds of the parser.

Function Documentation

QcStatus QcAdvancementSerializer::read(QDataStream &stream, QcContentRegistry &registry)

Reads the advancements from stream and adds them to registry. Returns an error for a corrupt or implausible table.

void QcAdvancementSerializer::write(QDataStream &stream, const QcAdvancementCatalog &advancements)

Writes advancements to stream.