QtCraft API C++ classes QML types Handbook

QcMsg::EnchantingState Struct

struct QcMsg::EnchantingState

Server -> client: the open enchanting table's slots, the bookshelves that count, the offers and the rune seed the screen writes the clues with (decision E-884: a random value of the player's own, drawn anew with the enchanting seed but not derived from it, so the order of the readable letters stays until the player enchants and tells nothing about the offers). More...

Header: #include <common/protocol/QcMachineMessages.h>

Public Variables

QcItemStack item
QcItemStack lapis
std::array<QcMsg::EnchantingOffer, 3> offers
quint32 runeSeed
qint32 shelves

Static Public Members

const qsizetype maxClue

Detailed Description

Member Variable Documentation

QcItemStack EnchantingState::item

The item slot.

QcItemStack EnchantingState::lapis

The lapis slot.

const qsizetype EnchantingState::maxClue

The longest enchantment name a clue may carry.

std::array<QcMsg::EnchantingOffer, 3> EnchantingState::offers

The three offers.

quint32 EnchantingState::runeSeed

The rune seed (see the struct).

qint32 EnchantingState::shelves

The bookshelves that count.