QtCraft API C++ classes QML types Handbook

QcContentSerializer Class

Wire format of the content sync message: everything a client needs to show the world. More...

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

Static Public Members

QcResult<QcContentRegistry> read(QDataStream &stream)
void write(const QcContentRegistry &content, QDataStream &stream)

Detailed Description

World-generation data stays on the server. Reading treats the stream as untrusted.

Member Function Documentation

[static] QcResult<QcContentRegistry> QcContentSerializer::read(QDataStream &stream)

Returns the content read from stream, or an error for a corrupt or truncated stream.

[static] void QcContentSerializer::write(const QcContentRegistry &content, QDataStream &stream)

Writes the client's part of content to stream.