QtCraft API C++ classes QML types Handbook

QcVillagerTrades::Offer Struct

struct QcVillagerTrades::Offer

An offer with its items resolved; costs at the base price. More...

Public Variables

QList<QcItemStack> costs
QcTradeOffer definition
int firstMaxStack
QcItemStack result

Detailed Description

The first cost never rises beyond firstMaxStack, the stack size of its item.

Member Variable Documentation

QList<QcItemStack> Offer::costs

Its costs at the base price.

QcTradeOffer Offer::definition

The offer of the content.

int Offer::firstMaxStack

The stack size of the first cost's item.

QcItemStack Offer::result

What it gives.