QtCraft API C++ classes QML types Handbook

QcLightTable::Entry Struct

struct QcLightTable::Entry

How one block state treats light. More...

Public Functions

bool passageDiffers(QcLightTable::Entry other) const

Public Variables

quint8 blockedFaces
quint8 emission
quint8 opacity
QcLightPassage::SkyStop skyStop

Detailed Description

Member Function Documentation

bool Entry::passageDiffers(QcLightTable::Entry other) const

Returns whether light passes differently after a change from other to this entry.

Member Variable Documentation

quint8 Entry::blockedFaces

The faces light cannot cross, one bit per QcBlockFace (QcLightPassage).

quint8 Entry::emission

The block light it gives off.

quint8 Entry::opacity

Light lost entering the cell; 15 stops it.

QcLightPassage::SkyStop Entry::skyStop

What the cell does to sky light coming straight down.