QtCraft API C++ classes QML types Handbook

QcPoolPlacer Class

Liquid pools sunk into cave floors. More...

Header: #include <worldgen/terrain/QcPoolPlacer.h>

Public Types

Pool

Public Functions

void placeInCaves(QcChunk &chunk) const

Detailed Description

Pools stay inside their chunk and never flow anywhere; pools with surface are lakes (QcSurfaceLakes).

Member Type Documentation

[alias] QcPoolPlacer::Pool

A pool definition of the terrain.

Member Function Documentation

void QcPoolPlacer::placeInCaves(QcChunk &chunk) const

Sinks the cave pools (those without surface) into the cave floors of chunk: per pool up to its attempts, each by its chance, at a random column off the chunk's edge and a start height between the pool's minY and maxY.