QtCraft API C++ classes QML types Handbook

QcTextureStackBuild::Request Struct

struct QcTextureStackBuild::Request

What one run() is asked to do. More...

Header: #include <clientcore/texturepacks/QcTextureStackBuild.h>

Public Variables

std::shared_ptr<const QcTextureAtlas> colour
bool colourOnly
std::shared_ptr<const QcContentRegistry> content
QList<QcTexturePackLibrary::Entry> entries
quint64 generation
QStringList ids
QHash<QString, QcTexturePackRef> loaded
qint64 memoryBudget
QcTextureAtlas::Options options
QHash<QString, QcTextureStackBuild::Preview> previews
std::optional<QList<QcTexturePackLibrary::Root>> rescan

Detailed Description

Member Variable Documentation

std::shared_ptr<const QcTextureAtlas> Request::colour

Colour atlas built before; set, run() builds only its maps.

bool Request::colourOnly

Build only the colour atlas, not the maps.

std::shared_ptr<const QcContentRegistry> Request::content

Null: only load the packs (in the menu, before a world has content).

QList<QcTexturePackLibrary::Entry> Request::entries

The scanned pack folders when rescan is unset.

quint64 Request::generation

Handed through to Result::generation.

QStringList Request::ids

Active pack ids, the highest priority first.

QHash<QString, QcTexturePackRef> Request::loaded

Packs loaded before, by id; reused instead of reading their files again.

qint64 Request::memoryBudget

Decoded bytes the active packs may take together.

QcTextureAtlas::Options Request::options

With options.materials the packs are read with their material maps and the maps are built (Result::materials), unless colourOnly (the maps follow in a run of their own, so the world starts without waiting for them); with colour set only the maps of that atlas are built (decision E-912).

QHash<QString, QcTextureStackBuild::Preview> Request::previews

Previews read before, by pack folder.

std::optional<QList<QcTexturePackLibrary::Root>> Request::rescan

Set: list the packs below these roots first; else use entries.