QtCraft API C++ classes QML types Handbook

QcDebugSnapshot::Target Struct

struct QcDebugSnapshot::Target

The block under the crosshair. More...

Public Variables

QString block
QcBlockFace face
QcLightProbe::Levels light
QcBlockPos pos
QList<std::pair<QString, QString>> state
QStringList tags

Detailed Description

Member Variable Documentation

QString Target::block

The block's name.

QcBlockFace Target::face

The face aimed at.

QcLightProbe::Levels Target::light

Light in the cell in front of the targeted face.

QcBlockPos Target::pos

Its cell.

QList<std::pair<QString, QString>> Target::state

Block state properties (name, value) and the tags of the block's item.

QStringList Target::tags

The tags of the block's item.