QtCraft API C++ classes QML types Handbook

QcHandbookEntry::Link Struct

struct QcHandbookEntry::Link

A reference to another entry (target is its id). More...

Public Functions

bool isEmpty() const

Public Variables

QString icon
QString note
QString target
QString text

Detailed Description

icon names the item whose icon stands for it, note adds a count, chance, height range or the like.

Member Function Documentation

bool Link::isEmpty() const

Returns whether it has neither a target nor a text (an empty cell of a recipe).

Member Variable Documentation

QString Link::icon

The item whose icon stands for it; may be empty.

QString Link::note

A count, chance, height range or the like; may be empty.

QString Link::target

The id of the entry it leads to.

QString Link::text

The text shown for the link.