QtCraft API C++ classes QML types Handbook

QcGuardSite Struct

A zone of a placed structure whose guardians come back by themselves (decision E-591): the desert temple's cellar and its sand golem. More...

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

Public Functions

bool contains(QcBlockPos pos) const

Public Variables

quint64 id
QcBlockPos max
QcBlockPos min
QcStructureDefinition::Guardian rule

Static Public Members

QList<QcGuardSite> of(const QcStructurePlacement &placement)

Detailed Description

The world generator names the zones near a place (QcWorldGenerator::structureSitesNear) from its plans alone, so they need no saving; the server keeps their cooldowns while it runs (QcGuardians).

Member Function Documentation

bool QcGuardSite::contains(QcBlockPos pos) const

Returns whether pos lies in the zone.

[static] QList<QcGuardSite> QcGuardSite::of(const QcStructurePlacement &placement)

Returns the guardian zones of placement, a placed copy of a structure.

Member Variable Documentation

quint64 QcGuardSite::id

The same for the same zone in every session: from its corner and its creature's name.

QcStructureDefinition::Guardian QcGuardSite::rule

The structure's rule with from and to as written (local).