QtCraft API C++ classes QML types Handbook

QcShowcaseMatch Struct

Which blocks belong to a showcase category. More...

Header: #include <common/content/worldgen/QcShowcaseDefinition.h>

Public Variables

std::optional<bool> falls
std::optional<bool> functional
std::optional<bool> light
std::optional<bool> liquid
QStringList nameContains
std::optional<bool> part
std::optional<bool> plant
QStringList render
std::optional<bool> signal
QStringList tools

Detailed Description

Every given condition must hold; a list holds when any of its entries does. Server side only.

Member Variable Documentation

std::optional<bool> QcShowcaseMatch::falls

Is a falling block.

std::optional<bool> QcShowcaseMatch::functional

Can be used: crafting, machine, storage, doors and other toggles.

std::optional<bool> QcShowcaseMatch::light

Gives off block light.

std::optional<bool> QcShowcaseMatch::liquid

Is a liquid.

std::optional<bool> QcShowcaseMatch::part

A building part made by a part family (stairs, slabs, fences, ...).

std::optional<bool> QcShowcaseMatch::plant

Stands on the ground like a plant: support below, ground blocks, sapling or a crossed shape.

std::optional<bool> QcShowcaseMatch::signal

A Signal Dust circuit part (decision E-340): wire, switches, torches, repeaters, lamps, pistons.