QtCraft API C++ classes QML types Handbook

QcShowcaseCreatureArea Namespace

A glass enclosure for every creature of the registry, side by side (decision E-220): sized to the creature, roofed (with the podium's block for creatures that burn in daylight, decision E-426), with walls for hostile ones thicker than their reach (attackRange) beyond the glass, and a label. More...

Header: #include <worldgen/showcase/QcShowcaseCreatureArea.h>

Functions

QcShowcaseArea build(const QcShowcaseContext &context, QcBlockPos anchor)

Detailed Description

The creatures are spawned once with the world and stay (persistent and confined: one that teleports or takes blocks stays in its pen, decision E-460).

Function Documentation

QcShowcaseArea QcShowcaseCreatureArea::build(const QcShowcaseContext &context, QcBlockPos anchor)

Returns the area built for context with its south west corner on the ground at anchor (QcShowcaseAreaBuilder).