QtCraft API C++ classes QML types Handbook

QcMsg::CampfireDisplay Struct

struct QcMsg::CampfireDisplay

Server -> client: the items lying on the campfire at pos (decision E-772), sent after the ChunkData of its chunk and whenever they change; one content item id per slot, 0 for an empty one. More...

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

Public Variables

QList<quint32> items
QcBlockPos pos

Static Public Members

const qsizetype maxItems

Detailed Description

An empty list: nothing lies on it (or it is gone).

Member Variable Documentation

QList<quint32> CampfireDisplay::items

The item id per slot (see the struct).

const qsizetype CampfireDisplay::maxItems

Slots of a campfire; the decoder refuses more items.

QcBlockPos CampfireDisplay::pos

The campfire's block.