QtCraft API C++ classes QML types Handbook

QcLocateResult Struct

What a search for places gives (decision E-911): the place found, if any, and how far the search looked: every region within searched blocks was asked. More...

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

Public Variables

std::optional<QcLocatedPlace> place
int searched

Detailed Description

A search that ran out of its budget of regions looked less far than it was asked to; a place it found beyond searched is the nearest of the regions it asked.

Member Variable Documentation

std::optional<QcLocatedPlace> QcLocateResult::place

The place found; none when the search found none.

int QcLocateResult::searched

How far the search looked in blocks.