QtCraft API C++ classes QML types Handbook

QcChunkIo::Arrival Struct

struct QcChunkIo::Arrival

A chunk as read: its blocks (none: they were never changed, generate them), what was kept of its block entities and entities, and its circuit marks. More...

Public Variables

QcBlockEntityRecord blockEntities
std::shared_ptr<QcChunk> blocks
QcEntityRecord entities
QString error
bool generated
std::shared_ptr<QcLightEngine::Prepared> light
quint16 marks
QcChunkPos pos
quint64 request
QStringList warnings

Detailed Description

error: the stored data is damaged; the chunk stays out of the world (decision E-373) and its data on disk is left alone.

Member Variable Documentation

std::shared_ptr<QcChunk> Arrival::blocks

The blocks; null: never changed, generate them.

QString Arrival::error

Why its stored data is damaged; empty when it is not.

bool Arrival::generated

The blocks were generated for this arrival, not read (the generator's plans for the chunk are made, QcFurnishing asks only then).

std::shared_ptr<QcLightEngine::Prepared> Arrival::light

The chunk's own light, computed in the background (QcLightEngine::prepare; may be null).

quint16 Arrival::marks

Its circuit marks (QcChunkLinks).

QcChunkPos Arrival::pos

The chunk.

quint64 Arrival::request

Which request of the chunk this answers (QcServerWorld drops answers to older ones).

QStringList Arrival::warnings

The warnings of reading it.