QtCraft API C++ classes QML types Handbook

QcMsg::GameMode Struct

struct QcMsg::GameMode

Server -> client: the receiving player's game mode (decision E-282), after the welcome and with every change. More...

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

Public Variables

QcAdventureRules adventure
QcGameMode mode

Detailed Description

The client derives the rules from it (QcGameModes::rules). In adventure mode it carries the world's allow-lists (decision E-735), sent again when /adventure changes them; in other modes they are empty.

Member Variable Documentation

QcAdventureRules GameMode::adventure

The world's allow-lists in adventure mode; empty in other modes.

QcGameMode GameMode::mode

The game mode.