QtCraft API C++ classes QML types Handbook

QcSpawnArea Struct

The footprint of a placed structure over the whole height of the world in which the natural monster spawns bring forth only its kinds (decision E-871, the spawn overrides of the original game's structures: the witch hut and its witches). More...

Header: #include <worldgen/generators/QcStructureSites.h>

Public Functions

bool containsColumn(int x, int z) const

Public Variables

QcBlockPos max
QcBlockPos min
QStringList monsters

Static Public Members

std::optional<QcSpawnArea> of(const QcStructurePlacement &placement)

Detailed Description

Like guardian zones it comes from the plans alone and needs no saving.

Member Function Documentation

bool QcSpawnArea::containsColumn(int x, int z) const

Returns whether the column x, z lies in the footprint.

[static] std::optional<QcSpawnArea> QcSpawnArea::of(const QcStructurePlacement &placement)

Returns the spawn area of placement, a placed copy of a structure, if it has one.

Member Variable Documentation

QStringList QcSpawnArea::monsters

The structure's monsters (names).