QtCraft API C++ classes QML types Handbook

QcMsg::Weather Struct

struct QcMsg::Weather

Server -> client: the weather as this player sees it (decision E-395). More...

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

Public Variables

QcWeather::Climate climate
float rain
float thunder

Detailed Description

rain and thunder are the strengths in 0..1, fading in and out; climate is where the player stands: dry, or rain below climate.snowFrom and snow from there up. Sent on joining, while the strengths change and when the player walks into another climate.

Member Variable Documentation

QcWeather::Climate Weather::climate

The climate where the player stands.