QtCraft API C++ classes QML types Handbook

QcKeptComponent Struct

A saved component this version does not read (decisions E-420, E-823), kept as raw bytes so that saving again loses nothing: a component of an unknown id whole, or, for a known component of a newer version, the fields after the ones this version knows (tail), written back after them under the newer version. More...

Header: #include <common/core/QcKeptComponent.h>

Public Variables

quint16 id
QByteArray payload
bool tail
quint16 version
QcKeptComponents

Detailed Description

Entities (QcEntityComponent), block entities and item stacks (QcItemData::kept) keep them.

Member Variable Documentation

quint16 QcKeptComponent::id

The component's id.

QByteArray QcKeptComponent::payload

The raw bytes.

bool QcKeptComponent::tail

Only the fields after the known ones of a known component (see above).

quint16 QcKeptComponent::version

The version it was written in.

Related Non-Members

[alias] QcKeptComponents

The kept components of one entity, block entity or item stack.