QtCraft API C++ classes QML types Handbook

QcEnchantingTable::Offer Struct

struct QcEnchantingTable::Offer

One offer: the levels the player needs (0: no offer) and the enchantments it gives. More...

Header: #include <common/gameplay/QcEnchantingTable.h>

Public Variables

QList<QcEnchantment> enchantments
int levelCost

Detailed Description

Taking offer slot (0–2) costs slot + 1 levels and slot + 1 lapis lazuli.

Member Variable Documentation

QList<QcEnchantment> Offer::enchantments

The enchantments it gives.

int Offer::levelCost

The levels the player needs; 0 for no offer.