Contains information about a node whose light is about to change. More...
Public Member Functions | |
ChangingLight ()=default | |
ChangingLight (relative_v3 rel_pos, mapblock_v3 block_pos, MapBlock *b, direction source_dir) | |
Public Attributes | |
MapBlock * | block = nullptr |
Pointer to the node's block. | |
relative_v3 | rel_position |
Relative position of the node in its map block. | |
mapblock_v3 | block_position |
Position of the node's block. | |
direction | source_direction = 6 |
Contains information about a node whose light is about to change.
|
default |
|
inline |
MapBlock* voxalgo::ChangingLight::block = nullptr |
Pointer to the node's block.
Referenced by voxalgo::spread_light(), and voxalgo::unspread_light().
mapblock_v3 voxalgo::ChangingLight::block_position |
Position of the node's block.
Referenced by voxalgo::spread_light(), and voxalgo::unspread_light().
relative_v3 voxalgo::ChangingLight::rel_position |
Relative position of the node in its map block.
Referenced by voxalgo::spread_light(), and voxalgo::unspread_light().
direction voxalgo::ChangingLight::source_direction = 6 |
Direction from the node that caused this node's changing to this node.
Referenced by voxalgo::spread_light(), and voxalgo::unspread_light().