QtCraft API C++ classes QML types Handbook

QcMovingLight Struct

A light that moves with what carries it (decision E-902): a torch in a hand, a glowing item on the ground, a firefly. More...

Header: #include <clientcore/light/QcMovingLights.h>

Public Types

enum class Colour { Warm, Glow }

Public Variables

QcMovingLight::Colour colour
float level
QcVec3 position

Detailed Description

Only the realistic mode draws it, in the shaders; the block light of the world, the server and every rule of the game stay as they are.

Member Type Documentation

enum class QcMovingLight::Colour

The colour of the light: warm like the block light of torches, or the yellow-green glow of creatures (fireflies).

ConstantValueDescription
QcMovingLight::Colour::Warm0Like the block light of torches
QcMovingLight::Colour::Glow1The yellow-green glow of creatures

Member Variable Documentation

QcMovingLight::Colour QcMovingLight::colour

Colour of the light.

float QcMovingLight::level

Like a block light level: 0..15, one level less per block of distance.

QcVec3 QcMovingLight::position

Where the light shines from.