QtCraft API C++ classes QML types Handbook

QcBoatCodec Namespace

The boats of one chunk in its entity blob (decision E-920): after the item frames and paintings (QcHangingCodec), so blobs written before boats read unchanged. More...

Header: #include <server/storage/QcBoatCodec.h>

Functions

std::optional<QList<QcEntityRecord::Ordered<QcBoat>>> read(QDataStream &stream, QcChunkPos chunk, const QcContentRegistry &content, QcLoadWarnings &warnings)
void write(QDataStream &stream, const QList<QcEntityRecord::Ordered<QcBoat>> &boats)

Detailed Description

Per entry the name of its item, its place in the table (QcEntityRecord::Ordered) and its components (QcComponentFrames, QcEntityCodec::Component::Boat: feet, velocity, yaw).

Function Documentation

std::optional<QList<QcEntityRecord::Ordered<QcBoat>>> QcBoatCodec::read(QDataStream &stream, QcChunkPos chunk, const QcContentRegistry &content, QcLoadWarnings &warnings)

Returns the entries of the record of chunk that follow in stream, none at its end. A boat of an item content does not know (or of one that no longer places a boat) is dropped with a warning in warnings; nothing for damaged data (a boat outside the chunk, values that cannot be).

void QcBoatCodec::write(QDataStream &stream, const QList<QcEntityRecord::Ordered<QcBoat>> &boats)

Writes boats to stream.