QtCraft API C++ classes QML types Handbook

QcVillagerOffer Struct

The state of one of a villager's offers (decision E-414), by the offer's id: how often it was traded since the last restock and how far demand raised its price. More...

Header: #include <server/villages/QcVillager.h>

Public Variables

int demand
QString id
int uses

Static Public Members

const int maxDemand

Detailed Description

Member Variable Documentation

int QcVillagerOffer::demand

How far demand raised its price.

QString QcVillagerOffer::id

The offer's id (QcVillagerTrades).

const int QcVillagerOffer::maxDemand

The highest demand a saved offer may have.

int QcVillagerOffer::uses

How often it was traded since the last restock.