QtCraft API C++ classes QML types Handbook

QcMsg::Trade Struct

struct QcMsg::Trade

Client -> server: trade the offer at index offer of the open screen once, or with repeat as often as the inventory and the uses left allow (shift-click). More...

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

Public Variables

qint32 offer
bool repeat
quint32 villager

Detailed Description

Member Variable Documentation

qint32 Trade::offer

The index of the offer.

bool Trade::repeat

Trades as often as possible (see the struct).

quint32 Trade::villager

The villager's entity id.