QtCraft API C++ classes QML types Handbook

QcEntityKept Struct

What a saved entry holds that this version does not use (decision E-420), carried by the runtime object so that loading, unloading and saving lose nothing: the components it does not read and the header fields its kind leaves unused in this version (the persistent id of every kind but creatures, the type name of armour stands, minecarts and experience orbs), written back as read. More...

Header: #include <server/entities/QcEntityComponent.h>

Public Functions

bool isEmpty() const

Public Variables

QcEntityComponents components
QString type
quint64 uid
QcEntityComponent
QcEntityComponents

Detailed Description

Member Function Documentation

bool QcEntityKept::isEmpty() const

Returns whether nothing is kept.

Member Variable Documentation

QcEntityComponents QcEntityKept::components

The components it does not read.

QString QcEntityKept::type

The type name of a kind that does not use it (empty when none was saved).

quint64 QcEntityKept::uid

The persistent id of a kind that does not use it (0 when none was saved).

Related Non-Members

[alias] QcEntityComponent

A component of a saved entity this version does not read (decision E-420), kept as raw bytes (QcKeptComponent, shared with item stacks, E-823). QcEntityCodec reads and writes them.

[alias] QcEntityComponents

The components of a saved entity this version does not read.